Class GUI

java.lang.Object
GUI

public class GUI
extends java.lang.Object
present GUI of insomnia
  • Constructor Summary

    Constructors 
    Constructor Description
    GUI()
    creat a new GUI
  • Method Summary

    Modifier and Type Method Description
    void addJPanel​(javax.swing.JPanel jPanel, java.awt.Color color, javax.swing.border.Border border, int height, int weight)
    creat a panel with given data
    void sendRequest()  
    void setSystemTray()
    Provide adding program to system tray copied from StackOverFlow
    void updateComboBox​(javax.swing.JComboBox comboBox, java.io.File[] FileList)  
    void updateJTree​(javax.swing.tree.DefaultMutableTreeNode baseNode, java.io.File[] FileList)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GUI

      public GUI()
      creat a new GUI
  • Method Details

    • updateJTree

      public void updateJTree​(javax.swing.tree.DefaultMutableTreeNode baseNode, java.io.File[] FileList)
    • updateComboBox

      public void updateComboBox​(javax.swing.JComboBox comboBox, java.io.File[] FileList)
    • addJPanel

      public void addJPanel​(javax.swing.JPanel jPanel, java.awt.Color color, javax.swing.border.Border border, int height, int weight)
      creat a panel with given data
      Parameters:
      jPanel - JPanel
      color - of panel
      border - of panel
      height - of panel
      weight - of panel
    • setSystemTray

      public void setSystemTray()
      Provide adding program to system tray copied from StackOverFlow
    • sendRequest

      public void sendRequest()