Changeset 2144


Ignore:
Timestamp:
2001-03-09T13:28:35+13:00 (23 years ago)
Author:
say1
Message:

tried to add a poll action ...

Location:
trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/CSFrame.java

    r2143 r2144  
    6464    //fileMenu.add( newPersonAction = new FileAction("New Person", NEW_PERSON_ID)).setAccelerator(KeyStroke.getKeyStroke('P', Event.CTRL_MASK));
    6565    //fileMenu.addSeparator();
     66    fileMenu.add( quitAction = new FileAction("Poll Server", POLL_ID)).setAccelerator(KeyStroke.getKeyStroke('P', Event.CTRL_MASK));;
    6667    fileMenu.add( quitAction = new FileAction("Quit", QUIT_ID)).setAccelerator(KeyStroke.getKeyStroke('Q', Event.CTRL_MASK));;
    6768
     
    133134                case NEW_GROUP_ID:
    134135                     System.out.println("new group chosen from menu");
     136                     break;
     137                case POLL_ID:
     138                     System.out.println("poll chosen from menu");
    135139                     break;
    136140                case QUIT_ID:
  • trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/Constants.java

    r2143 r2144  
    4141/* File Menu */
    4242
    43 int  NEW_PERSON_ID          = 101;
    44 int  NEW_GROUP_ID           = 102;
    45 int  NEW_SPACE_ID           = 103;
    46 int  QUIT_ID                = 104;
    47 
     43  final static int  NEW_PERSON_ID           = 101;
     44  final static int  NEW_GROUP_ID            = 102;
     45  final static int  NEW_SPACE_ID            = 103;
     46  final static int  QUIT_ID             = 104;
     47  final static int  POLL_ID             = 105;
    4848
    4949/* Edit Menu */
    5050
    51 int INFO_ID                 = 201;
    52 int EDIT_ID                 = 202;
    53 int WEIGHTS_ID              = 207;
     51  final static int INFO_ID              = 201;
     52  final static int EDIT_ID                  = 202;
     53  final static int WEIGHTS_ID               = 207;
    5454
    5555
  • trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/Makefile

    r2143 r2144  
    77  SimpleGraphicalClient.class\
    88
    9 
    109all : $(CLASSES)
    1110    echo try a command like "java org.nzdl.gsdl.SimpleGraphicalClient.SimpleGraphicalClient"
    12 
    1311
    1412clean:
Note: See TracChangeset for help on using the changeset viewer.