Class UiUtil

java.lang.Object
com.jsql.view.swing.util.UiUtil

public class UiUtil extends Object
Build default component appearance, keyboard shortcuts and icons.
  • Field Details

    • COLOR_BLU

      public static final Color COLOR_BLU
    • COLOR_GREEN

      public static final Color COLOR_GREEN
    • TEXTPANE_FONT

      public static final String TEXTPANE_FONT
      See Also:
    • COLOR_FOCUS_GAINED

      public static final Color COLOR_FOCUS_GAINED
    • COLOR_DEFAULT_BACKGROUND

      public static final Color COLOR_DEFAULT_BACKGROUND
    • COLOR_COMPONENT_BORDER

      public static final Color COLOR_COMPONENT_BORDER
    • COLOR_FOCUS_LOST

      public static final Color COLOR_FOCUS_LOST
    • BORDER_FOCUS_LOST

      public static final Border BORDER_FOCUS_LOST
    • BORDER_FOCUS_GAINED

      public static final Border BORDER_FOCUS_GAINED
    • URL_GLOBE

      public static final URL URL_GLOBE
    • ICON_TICK

      public static final Icon ICON_TICK
    • ICON_SQUARE_RED

      public static final Icon ICON_SQUARE_RED
    • ICON_SQUARE_GREY

      public static final Icon ICON_SQUARE_GREY
    • ICON_LOADER_GIF

      public static final Icon ICON_LOADER_GIF
    • ICON_ADMIN_SERVER

      public static final Icon ICON_ADMIN_SERVER
    • ICON_SHELL_SERVER

      public static final Icon ICON_SHELL_SERVER
    • ICON_DATABASE_SERVER

      public static final Icon ICON_DATABASE_SERVER
    • ICON_FILE_SERVER

      public static final Icon ICON_FILE_SERVER
    • ICON_COG

      public static final Icon ICON_COG
    • ICON_BRUTER

      public static final Icon ICON_BRUTER
    • ICON_CODER

      public static final Icon ICON_CODER
    • ICON_UPLOAD

      public static final Icon ICON_UPLOAD
    • ICON_SCANLIST

      public static final Icon ICON_SCANLIST
    • ICON_TABLE

      public static final Icon ICON_TABLE
    • ICON_TABLE_GO

      public static final Icon ICON_TABLE_GO
    • ICON_DATABASE

      public static final Icon ICON_DATABASE
    • ICON_DATABASE_GO

      public static final Icon ICON_DATABASE_GO
    • ICON_CONSOLE

      public static final Icon ICON_CONSOLE
    • ICON_HEADER

      public static final Icon ICON_HEADER
    • ICON_CHUNK

      public static final Icon ICON_CHUNK
    • ICON_BINARY

      public static final Icon ICON_BINARY
    • ICON_CUP

      public static final Icon ICON_CUP
    • ICON_CLOSE

      public static final Icon ICON_CLOSE
    • ICON_CLOSE_ROLLOVER

      public static final Icon ICON_CLOSE_ROLLOVER
    • ICON_CLOSE_PRESSED

      public static final Icon ICON_CLOSE_PRESSED
    • ICON_ARROW_DEFAULT

      public static final Icon ICON_ARROW_DEFAULT
    • ICON_ARROW_ROLLOVER

      public static final Icon ICON_ARROW_ROLLOVER
    • ICON_ARROW_PRESSED

      public static final Icon ICON_ARROW_PRESSED
    • ICON_EXPAND_TEXT

      public static final Icon ICON_EXPAND_TEXT
    • ICON_FLAG_AR

      public static final Icon ICON_FLAG_AR
    • ICON_FLAG_ZH

      public static final Icon ICON_FLAG_ZH
    • ICON_FLAG_RU

      public static final Icon ICON_FLAG_RU
    • ICON_FLAG_TR

      public static final Icon ICON_FLAG_TR
    • ICON_FLAG_EN

      public static final Icon ICON_FLAG_EN
    • ICON_FLAG_FR

      public static final Icon ICON_FLAG_FR
    • ICON_FLAG_HI

      public static final Icon ICON_FLAG_HI
    • ICON_FLAG_CS

      public static final Icon ICON_FLAG_CS
    • ICON_FLAG_DE

      public static final Icon ICON_FLAG_DE
    • ICON_FLAG_NL

      public static final Icon ICON_FLAG_NL
    • ICON_FLAG_IN_ID

      public static final Icon ICON_FLAG_IN_ID
    • ICON_FLAG_IT

      public static final Icon ICON_FLAG_IT
    • ICON_FLAG_ES

      public static final Icon ICON_FLAG_ES
    • ICON_FLAG_PT

      public static final Icon ICON_FLAG_PT
    • ICON_FLAG_PL

      public static final Icon ICON_FLAG_PL
    • ICON_FLAG_JA

      public static final Icon ICON_FLAG_JA
    • ICON_FLAG_KO

      public static final Icon ICON_FLAG_KO
    • ICON_FLAG_RO

      public static final Icon ICON_FLAG_RO
    • ICON_FLAG_LK

      public static final Icon ICON_FLAG_LK
    • ICON_FLAG_SE

      public static final Icon ICON_FLAG_SE
    • ICON_FLAG_FI

      public static final Icon ICON_FLAG_FI
    • URL_ICON_16

      public static final URL URL_ICON_16
    • URL_ICON_32

      public static final URL URL_ICON_32
    • URL_ICON_96

      public static final URL URL_ICON_96
    • URL_ICON_128

      public static final URL URL_ICON_128
    • IMG_SHADOW

      public static final Image IMG_SHADOW
    • IMG_BUG

      public static final ImageIcon IMG_BUG
    • IMG_STOP_DEFAULT

      public static final ImageIcon IMG_STOP_DEFAULT
    • IMG_STOP_ROLLOVER

      public static final ImageIcon IMG_STOP_ROLLOVER
    • IMG_STOP_PPRESSED

      public static final ImageIcon IMG_STOP_PPRESSED
    • PATH_WEB_FOLDERS

      public static final String PATH_WEB_FOLDERS
      See Also:
    • INPUT_STREAM_PAGES_SCAN

      public static final String INPUT_STREAM_PAGES_SCAN
      See Also:
    • ICON_EMPTY

      public static final Icon ICON_EMPTY
    • PATH_PAUSE

      public static final String PATH_PAUSE
      See Also:
    • PATH_PROGRESSBAR

      public static final String PATH_PROGRESSBAR
      See Also:
    • ICON_ERROR

      public static final Icon ICON_ERROR
    • BORDER_BLU

      public static final Border BORDER_BLU
    • BORDER_ROUND_BLU

      public static final Border BORDER_ROUND_BLU
    • FONT_NAME_MONO_NON_ASIAN

      public static final String FONT_NAME_MONO_NON_ASIAN
      See Also:
    • FONT_SIZE_MONO_NON_ASIAN

      public static final int FONT_SIZE_MONO_NON_ASIAN
      See Also:
    • FONT_NAME_MONO_ASIAN

      public static final String FONT_NAME_MONO_ASIAN
      See Also:
    • FONT_SIZE_MONO_ASIAN

      public static final int FONT_SIZE_MONO_ASIAN
      See Also:
    • FONT_NAME_MONOSPACED

      public static final String FONT_NAME_MONOSPACED
      See Also:
    • FONT_MONO_NON_ASIAN

      public static final Font FONT_MONO_NON_ASIAN
    • FONT_MONO_ASIAN

      public static final Font FONT_MONO_ASIAN
    • FONT_NON_MONO

      public static final Font FONT_NON_MONO
    • FONT_NON_MONO_BIG

      public static final Font FONT_NON_MONO_BIG
    • CHUNK_VISIBLE

      public static final String CHUNK_VISIBLE
      See Also:
    • BINARY_VISIBLE

      public static final String BINARY_VISIBLE
      See Also:
    • NETWORK_VISIBLE

      public static final String NETWORK_VISIBLE
      See Also:
    • JAVA_VISIBLE

      public static final String JAVA_VISIBLE
      See Also:
  • Method Details

    • prepareGUI

      public static void prepareGUI()
      Change the default style of various components.
    • getIcons

      public static List<Image> getIcons()
      Icons for application window.
      Returns:
      List of a 16x16 (default) and 32x32 icon (alt-tab, taskbar)
    • drawPlaceholder

      public static void drawPlaceholder(JTextComponent textComponent, Graphics g, String placeholderText)
    • drawPlaceholder

      public static void drawPlaceholder(JTextComponent textComponent, Graphics g, String placeholderText, int y)
    • initialize

      public static void initialize(JTextComponent component)
    • stopDocumentColorer

      public static void stopDocumentColorer(JTextPane textPane)
      End the thread doing coloring.
      Parameters:
      textPane - which coloring has to stop.