Wednesday, October 29, 2014

IAT GUI summary


1. Find a selected item. 
    private Choice theIAT_Choice = new Choice();
        if (theIAT_Choice.getSelectedItem().equals("vsdb"))
            System.out.println("vsdb !!");

2. Shortcut to println statement in eclipse.
// type “syso”, followed by CTRL + SPACE.
 System.out.println("Hello, World");

3.ItemEvent selection  ( not really sure..... )
public void itemStateChanged(ItemEvent e) {
        if (e.getStateChange() == ItemEvent.SELECTED) {
            fdLbl.setVisible(false);
            System.out.println("fd lbl selected");
        } else {
            fdLbl.setVisible(true);
            System.out.println("fd lbl invisible");
        }

4. Panels I have

emptyConfigPanel : 
   emptyLbl
   emptyTextArea

radmonConfigPanel

vsdbConfigPanel 

fdConfigPanel 
   fdConfigLabelArr
   fdConfigTextAreaArr
   fdConfigTextAreaStrArr

geConfigPanel 

hitConfigPanel

No comments:

Post a Comment