Class Main

java.lang.Object
org.languagetool.gui.Main

public final class Main extends Object
A simple GUI to check texts with.
  • Field Details

  • Constructor Details

  • Method Details

    • loadFile

      private void loadFile()
    • loadFile

      private void loadFile(File file)
    • saveFile

      private void saveFile(boolean newFile)
    • addLanguage

      private void addLanguage() throws InstantiationException, IllegalAccessException
      Throws:
      InstantiationException
      IllegalAccessException
    • showOptions

      private void showOptions()
    • showSelectFontDialog

      private void showSelectFontDialog()
    • getFrame

      private Component getFrame()
    • updateTitle

      private void updateTitle()
    • createGUI

      private void createGUI()
    • getLabel

      private String getLabel(String key)
    • getMnemonic

      private int getMnemonic(String key)
    • getMenuKeyStroke

      private KeyStroke getMenuKeyStroke(int keyEvent)
    • createMenuBar

      private JMenuBar createMenuBar()
    • updateRecentFilesMenu

      private void updateRecentFilesMenu()
    • loadRecentFiles

      private void loadRecentFiles()
    • addLookAndFeelMenuItem

      private void addLookAndFeelMenuItem(JMenu lafMenu, UIManager.LookAndFeelInfo laf, ButtonGroup buttonGroup)
    • setLookAndFeel

      private void setLookAndFeel()
    • makePopupMenu

      private PopupMenu makePopupMenu()
    • checkClipboardText

      private void checkClipboardText()
    • hideToTray

      private void hideToTray()
    • tagText

      private void tagText()
    • quitOrHide

      private void quitOrHide()
    • quit

      private void quit()
    • setTrayIcon

      private void setTrayIcon()
    • showGUI

      private void showGUI()
    • restoreFromTray

      private void restoreFromTray()
    • restoreFromTrayAndCheck

      private void restoreFromTrayAndCheck()
    • getClipboardText

      private String getClipboardText()
    • maybeStartServer

      private boolean maybeStartServer()
    • stopServer

      private void stopServer()
    • checkTextAndDisplayResults

      private void checkTextAndDisplayResults()
    • getStackTraceAsHtml

      private String getStackTraceAsHtml(Exception e)
    • setWaitCursor

      private void setWaitCursor()
    • unsetWaitCursor

      private void unsetWaitCursor()
    • appendTagsWithDisambigLog

      private boolean appendTagsWithDisambigLog(StringBuilder sb, org.languagetool.AnalyzedSentence sentence, boolean odd)
    • tagTextAndDisplayResults

      private void tagTextAndDisplayResults()
    • setResultAreaVisible

      private void setResultAreaVisible(boolean enable)
    • setTrayMode

      private void setTrayMode(boolean trayMode)
    • main

      public static void main(String[] args)
    • printUsage

      private static void printUsage()
    • getImageIcon

      private ImageIcon getImageIcon(String filename)
    • getCurrentConfigDialog

      private ConfigurationDialog getCurrentConfigDialog()