docstring
stringlengths
3
2.38k
code
stringlengths
9
99.4k
if a j button or j text field is clicked
ActionEvent . getSource JTextField . getText JTextField . setText JTextField . getText String . length JTextField . getText Integer . parseInt JTextField . setText JLabel . setText JButton . setEnabled JTextField . setEditable JTextField . addActionListener
method from the action listener interface
ActionEvent . getSource JTextField . getText JTextField . setText String . isEmpty JCheckBox . setEnabled JButton . setEnabled JCheckBox . setSelected JButton . getText
listener voor de connect button en het <unk>
ActionEvent . getSource JTextField . getText JTextField . setText
method from the action listener interface
ActionEvent . getSource JTextField . getText JTextField . setText
method from the action listener interface
ActionEvent . getSource JTextField . getText String . equals ActionEvent . getSource
method from the action listener interface
ActionEvent . getSource JTextField . getText String . equals JCheckBox . setEnabled JTextField . getText String . equals JTextField . getText
listener for actions
ActionEvent . getSource JTextField . getText String . equals System . exit JTextField . setText JTextField . requestFocusInWindow
action listener
ActionEvent . getSource JTextField . getText String . split JTextArea . getText JTextField . getText JTextArea . getText JOptionPane . showMessageDialog PrintWriter . <init> PrintWriter . println JTextField . getText PrintWriter . println JTextField . getText PrintWriter . println JTextField . getText PrintWriter . println PrintWriter . close JOptionPane . showMessageDialog JTextField . setText JTextArea . setText JTextField . setText JTextArea . setText JTextField . setText JOptionPane . showMessageDialog JTextField . getText JTextField . setText JTextField . getText JTextField . setText JTextField . getText JTextField . setText JOptionPane . showMessageDialog
action listener
ActionEvent . getSource JTextField . getText String . split JTextField . getText JTextArea . getText JTextField . getText JTextArea . getText JOptionPane . showMessageDialog PrintWriter . <init> PrintWriter . println JTextField . getText PrintWriter . println JTextField . getText PrintWriter . println PrintWriter . close JOptionPane . showMessageDialog JTextField . setText JTextArea . setText JTextField . setText ActionEvent . getSource JTextField . setText JTextArea . setText JTextField . setText JOptionPane . showMessageDialog JTextField . getText JTextField . setText JOptionPane . showMessageDialog
detect an action performed
ActionEvent . getSource JTextField . getText String . substring JTextArea . append JTextField . setText JTextArea . append JTextField . setText
close the frame and starts the <unk> test suite if start was pressed or exits if exit was pressed ;
ActionEvent . getSource JTextField . getText System . setProperty Boolean . toString System . setProperty JTextField . getText System . setProperty System . exit
close the frame and starts the <unk> test suite if start was pressed or exits if exit was pressed ;
ActionEvent . getSource JTextField . getText System . setProperty Boolean . toString System . setProperty System . exit
close the frame and starts the <unk> test suite if start was pressed or exits if exit was pressed ;
ActionEvent . getSource JTextField . getText System . setProperty JCheckBox . isSelected Boolean . toString System . setProperty JTextField . getText System . setProperty System . exit
close the frame and starts the <unk> test suite if start was pressed or exits if exit was pressed ;
ActionEvent . getSource JTextField . getText System . setProperty JCheckBox . isSelected System . setProperty JTextField . getText System . setProperty System . exit
two main actions are handle here , search and clear search
ActionEvent . getSource JTextField . getText Timer . isRunning JLabel . setVisible JProgressBar . setVisible JTextField . getText JCheckBox . isSelected JButton . setText JButton . setEnabled JCheckBox . setEnabled Timer . start JButton . setEnabled JCheckBox . setEnabled JTextField . setText Container . repaint
only gets called when return is pressed in the input area , which starts the command running
ActionEvent . getSource JTextField . getText Vector < String > . size String . equals Vector < String > . addElement Vector < String > . size JTextField . setText
only gets called when return is pressed in the input area , which starts the command running
ActionEvent . getSource JTextField . getText Vector < String > . size Vector < String > . elementAt String . equals Vector < String > . addElement Vector < String > . size JTextField . setText
action listener
ActionEvent . getSource JTextField . getText
method action performed
ActionEvent . getSource JTextField . grabFocus JTextField . selectAll JTextField . grabFocus JTextField . selectAll JButton . doClick
respond to an action event from one of the gui components in the applet
ActionEvent . getSource JTextField . instance ActionEvent . getActionCommand JCheckBox . instance JCheckBox . cast JComboBox . getSelectedItem
respond to an action event from one of the gui components in the applet
ActionEvent . getSource JTextField . instance ActionEvent . getActionCommand JCheckBox . instance JCheckBox . isSelected JCheckBox . cast JComboBox . instance JComboBox . getSelectedItem
when buttons are clicked ,
ActionEvent . getSource JTextField . setText ActionEvent . getSource
action listener implementation
ActionEvent . getSource JTextField . setText JPasswordField . setText JTextField . setText ActionEvent . getSource JCheckBox . isSelected JCheckBox . setEnabled JCheckBox . isSelected JCheckBox . setSelected ActionEvent . getSource JCheckBox . isSelected JCheckBox . setSelected
action listener implementation
ActionEvent . getSource JTextField . setText JPasswordField . setText JTextField . setText ActionEvent . getSource JCheckBox . isSelected JCheckBox . setEnabled JCheckBox . setSelected ActionEvent . getSource JCheckBox . isSelected JCheckBox . setSelected
action listener implementation
ActionEvent . getSource JTextField . setText JPasswordField . setText JTextField . setText ActionEvent . getSource JCheckBox . setEnabled JCheckBox . setSelected ActionEvent . getSource JCheckBox . isSelected JCheckBox . setSelected
action listener implementation
ActionEvent . getSource JTextField . setText JPasswordField . setText JTextField . setText JButton . setEnabled ActionEvent . getSource JCheckBox . setEnabled JCheckBox . isSelected JCheckBox . setSelected ActionEvent . getSource JCheckBox . setSelected
action listener implementation
ActionEvent . getSource JTextField . setText JPasswordField . setText JTextField . setText JCheckBox . isSelected JCheckBox . setEnabled JCheckBox . setSelected ActionEvent . getSource JCheckBox . setSelected
respond to gui event
ActionEvent . getSource JTextField . setText JTextField . getText
action for my button
ActionEvent . getSource JTextField . setText
button actions
ActionEvent . getSource JTextField . setText
call when a button is pressed
ActionEvent . getSource JTextField . setText
handle save and or cancel being pressed , if saved is press it verifies the playlist then saves it , <unk> will clear all changes
ActionEvent . getSource JTextField . setText
load the specified file into the text pane or popup an error dialog if something goes wrong
ActionEvent . getSource JTextPane . cast JFileChooser . <init> JFileChooser . addChoosableFileFilter JFileChooser . showOpenDialog JFileChooser . getSelectedFile JTextPane . setPage File . toURI JOptionPane . showMessageDialog
attempt to return the console where the action event originated
ActionEvent . getSource JTextPane . cast Map < JTextPane , Console > . get
declare which action will happen given users action
ActionEvent . getSource JTextPane . setContentType JTextPane . setText JTextPane . setContentType JTextPane . setText
reaction to toggle button click ,
ActionEvent . getSource JToggleButton . cast ActionEvent . getSource List < JToggleButton > . indexOf Map < String , Boolean > . put JToggleButton . isSelected Boolean . valueOf
handle all events for <unk> to a view
ActionEvent . getSource JToggleButton . cast JToggleButton . getClientProperty JToggleButton . isSelected EventListenerList . add EventListenerList . remove
button press handler
ActionEvent . getSource JToggleButton . cast JToggleButton . setForeground JToggleButton . isSelected JToggleButton . setText ActionListener . actionPerformed
handle a toggle button getting clicked
ActionEvent . getSource JToggleButton . cast JToggleButton . setSelected Pair < Integer , Integer > . <init> JToggleButton . setSelected
delegate a response to an action event to the listener given in the constructor
ActionEvent . getSource JToggleButton . cast List < JMenuItem > . indexOf JToggleButton . cast JToggleButton . setSelected ActionListener . actionPerformed ActionEvent . getSource List < JMenuItem > . get JMenuItem . doClick
action listener interface
ActionEvent . getSource JToggleButton . doClick ActionEvent . getSource JToggleButton . doClick AbstractButton . isSelected ActionEvent . getSource
deal with button clicks
ActionEvent . getSource JToggleButton . equals JToggleButton . getText JToggleButton . setSelected
process any combo box change event level to update loggers state
ActionEvent . getSource JToggleButton . isSelected JButton . setEnabled
process any combo box change event level to update loggers state
ActionEvent . getSource Level . toLevel JComboBox . getSelectedItem Level . toLevel
timer interrupt handler
ActionEvent . getSource LinkedBlockingQueue < BufferedImage > . peek LinkedBlockingQueue < BufferedImage > . size LinkedBlockingQueue < BufferedImage > . take ArrayList < BufferedImage > . add ArrayList < BufferedImage > . size ArrayList < BufferedImage > . get
handle button presses
ActionEvent . getSource LinkedList . <init> JList . getSelectedIndices LinkedList . add JList . getModel LinkedList . add Set . remove Set . add ActionEvent . getSource LinkedList . <init> LinkedList . add Set . add Set . remove
set search fields text to the action events action command and call jx search <unk> action event to fire an <unk> , if e codes source is not the clear menu item
ActionEvent . getSource List < String > . removeAll ActionEvent . getActionCommand JTextField . setText JTextField . <unk>
set search fields text to the action events action command and call jx search <unk> action event to fire an <unk> , if es source is not the clear menu item
ActionEvent . getSource List < String > . removeAll JTextField . setText JTextField . <unk>
handle the show setup button action
ActionEvent . getSource Map < JButton > . get JPanel . removeAll JPanel . add
<unk> action listener <unk> action performed <unk>
ActionEvent . getSource Map < Object > . get
this method handles the events for the play button
ActionEvent . getSource Math . random JLabel . setText
listen for the users actions and handle them appropriately
ActionEvent . getSource Menu . <unk> Thread . <init> Thread . start Menu . <unk> ActionEvent . getSource Menu . <unk>
listen to the buttons
ActionEvent . getSource Menu . removeAll Menu . add JLabel . <init> JLabel . setForeground JLabel . setOpaque Menu . add Menu . updateUI ActionEvent . getSource Menu . removeAll Menu . add Menu . updateUI ActionEvent . getSource Integer . parseInt Server . <init> Server . start Menu . removeAll Menu . add Menu . updateUI String . isEmpty Server . <init> Server . start ActionEvent . getSource Menu . removeAll JLabel . <init> JLabel . setForeground Menu . add Menu . updateUI Menu . removeAll Menu . add Menu . updateUI
a method which triggers operation according to the source of trigger
ActionEvent . getSource Menu . setVisible JFrame . setVisible String . equals JFrame . setVisible String . equals JFrame . setVisible String . equals JFrame . setVisible
this class implements action listener interface : based on where the event has been generated , different action handlers are invoked for example : if the new file menu item is clicked , <unk> handler is invoked
ActionEvent . getSource MenuBar . <unk> MenuBar . <unk> MenuBar . <unk> MenuBar . <unk> MenuBar . <unk> MenuBar . <unk> MenuBar . <unk>
handle menu events
ActionEvent . getSource MenuItem . cast ActionEvent . getActionCommand MenuItem . getParent ActionEvent . getModifiers System . currentTimeMillis String . equals
handle menu events
ActionEvent . getSource MenuItem . cast ActionEvent . getActionCommand MenuItem . getParent ActionEvent . getModifiers System . currentTimeMillis
handle menu events
ActionEvent . getSource MenuItem . cast ActionEvent . getActionCommand MenuItem . getParent PopupMenu . getParent ActionEvent . getModifiers System . currentTimeMillis String . equals
a menu item was selected
ActionEvent . getSource MenuItem . cast MenuItem . getLabel String . equals
call by a menu item when it is clicked
ActionEvent . getSource MenuItem . cast MenuItem . getParams
handle menu events
ActionEvent . getSource MenuItem . instance ActionEvent . getSource MenuItem . cast ActionEvent . getActionCommand System . currentTimeMillis
handle menu events
ActionEvent . getSource MenuItem . instance MenuItem . cast ActionEvent . getActionCommand ActionEvent . getModifiers System . currentTimeMillis
handle menu events
ActionEvent . getSource MenuItem . instance MenuItem . cast ActionEvent . getActionCommand MenuItem . getParent ActionEvent . getModifiers System . currentTimeMillis String . equals
handle menu events
ActionEvent . getSource MenuItem . instance MenuItem . cast ActionEvent . getActionCommand MenuItem . getParent ActionEvent . getModifiers System . currentTimeMillis
handle menu events
ActionEvent . getSource MenuItem . instance MenuItem . cast ActionEvent . getActionCommand MenuItem . getParent System . currentTimeMillis
handle menu events
ActionEvent . getSource MenuItem . instance MenuItem . cast ActionEvent . getActionCommand
<unk> <unk> <unk> <unk> ab
ActionEvent . getSource Node . cast Node . <unk>
close the popup window when cancel button is pressed
ActionEvent . getSource Node . cast Node . <unk>
handle utility primary stage buttons
ActionEvent . getSource Node . cast
<unk> dei <unk>
ActionEvent . getSource Object . cast ActionEvent . getSource JComboBox . getSelectedItem String . cast String . equals Vector < JTextField > . get DecimalFormat . format JTextField . setText JTextField . select Vector < JTextField > . set Object . cast ActionEvent . getSource JComboBox . getSelectedItem String . cast String . equals Vector < JTextField > . get JTextField . setText Vector . get JTextField . setText JTextField . select Vector < JTextField > . set ActionEvent . getSource Object . cast String . cast String . equals Double . <init> String . equals Vector < JTextField > . get Vector . get JTextField . setText JTextField . select Vector < JTextField > . set Object . cast ActionEvent . getSource String . cast String . equals Vector < JTextField > . get DecimalFormat . format Vector . get JTextField . setText JTextField . select Vector < JTextField > . set Object . cast ActionEvent . getSource String . cast String . equals Vector < JTextField > . get Vector . get DecimalFormat . format JTextField . setText JTextField . select Vector < JTextField > . set JTextField . instance ActionEvent . getSource JButton . instance ActionEvent . getSource Object . cast Vector < JButton > . get ActionEvent . getSource Object . cast
implementation of action listener interface
ActionEvent . getSource Object . equals Dialog . setVisible
validate the date being entered each time a date element choice box is changed
ActionEvent . getSource Object . equals Integer . intValue JComboBox . getSelectedItem Integer . intValue String . cast JComboBox . getSelectedItem String . cast String . length Integer . <init> Integer . intValue Integer . <init> Integer . intValue
validate the date being entered each time a date element choice box is changed
ActionEvent . getSource Object . equals Integer . intValue String . cast Integer . intValue String . cast String . length String . startsWith String . substring Integer . intValue
invoke when an action occurs
ActionEvent . getSource Object . equals JCheckBox . isSelected Object . equals JCheckBox . isSelected Object . equals JCheckBox . isSelected Object . equals Thread . start
invoke when an action occurs
ActionEvent . getSource Object . equals JCheckBox . isSelected Object . equals JCheckBox . isSelected Object . equals JCheckBox . isSelected Thread . <init> Thread . start Thread . <init> Thread . start
invoke when an action occurs
ActionEvent . getSource Object . equals JCheckBox . isSelected Object . equals JCheckBox . isSelected Object . equals JCheckBox . isSelected Thread . start Object . equals Thread . <init> Thread . start
action listener
ActionEvent . getSource Object . equals JComboBox . getSelectedIndex
validate the date being entered
ActionEvent . getSource Object . equals JComboBox . getSelectedItem Integer . <init> Integer . intValue JComboBox . setSelectedIndex JComboBox . getSelectedItem String . cast Integer . <init> Integer . intValue GregorianCalendar . <init> GregorianCalendar . isLeapYear JComboBox . setSelectedItem JComboBox . setSelectedIndex JComboBox . getSelectedItem Integer . <init> Integer . intValue Object . equals JComboBox . getSelectedIndex JComboBox . setSelectedIndex GregorianCalendar . <init> JComboBox . setSelectedItem JComboBox . setSelectedIndex String . cast Integer . intValue String . cast Integer . intValue GregorianCalendar . <init> JComboBox . setSelectedIndex String . cast Integer . intValue String . cast Integer . intValue
validate the date being entered each time a date element choice box is changed
ActionEvent . getSource Object . equals JComboBox . getSelectedItem Integer . intValue String . cast Integer . intValue JComboBox . getSelectedItem String . cast String . length String . substring Integer . intValue Integer . <init> Integer . intValue
this method represents the action listener interface , invoked when an action occurs
ActionEvent . getSource Object . equals JList . setListData JTextField . setText JList . setListData JTextField . setText JList . getSelectionModel JTextField . setText Object . equals JCheckBox . isSelected JList . setEnabled JTextField . setEnabled JRadioButton . setEnabled JButton . setEnabled JCheckBox . setEnabled JRadioButton . setEnabled
this method represents the action listener interface , invoked when an action occurs
ActionEvent . getSource Object . equals JList . setListData JTextField . setText JList . setListData JTextField . setText Object . equals JList . getSelectionModel JTextField . setText JCheckBox . isSelected JList . setEnabled JTextField . setEnabled JRadioButton . setEnabled JButton . setEnabled JCheckBox . setEnabled JRadioButton . setEnabled
this method represents the action listener interface , invoked when an action occurs
ActionEvent . getSource Object . equals JList . setListData JTextField . setText JList . setListData JTextField . setText Object . equals JTextField . setText JCheckBox . isSelected JList . setEnabled JTextField . setEnabled JRadioButton . setEnabled JButton . setEnabled JCheckBox . setEnabled JRadioButton . setEnabled
this method represents the action listener interface , invoked when an action occurs
ActionEvent . getSource Object . equals JList . setListData JTextField . setText Object . equals JList . setListData JTextField . setText JCheckBox . isSelected JList . setEnabled JTextField . setEnabled JRadioButton . setEnabled JButton . setEnabled JCheckBox . setEnabled JRadioButton . setEnabled
this method represents the action listener interface , invoked when an action occurs
ActionEvent . getSource Object . equals JList . setListData JTextField . setText Object . equals JList . setListData JTextField . setText JList . getSelectionModel JTextField . setText Object . equals JCheckBox . isSelected JList . setEnabled JTextField . setEnabled JRadioButton . setEnabled JButton . setEnabled JCheckBox . setEnabled JRadioButton . setEnabled
this method represents the action listener interface , invoked when an action occurs
ActionEvent . getSource Object . equals JList . setListData JTextField . setText Object . equals JList . setListData JTextField . setText Object . equals JCheckBox . isSelected JList . setEnabled JTextField . setEnabled JRadioButton . setEnabled JButton . setEnabled JCheckBox . setEnabled JRadioButton . setEnabled
this method represents the action listener interface , invoked when an action occurs
ActionEvent . getSource Object . equals JList . setListData JTextField . setText Object . equals JList . setListData JTextField . setText Object . equals JList . getSelectionModel JTextField . setText Object . equals JCheckBox . isSelected JList . setEnabled JTextField . setEnabled JRadioButton . setEnabled JButton . setEnabled JCheckBox . setEnabled JRadioButton . setEnabled
this method represents the action listener interface , invoked when an action occurs
ActionEvent . getSource Object . equals JList . setListData JTextField . setText Object . equals JList . setListData JTextField . setText Object . equals JTextField . setText JCheckBox . isSelected JList . setEnabled JTextField . setEnabled JRadioButton . setEnabled JButton . setEnabled JCheckBox . setEnabled JRadioButton . setEnabled
process the action event
ActionEvent . getSource Object . equals JTextField . getText String . trim Vector . addElement JList . setListData JList . setSelectedValue JButton . setEnabled Object . equals JList . getSelectedIndex Vector . removeElementAt JList . setListData JButton . setEnabled Vector . size JList . setSelectedIndex JList . getSelectedIndex JButton . setEnabled JList . getSelectedIndex JTextField . getText Vector . indexOf Vector . setElementAt JList . setListData JButton . setEnabled Vector . size String . cast Object . equals Vector . size Vector . elementAt String . cast JButton . setEnabled
validate the date being entered each time a date element choice box is changed
ActionEvent . getSource Object . equals String . cast Integer . <init> Integer . intValue JComboBox . getSelectedItem String . cast String . startsWith Integer . intValue String . substring Integer . intValue Integer . <init> Integer . intValue
validate the date being entered
ActionEvent . getSource Object . equals String . cast Integer . <init> Integer . intValue JComboBox . setSelectedIndex JComboBox . getSelectedItem String . cast Integer . intValue GregorianCalendar . <init> GregorianCalendar . isLeapYear JComboBox . setSelectedItem JComboBox . setSelectedIndex JComboBox . getSelectedItem Integer . <init> Integer . intValue JComboBox . getSelectedIndex JComboBox . setSelectedIndex GregorianCalendar . <init> JComboBox . setSelectedItem JComboBox . setSelectedIndex Object . equals String . cast Integer . intValue GregorianCalendar . <init> JComboBox . setSelectedIndex Integer . intValue JComboBox . getSelectedItem String . cast
process the action event
ActionEvent . getSource Object . equals String . trim Vector . addElement JList . setListData JList . setSelectedValue JButton . setEnabled JList . getSelectedIndex Vector . removeElementAt JList . setListData JButton . setEnabled Vector . size JList . setSelectedIndex JList . getSelectedIndex JButton . setEnabled JList . getSelectedIndex JTextField . getText Vector . indexOf Vector . setElementAt JList . setListData JButton . setEnabled Vector . size String . cast Vector . size Vector . elementAt String . cast JButton . setEnabled
handle action events such as the ok button
ActionEvent . getSource Object . equals TextArea . setText Frame . setVisible TextArea . getText Toolkit . getDefaultToolkit TextArea . getText Clipboard . setContents Button . setLabel Object . equals FileDialog . <init> FileDialog . setVisible FileDialog . getFile File . <init> PrintWriter . <init> PrintWriter . print PrintWriter . close
handle action events such as the ok button
ActionEvent . getSource Object . equals TextField . getText Integer . parseInt Vector . contains List . add Integer . <init> Vector . add Object . equals List . getSelectedIndex Vector . remove List . remove Button . cast Button . setEnabled
action performed method of the action listener interface
ActionEvent . getSource Object . getClass JComponent . getParent
<unk> van een <unk> van het gui
ActionEvent . getSource Object . getClass JLabel . setText JTextField . getText JLabel . setText JTextField . setText
<unk> van een <unk> van het gui
ActionEvent . getSource Object . getClass JTextField . getText JLabel . setText Object . equals JTextField . getText JTextField . setText
map the actions for the j tool bar of the server
ActionEvent . getSource Object . getClass Object . equals Hashtable < Socket , DataOutputStream > . keys Enumeration < Socket > . hasMoreElements Socket . cast Server . <unk> Server . <unk> ArrayList < String > . <init>
action for the j combo box menus
ActionEvent . getSource Paint . <unk> Paint . <unk> Paint . repaint
react to button clicks
ActionEvent . getSource Panel . setVisible Panel . isVisible Panel . setVisible Button . setVisible TextField . requestFocus Panel . setVisible Panel . isVisible Panel . setVisible Button . setVisible TextField . requestFocus TextField . getText String . trim TextField . setSelectionStart TextField . setSelectionEnd
handle an action event
ActionEvent . getSource PathComponent . <unk> ActionEvent . getSource PathComponent . <unk>