docstring
stringlengths
3
2.38k
code
stringlengths
9
99.4k
listener to handle button actions
ActionEvent . getSource JRadioButton . isSelected JDialog . dispose ActionEvent . getSource JDialog . dispose ActionEvent . getSource JCheckBox . isSelected JRadioButton . setEnabled JCheckBox . isSelected JRadioButton . setEnabled
listener to handle button actions
ActionEvent . getSource JRadioButton . isSelected JDialog . dispose ActionEvent . getSource JRadioButton . setEnabled
listener to handle button actions
ActionEvent . getSource JRadioButton . isSelected JDialog . dispose JCheckBox . isSelected JRadioButton . setEnabled JCheckBox . isSelected JRadioButton . setEnabled
action start
ActionEvent . getSource JRadioButtonMenuItem . cast DirectoryManager . <unk> File . delete Desktop . <unk> HashMap < JRadioButtonMenuItem > . get Desktop . setModel
apply this action
ActionEvent . getSource JRadioButtonMenuItem . cast JRadioButtonMenuItem . isSelected
handle the action events triggered by interface components
ActionEvent . getSource JRadioButtonMenuItem . isSelected Double . parseDouble Double . compare JOptionPane . showMessageDialog ArrayList . size
scroll to the end of the viewport if there are visible scrollbars
ActionEvent . getSource JScrollPane . cast JScrollPane . getViewport JViewport . getView JViewport . getViewRect JViewport . <unk> JViewport . setViewPosition
perform the scroll action if the action was performed on visible scrollbars and if the viewport is valid
ActionEvent . getSource JScrollPane . cast JScrollPane . getViewport JViewport . getView JViewport . getViewRect JViewport . <unk> Scrollable . cast Scrollable . <unk> Scrollable . getScrollableUnitIncrement Math . max Rectangle . getLocation JViewport . setViewPosition
capture the events thrown out by wave view parameters
ActionEvent . getSource JScrollPane . getHorizontalScrollBar JScrollBar . getMaximum JScrollBar . getValue JScrollPane . getSize JScrollPane . getInsets JScrollBar . getSize ActionEvent . getSource JButton . cast JScrollBar . addAdjustmentListener
action listener
ActionEvent . getSource JScrollPane . setVisible JPanel . setVisible ActionEvent . getActionCommand JPanel . setVisible JScrollPane . setVisible
listen for button actions
ActionEvent . getSource JSlider . getValue JSlider . setValue JSlider . getValue JSlider . setValue
listen for button actions
ActionEvent . getSource JSlider . setValue ActionEvent . getSource JSlider . getValue JSlider . setValue ActionEvent . getSource
call when the delete time button is clicked
ActionEvent . getSource JSpinner . getEditor DefaultEditor . cast DefaultEditor . getTextField JFormattedTextField . setText
implementation of action performed
ActionEvent . getSource JSpinner . getValue Integer . cast Integer . intValue JCheckBox . isSelected JSpinner . setValue Integer . <init> JSpinner . setValue String . equals JTextField . getText String . equals JOptionPane . showMessageDialog Resources . getString JTextField . setEnabled JPasswordField . setEnabled JTextArea . setEnabled JTextArea . setEditable JRadioButton . setSelected JTextArea . setEnabled JTextArea . setEditable JRadioButton . setSelected
<unk> applies the correct command to the button pressed
ActionEvent . getSource JSpinner . getValue Integer . cast Integer . intValue JSpinner . getValue Integer . intValue JSpinner . getValue Integer . intValue JRadioButton . isSelected JCheckBox . isSelected JDialog . setVisible JOptionPane . showMessageDialog JDialog . setVisible ActionEvent . getSource JCheckBox . setEnabled ActionEvent . getSource JCheckBox . setEnabled
add a condition post <unk> for tabbed pane one to add guide tab if guide toggle button is selected
ActionEvent . getSource JTabbedPane . addTab JTabbedPane . setSelectedIndex JTabbedPane . <unk> ImageIcon . <init> JTabbedPane . getTitleAt JTabbedPane . removeTabAt JTabbedPane . setSelectedIndex
invoke when an action occurs
ActionEvent . getSource JTabbedPane . cast Cursor . getPredefinedCursor JTabbedPane . setCursor Cursor . getDefaultCursor JTabbedPane . setCursor
methode pour <unk> dun <unk>
ActionEvent . getSource JTabbedPane . getTabCount JTabbedPane . getComponent JTabbedPane . remove JTabbedPane . add JTabbedPane . getTabCount JTabbedPane . <unk> JTextArea . <init> JTabbedPane . add JTextArea . setEditable JTabbedPane . getTabCount JTabbedPane . <unk> JTabbedPane . setSelectedComponent ActionEvent . getSource JTabbedPane . getTabCount JTabbedPane . getComponent JTabbedPane . remove JTabbedPane . add JTabbedPane . <unk> JTabbedPane . add JTextArea . setEditable JTabbedPane . <unk> JTabbedPane . setSelectedComponent ActionEvent . getSource JTabbedPane . getComponent JTabbedPane . remove JTabbedPane . add JTabbedPane . <unk> JTabbedPane . add JTextArea . setEditable JTabbedPane . getTabCount JTabbedPane . <unk> JTabbedPane . setSelectedComponent
implement the desired actions to perform on an event , in this case
ActionEvent . getSource JTabbedPane . setSelectedIndex JTabbedPane . getSelectedIndex JTabbedPane . setSelectedIndex
listener on rate a song button
ActionEvent . getSource JTable . cast ActionEvent . getActionCommand Integer . valueOf JTable . getModel JDialog . <init> JDialog . add JDialog . pack JDialog . setLocationRelativeTo JDialog . show
listener on information about song button
ActionEvent . getSource JTable . cast Integer . valueOf JTable . getModel JDialog . <init> JDialog . add JDialog . pack JDialog . setLocationRelativeTo JDialog . show
este metodo e <unk> por que a classe <unk> <unk> consulta <unk> <unk> um action listener
ActionEvent . getSource JTable . getModel DefaultTableModel . cast DefaultTableModel . <unk>
handle the actions of the goto buttons and also the notes button
ActionEvent . getSource JTable . getModel TableModel . getValueAt Object . toString Vector . size Vector . get String . startsWith Vector . get Container . cast Container . getParent JScrollPane . cast JTabbedPane . instance Container . getParent JTabbedPane . cast JTabbedPane . setSelectedComponent JScrollPane . getViewport JViewport . <unk> JScrollPane . getViewport Frame . cast JOptionPane . showMessageDialog
this method handles all the actions taking place
ActionEvent . getSource JTable . getSelectedRow JLabel . setText JButton . setEnabled JTable . getSelectedRow JLabel . setText JTable . getValueAt JTable . getSelectedRow JTable . getValueAt JLabel . setText JTable . getValueAt JTable . getSelectedRow JLabel . setText JCheckBox . setEnabled JButton . setEnabled SimpleDateFormat . <init> SimpleDateFormat . parse JTable . getSelectedRow SpinnerDateModel . <init> JSpinner . setModel JTable . getSelectedRow SimpleDateFormat . parse JTable . getValueAt SimpleDateFormat . parse JSpinner . setModel Date . getTime JLabel . setText SpinnerDateModel . cast SpinnerDateModel . getDate JSpinner . getModel JLabel . setText JSpinner . setEnabled ActionEvent . getSource Vector . <init> JButton . setEnabled JTable . setModel ResultSet . first DefaultComboBoxModel . removeAllElements ResultSet . getString DefaultComboBoxModel . addElement JPanel . setEnabled JButton . setEnabled ActionEvent . getSource JCheckBox . isSelected ActionEvent . getSource JCheckBox . isSelected ActionEvent . getSource SpinnerDateModel . getDate JSpinner . getModel SpinnerDateModel . cast SpinnerDateModel . getDate JCheckBox . isSelected JLabel . setText Date . equals JLabel . setText JSpinner . getValue JOptionPane . showConfirmDialog JLabel . getText SimpleDateFormat . <init> DateFormat . format JLabel . setText JButton . doClick JLabel . setText ActionEvent . getSource JTable . getSelectedRow JLabel . setText JTable . getSelectedRow JLabel . getText Integer . parseInt JLabel . setText JButton . doClick JLabel . setText ActionEvent . getSource JSpinner . getModel SpinnerDateModel . cast SpinnerDateModel . getDate JSpinner . getModel SpinnerDateModel . getDate Date . getTime JLabel . setText JButton . setEnabled JLabel . setText ActionEvent . getSource JLabel . setText
listener to handle button actions
ActionEvent . getSource JTable . getSelectedRow JTable . clearSelection JTable . repaint ActionEvent . getSource JTable . setRowSelectionInterval JTable . repaint ActionEvent . getSource JPanel . remove JSplitPane . removeAll JSplitPane . getOrientation JSplitPane . <init> JSplitPane . setTopComponent JSplitPane . setRightComponent JSplitPane . setResizeWeight JPanel . add JPanel . validate JPanel . repaint ActionEvent . getSource JCheckBox . isSelected
listener to handle button actions
ActionEvent . getSource JTable . getSelectedRow JTable . clearSelection JTable . repaint ActionEvent . getSource JTable . setRowSelectionInterval JTable . repaint ActionEvent . getSource JTable . repaint JPanel . remove JSplitPane . removeAll JSplitPane . <init> JSplitPane . setTopComponent JSplitPane . setRightComponent JSplitPane . setResizeWeight JPanel . add JPanel . validate JPanel . repaint ActionEvent . getSource JCheckBox . isSelected
listener to handle button actions
ActionEvent . getSource JTable . getSelectedRow JTable . clearSelection JTable . repaint JTable . setRowSelectionInterval JTable . repaint ActionEvent . getSource JPanel . remove JSplitPane . removeAll JSplitPane . <init> JSplitPane . setTopComponent JSplitPane . setRightComponent JSplitPane . setResizeWeight JPanel . add JPanel . validate JPanel . repaint ActionEvent . getSource JCheckBox . isSelected
listener to handle button actions
ActionEvent . getSource JTable . getSelectedRow JTable . clearSelection JTable . repaint JTable . setRowSelectionInterval JTable . repaint ActionEvent . getSource JPanel . remove JSplitPane . removeAll JSplitPane . <init> JSplitPane . setTopComponent JSplitPane . setRightComponent JSplitPane . setResizeWeight JPanel . add JPanel . validate JPanel . repaint JCheckBox . isSelected
listener to handle button actions
ActionEvent . getSource JTable . getSelectedRow JTable . clearSelection JTable . repaint JTable . setRowSelectionInterval JTable . repaint ActionEvent . getSource JTable . repaint ActionEvent . getSource JPanel . remove JSplitPane . removeAll JSplitPane . getOrientation JSplitPane . <init> JSplitPane . setTopComponent JSplitPane . setRightComponent JSplitPane . setResizeWeight JPanel . add JPanel . validate JPanel . repaint ActionEvent . getSource
listener to handle button actions
ActionEvent . getSource JTable . getSelectedRow JTable . clearSelection JTable . repaint JTable . setRowSelectionInterval JTable . repaint ActionEvent . getSource JTable . repaint ActionEvent . getSource JPanel . remove JSplitPane . removeAll JSplitPane . getOrientation JSplitPane . <init> JSplitPane . setTopComponent JSplitPane . setRightComponent JSplitPane . setResizeWeight JPanel . add JPanel . validate JPanel . repaint
listener to handle button actions
ActionEvent . getSource JTable . getSelectedRow JTable . clearSelection JTable . repaint JTable . setRowSelectionInterval JTable . repaint ActionEvent . getSource JTable . repaint JPanel . remove JSplitPane . removeAll JSplitPane . <init> JSplitPane . setTopComponent JSplitPane . setRightComponent JSplitPane . setResizeWeight JPanel . add JPanel . validate JPanel . repaint ActionEvent . getSource JCheckBox . isSelected
initiate the appropriate response to an <unk> menu option chosen or text returned from j text field
ActionEvent . getSource JTable . getSize BufferedImage . <init> BufferedImage . createGraphics JTable . paint FileOutputStream . <init> <unk> . <unk> <unk> . encode OutputStream . close JTable . getSize BufferedImage . <init> BufferedImage . createGraphics JTable . paint FileOutputStream . <init> <unk> . <unk> <unk> . encode OutputStream . close JTable . getSize BufferedImage . <init> BufferedImage . createGraphics JTable . paint FileOutputStream . <init> <unk> . <unk> <unk> . encode OutputStream . close JTable . getSize BufferedImage . <init> BufferedImage . createGraphics JTable . paint FileOutputStream . <init> <unk> . <unk> <unk> . encode OutputStream . close JOptionPane . showMessageDialog JTextField . setText File . <init> File . mkdir FileWriter . <init> PrintWriter . <init> PrintWriter . println PrintWriter . close FileWriter . <init> PrintWriter . <init> PrintWriter . println PrintWriter . close JOptionPane . showMessageDialog ActionEvent . getSource JTable . getSize BufferedImage . <init> BufferedImage . createGraphics JTable . paint FileOutputStream . <init> <unk> . <unk> <unk> . encode OutputStream . close ActionEvent . getSource System . exit JTree . addTreeSelectionListener JLabel . addMouseListener JLabel . addMouseMotionListener JTextField . setText JOptionPane . showMessageDialog JTextField . setText JOptionPane . showMessageDialog ActionEvent . getSource JTextField . setText JOptionPane . showMessageDialog ActionEvent . getSource JTextField . setText JOptionPane . showMessageDialog ActionEvent . getSource JTextField . setText JTextField . setEditable JTextField . requestFocus JTextField . addActionListener ActionEvent . getSource JTextField . setText JTextField . setEditable JTextField . requestFocus JTextField . addActionListener ActionEvent . getSource JTextField . setText JTextField . setEditable JTextField . requestFocus JTextField . addActionListener JTextField . setText JTextField . setEditable JTextField . requestFocus JTextField . addActionListener ActionEvent . getSource JTextField . removeActionListener JScrollPane . requestFocus JTextField . setEditable JTextField . getText String . indexOf String . substring Integer . parseInt JTextField . setText Integer . parseInt JTextField . setText String . equals Integer . parseInt JTextField . setText Float . parseFloat JTextField . setText ActionEvent . getSource JSplitPane . setDividerLocation ActionEvent . getSource JSplitPane . setDividerLocation ActionEvent . getSource JSplitPane . setDividerLocation ActionEvent . getSource JSplitPane . setDividerLocation JFrame . <init> JEditorPane . <init> JEditorPane . setEditable JScrollPane . <init> JFrame . setSize JFrame . show
handle all buttons and fields , does name , position , and sequence searching
ActionEvent . getSource JTable . setVisible JTextField . getText ActionEvent . getSource JTextField . getText JTable . setVisible JScrollPane . setEnabled ActionEvent . getSource SwingUtilities . windowForComponent Window . hide Window . dispose JTable . setVisible JTextField . setText
<unk> des actions
ActionEvent . getSource JTextArea . cut JTextArea . requestFocus JTextArea . copy JTextArea . requestFocus JTextArea . paste JTextArea . requestFocus JTextArea . setText JTextArea . requestFocus JTextArea . getCaretPosition JTextArea . <unk> JTextArea . getLineStartOffset JTextArea . getLineEndOffset JTextArea . getText String . trim JTextArea . requestFocus File . createTempFile File . deleteOnExit JTextArea . requestFocus JFileChooser . <init> File . <init> JFileChooser . setSelectedFile JFileChooser . setDialogTitle File . <init> JFileChooser . setCurrentDirectory JFileChooser . showSaveDialog JFileChooser . getSelectedFile JTextArea . requestFocus
define todos los <unk> de los <unk> de la <unk>
ActionEvent . getSource JTextArea . getCaretPosition JTextArea . insert ActionEvent . getSource JTextArea . insert ActionEvent . getSource JTextArea . insert JTextArea . getCaretPosition JTextArea . insert ActionEvent . getSource JTextArea . getCaretPosition JTextArea . insert JTextArea . getCaretPosition JTextArea . insert ActionEvent . getSource JTextArea . insert ActionEvent . getSource JTextArea . insert ActionEvent . getSource JTextArea . insert ActionEvent . getSource JTextArea . getCaretPosition JTextArea . insert JTextArea . getCaretPosition JTextArea . insert ActionEvent . getSource JTextArea . insert ActionEvent . getSource JTextArea . getCaretPosition JTextArea . insert JTextArea . getCaretPosition JTextArea . insert JTextArea . setCaretPosition
create action for every button of the created gui
ActionEvent . getSource JTextArea . getText JTextArea . append JTextArea . getText JTextArea . append ActionEvent . getSource JTextArea . getText JTextArea . setText JTextArea . getText JTextArea . append ActionEvent . getSource JTextArea . getText JTextArea . append JTextArea . getText JTextArea . setText JTextArea . append ActionEvent . getSource JTextArea . getText JTextArea . append JTextArea . getText JTextArea . append ActionEvent . getSource JTextArea . getText JTextArea . setText ActionEvent . getSource JTextArea . getText String . length String . substring JTextArea . setText JTextArea . getText JTextArea . append JTextArea . getText JTextArea . append JTextArea . getText JTextArea . setText ActionEvent . getSource String . equals String . endsWith String . substring JTextArea . setText
handle user input
ActionEvent . getSource JTextArea . getText JTextArea . setText
this method <unk> , when the user presses one of the id es buttons
ActionEvent . getSource JTextArea . selectAll JTextArea . copy JTextArea . setText JTextArea . selectAll JTextArea . copy JTextArea . setText Thread . stop
invoke when an action occurs
ActionEvent . getSource JTextArea . selectAll JTextArea . copy
<unk> was having problems with using html in the chat box , so kept this way and added a switch statement for font sizes
ActionEvent . getSource JTextArea . setForeground Font . <init> JTextArea . setFont Constants . <unk> ActionEvent . getSource JLabel . setForeground JPanel . setBackground JLabel . setFont
invoke when an action occurs
ActionEvent . getSource JTextArea . setText ActionEvent . getSource System . exit ActionEvent . getSource JTextArea . getSelectedText JTextArea . getSelectionEnd JTextArea . getSelectionStart JTextArea . <unk> JTextArea . getSelectedText JTextArea . getSelectionEnd JTextArea . getSelectionStart JTextArea . <unk> JTextArea . getCaretPosition JTextArea . insert ActionEvent . getSource JTextArea . getSelectedText JTextArea . <unk> JTextArea . getSelectionEnd JTextArea . <unk> ActionEvent . getSource JOptionPane . showOptionDialog ActionEvent . getSource JPanel . getComponent JTextArea . getSelectedText JTextArea . setText
process the action generated from the user interface
ActionEvent . getSource JTextArea . setText JButton . getToolkit Toolkit . <unk> Clipboard . setContents
handle all events generated by dispatcher gui
ActionEvent . getSource JTextArea . setText JMenuItem . getText JMenuItem . setText JList . getSelectedValues String . cast JList . getSelectedValues String . cast
handle all events generated by dispatcher gui
ActionEvent . getSource JTextArea . setText JMenuItem . setText JList . getSelectedValues String . cast JList . getSelectedValues String . cast
respond to one of the buttons in the main GUI , by querying the <unk> , and displaying the results into the output text area
ActionEvent . getSource JTextArea . setText JTextArea . append JTextArea . setText JTextArea . append JTextArea . setText Integer . parseInt JTextArea . append JTextArea . setText Integer . parseInt JTextArea . append JTextArea . setText Double . parseDouble JTextField . getText Double . parseDouble JTextArea . append JTextArea . setText JTextArea . append
this method <unk> , when the user presses one of the id es buttons
ActionEvent . getSource JTextArea . setText Thread . stop
invoke when an action occurs
ActionEvent . getSource JTextArea . setText
description of the method
ActionEvent . getSource JTextComponent . cast JTextComponent . paste
determine the component to use for the action
ActionEvent . getSource JTextComponent . cast
all entities that contain a pattern substring case <unk> in the name are produced
ActionEvent . getSource JTextField . cast ArrayList < Object > . <init> String . startsWith String . substring Pattern . compile Collection . iterator Iterator . hasNext Iterator . next Collection < Query > . iterator Iterator < Query > . next List < Object > . add Collection . iterator Iterator . hasNext Iterator . next List < Object > . add Collection . iterator Iterator . hasNext Iterator . next List < Object > . add Collection . iterator Iterator . hasNext Iterator . next Entity . getName List < Object > . add Attribute > . iterator Iterator . hasNext Iterator . next Attribute . getName List < Object > . add Relationship > . iterator Iterator . next Relationship . getName List < Object > . add List < Object > . contains List < Object > . add String . isEmpty List < Object > . contains List < Object > . add Collection . iterator Iterator . hasNext Iterator . next Entity . getName List < Object > . add Entity . getAttributes Attribute > . iterator Iterator . hasNext Iterator . next List < Object > . add Entity . <unk> Relationship > . iterator Iterator . hasNext Iterator . next List < Object > . add JTextField . setBackground List < Object > . iterator Iterator . hasNext Iterator . next
send a request when the user hits the enter key while typing in the search <unk> field
ActionEvent . getSource JTextField . cast Integer . parseInt JOptionPane . showMessageDialog Network . getInstance Network . <unk> Request . addObserver Request . send
get the val attribute of the <unk> object
ActionEvent . getSource JTextField . cast Integer . parseInt
send a request when the user hits the enter key while typing in the search <unk> field
ActionEvent . getSource JTextField . cast JTextField . getText Integer . parseInt JOptionPane . showMessageDialog Network . <unk> Request . addObserver Request . send
get the val attribute of the <unk> object
ActionEvent . getSource JTextField . cast JTextField . getText Integer . parseInt
return the selected value of the combobox
ActionEvent . getSource JTextField . cast JTextField . getText
handle new input
ActionEvent . getSource JTextField . cast
if the search button is clicked a new action event is created with a custom command common constants
ActionEvent . getSource JTextField . getText ActionEvent . <init>
respond to ui changes by updating the step data
ActionEvent . getSource JTextField . getText ActionEvent . getActionCommand SwingUtilities . invokeLater Step . <unk> JTextField . setText JTextField . selectAll Step . setDescription String . equals Step . setDescription
event listeners
ActionEvent . getSource JTextField . getText ArrayList . add Collections . reverseOrder Collections . sort JTextField . setText JOptionPane . showMessageDialog ActionEvent . getSource ArrayList . add JTextField . getText Collections . sort JTextField . setText JOptionPane . showMessageDialog ArrayList . add Collections . sort JTextField . setText JOptionPane . showMessageDialog JTextField . getText ArrayList . add Collections . reverseOrder Collections . sort JTextField . setText JOptionPane . showMessageDialog JPanel . removeAll JComboBox . getSelectedItem
invoke when an action occurs
ActionEvent . getSource JTextField . getText Double . parseDouble JTextField . getText
if a button has been pressed , do the appropriate response
ActionEvent . getSource JTextField . getText Driver . <init> Driver . <unk> JPasswordField . getPassword Driver . <unk> JLabel . setText System . exit
listen for changes in the rate text field
ActionEvent . getSource JTextField . getText Float . valueOf
<unk> <unk> an buttons werden <unk>
ActionEvent . getSource JTextField . getText InetAddress . getByName JButton . setEnabled JTextField . getText Server . <init> Thread . <init> Thread . start InetAddress . getLocalHost
invoke when an action occurs
ActionEvent . getSource JTextField . getText Integer . parseInt ActionEvent . getSource JTextField . setText ActionEvent . getSource JTextField . setText
invoke when an action occurs
ActionEvent . getSource JTextField . getText Integer . parseInt ActionEvent . getSource JTextField . setText
react to ok , reset and cancel buttons
ActionEvent . getSource JTextField . getText Integer . parseInt JOptionPane . showMessageDialog Element . setDelay Element . dispose
method used to track actions performed
ActionEvent . getSource JTextField . getText Integer . parseInt JTextField . getText Integer . parseInt ArrayList < Task > . add JTextField . getText ArrayList < Task > . add String . cast JComboBox . getSelectedItem Integer . parseInt String . cast Integer . parseInt JComboBox . getSelectedItem Integer . parseInt JComboBox . getSelectedItem String . cast Integer . parseInt JComboBox . getSelectedItem Integer . parseInt JComboBox . getSelectedItem JTextField . getText Integer . parseInt String . cast ArrayList < Task > . get DefaultListModel . addElement JOptionPane . showMessageDialog
listen for any events from the button then casts a vote
ActionEvent . getSource JTextField . getText Integer . parseInt JTextField . getText Integer . parseInt JTextField . getText Integer . parseInt JOptionPane . showMessageDialog String . isEmpty JOptionPane . showMessageDialog
this method controls what happens when an event happens
ActionEvent . getSource JTextField . getText Integer . parseInt String . cast JComboBox . getSelectedItem String . cast JComboBox . getSelectedItem String . cast JTextField . getText Integer . parseInt
method from the action listener interface
ActionEvent . getSource JTextField . getText JButton . getText
<unk> van een <unk> van het gui
ActionEvent . getSource JTextField . getText JButton . setEnabled JTextField . setText
method from the action listener interface
ActionEvent . getSource JTextField . getText JCheckBox . isSelected JCheckBox . setEnabled
method from the action listener interface
ActionEvent . getSource JTextField . getText JCheckBox . isSelected JTextField . setText JCheckBox . setEnabled JCheckBox . setSelected ActionEvent . getSource JTextField . getText JCheckBox . setEnabled ActionEvent . getSource JButton . getText
method from the action listener interface
ActionEvent . getSource JTextField . getText JCheckBox . setEnabled JCheckBox . setSelected JButton . setEnabled JTextField . setText ActionEvent . getSource JButton . getText
method from the action listener interface
ActionEvent . getSource JTextField . getText JCheckBox . setEnabled JCheckBox . setSelected JButton . setEnabled JTextField . setText ActionEvent . getSource
implement action <unk> for gui buttons : browse and create
ActionEvent . getSource JTextField . getText JFileChooser . showOpenDialog JTextField . setText JFileChooser . getSelectedFile JTextField . setText
handle button events from the main interface
ActionEvent . getSource JTextField . getText JLabel . setText JTextField . <init> JTextField . setFont JLabel . <init> JOptionPane . showOptionDialog JTextField . getText String . replaceAll String . length List . add JLabel . setText JTable . clearSelection JButton . setEnabled JTable . repaint JOptionPane . showMessageDialog JTable . getSelectedRowCount JOptionPane . showConfirmDialog JTable . getSelectedRow List . get List . remove JLabel . setText JTable . clearSelection JButton . setEnabled JTable . repaint
action events in connect window
ActionEvent . getSource JTextField . getText JLabel . setText
two main actions are handle here , search and clear search
ActionEvent . getSource JTextField . getText JLabel . setVisible JProgressBar . setVisible JTextField . getText JCheckBox . isSelected ResourceBundle . getString JButton . setText JButton . setEnabled JCheckBox . setEnabled Timer . start JButton . setEnabled JCheckBox . setEnabled JTextField . setText Container . repaint
react to buttons
ActionEvent . getSource JTextField . getText JOptionPane . showMessageDialog JTextField . getText Integer . parseInt JTextField . getText Integer . parseInt JOptionPane . showMessageDialog JRadioButton . isSelected JOptionPane . showMessageDialog String . equals ActionEvent . getSource JOptionPane . showInputDialog String . trim String . equals JOptionPane . showMessageDialog JOptionPane . showInputDialog String . trim JDialog . <init> JDialog . getContentPane BoxLayout . <init> Container . setLayout JTextArea . <init> JScrollPane . <init> Container . add AbstractAction . <init> JTextArea . getText JOptionPane . showMessageDialog JDialog . dispose AbstractAction . <init> JDialog . dispose JLabel . <init> Container . add GridLayout . <init> JPanel . <init> JButton . <init> JPanel . add Container . add JDialog . pack JDialog . setLocation JDialog . setVisible
button responses for all five of the panels in the program
ActionEvent . getSource JTextField . getText JOptionPane . showMessageDialog JTextField . getText Integer . valueOf Message . <init> String . contains Message . getMessage JTextField . getText JOptionPane . showMessageDialog JTextField . getText Message . <init> String . contains ActionEvent . getSource JTextField . getText JOptionPane . showMessageDialog JTextField . getText Message . <init> Message . getMessage Message . <unk> JTextField . setText Integer . toString JTextField . setText Message . getMessage ActionEvent . getSource JTextField . getText JOptionPane . showMessageDialog JTextField . getText Message . <init> Message . getMessage Socket . <init> Socket . getOutputStream ObjectOutputStream . <init> ObjectOutputStream . flush ObjectInputStream . <init> Message . <init> ObjectOutputStream . writeObject ObjectOutputStream . flush JTextArea . setText JTextArea . append ObjectInputStream . readObject ObjectInputStream . close ObjectOutputStream . close
act on button presses and combo box selections
ActionEvent . getSource JTextField . getText JOptionPane . showMessageDialog JTextField . setBackground JOptionPane . showMessageDialog JTextField . setBackground SimpleDateFormat . <init> SimpleDateFormat . parse GregorianCalendar . <init> GregorianCalendar . setTime JLabel . getText SimpleDateFormat . parse JTextField . getText SimpleDateFormat . parse JOptionPane . showMessageDialog JTextField . setText DateFormat . getDateInstance JTextField . setText Calendar . getTime Date . <init> JTextField . setBackground GregorianCalendar . <init> GregorianCalendar . setTime JOptionPane . showMessageDialog JTextField . setText DateFormat . getDateInstance Calendar . getTime JTextField . setBackground JOptionPane . showMessageDialog DateFormat . getDateInstance JTextField . setText Calendar . getTime JTextField . setBackground ActionEvent . getSource JComboBox . getSelectedItem String . cast String . equals JPanel . remove JPanel . add JPanel . repaint JPanel . revalidate JPanel . remove JPanel . add JPanel . repaint JPanel . revalidate
override the action performed method in the action listener interface call the respective methods for handling the events on the components
ActionEvent . getSource JTextField . getText JOptionPane . showMessageDialog Socket . <init> Listener . <init> Listener . start JOptionPane . showMessageDialog System . exit
action performed tells the program how to react in the case that one of the buttons is clicked
ActionEvent . getSource JTextField . getText JOptionPane . showMessageDialog String . substring Integer . parseInt String . substring Integer . parseInt String . substring Integer . parseInt String . substring Integer . parseInt Date . <init> JTextField . getText Control . add Control . <unk> JOptionPane . showMessageDialog ActionEvent . getSource JOptionPane . showMessageDialog
<unk> die buttons
ActionEvent . getSource JTextField . getText JPasswordField . getPassword String . <init> JTextField . getText DefaultTableModel . <init> JTable . setModel JOptionPane . showMessageDialog DefaultTableModel . <init> JTable . setModel JButton . setEnabled
listener for the login and play offline button
ActionEvent . getSource JTextField . getText JPasswordField . getPassword String . <init> JTextField . getText
listener to handle button actions
ActionEvent . getSource JTextField . getText JPasswordField . getPassword String . <init>
require by action listener
ActionEvent . getSource JTextField . getText JRadioButton . isSelected JOptionPane . showMessageDialog ActionEvent . getSource JTextArea . setText Integer . parseInt
require by action listener
ActionEvent . getSource JTextField . getText JRadioButton . isSelected JOptionPane . showMessageDialog JTextArea . setText Integer . parseInt
require by action listener
ActionEvent . getSource JTextField . getText JRadioButton . isSelected JOptionPane . showMessageDialog JTextArea . setText JTextField . getText Integer . parseInt
handle all action events by triggering the appropriate response by the controller
ActionEvent . getSource JTextField . getText JRadioButton . isSelected JTextField . getText JRadioButton . isSelected JTextField . getText
the listener method
ActionEvent . getSource JTextField . getText JTextArea . append JTextArea . setCaretPosition JTextField . setText JTextField . getText JTextArea . append JTextArea . getText JTextArea . setCaretPosition JTextField . setText JFileChooser . <init> JFileChooser . setDialogTitle JFileChooser . setFileSelectionMode JFileChooser . setDoubleBuffered JFileChooser . showOpenDialog JFileChooser . getSelectedFile BufferedWriter . <init> Writer . write Writer . flush Writer . close
handle ui events
ActionEvent . getSource JTextField . getText JTextField . selectAll JCheckBoxMenuItem . instance JMenuItem . cast JMenuItem . getName JMenuItem . isSelected JMenuItem . instance JMenuItem . getName Vector . elementAt String . cast Vector . size Vector . elementAt String . cast
handle ui events
ActionEvent . getSource JTextField . getText JTextField . selectAll JMenuItem . cast JMenuItem . getName JMenuItem . isSelected JMenuItem . instance JMenuItem . cast JMenuItem . getName Vector . elementAt String . cast Vector . size Vector . elementAt String . cast
method from the action listener interface
ActionEvent . getSource JTextField . getText JTextField . setText JButton . setEnabled JFrame . <init> JOptionPane . showMessageDialog JTextField . setText JLabel . setText Timer . setDelay ActionEvent . getSource List . get JFrame . <init> JOptionPane . showMessageDialog ActionEvent . getSource
method from the action listener interface
ActionEvent . getSource JTextField . getText JTextField . setText JCheckBox . setEnabled JButton . setEnabled JCheckBox . setSelected
method from the action listener interface
ActionEvent . getSource JTextField . getText JTextField . setText JCheckBox . setSelected ActionEvent . getWhen JCheckBox . getName JCheckBox . setEnabled JCheckBox . getText JCheckBox . setText JCheckBox . setEnabled JCheckBox . setSelected JCheckBox . setEnabled JCheckBox . setSelected
the action listener resolving method
ActionEvent . getSource JTextField . getText JTextField . setText JTextField . getText JTextField . setText JFileChooser . <init> JFileChooser . setDialogTitle JFileChooser . setFileSelectionMode JFileChooser . setDoubleBuffered JFileChooser . showOpenDialog JFileChooser . getSelectedFile FileWriter . <init> BufferedWriter . <init> Writer . write Writer . close JOptionPane . showMessageDialog
search button
ActionEvent . getSource JTextField . getText JTextField . setText JTextField . getText JTextField . setText JTextField . getText JTextField . setText JTextField . getText JTextField . setText JTextField . getText JTextField . setText String . charAt Character . isDigit String . substring Integer . parseInt JTextField . setText JTextField . getText JTextField . setText JOptionPane . showMessageDialog JTextField . getText Calendar . getInstance String . substring Integer . parseInt Calendar . set ArrayList . clear ArrayList . addAll JTable . repaint JFrame . repaint
a new type was selected in the type combo box
ActionEvent . getSource JTextField . getText JTextField . setText JTextField . getText JTextField . setText JTextField . setEnabled JPasswordField . setEnabled JTextField . setEnabled JPasswordField . setEnabled