Package org.jcsp.awt

Examples of org.jcsp.awt.ActiveLabel


        root.setLayout(new BorderLayout());
        root.setSize(320, 480);
        // north is the user input container
        final Container inputContainer = new Container();
        inputContainer.setLayout(new GridLayout(2, 2));
        final ActiveLabel nameLabel = new ActiveLabel("Meeting Name");
        final ActiveLabel locationLabel = new ActiveLabel("Meeting Location");
        final ActiveTextEnterField nameField = new ActiveTextEnterField(null, meetingNameEventOutput);
        final ActiveTextEnterField locationField = new ActiveTextEnterField(null, meetingLocationEventOutput);
        inputContainer.add(nameLabel);
        inputContainer.add(locationLabel);
        inputContainer.add(nameField.getActiveTextField());
        inputContainer.add(locationField.getActiveTextField());
        root.add(inputContainer, BorderLayout.NORTH);
        // center is the server response container
        final Container responseContainer = new Container();
        responseContainer.setLayout(new GridLayout(2, 2));
        final ActiveLabel registeredLabel = new ActiveLabel(registeredConfigureInput);
        final ActiveLabel attendeesLabel = new ActiveLabel("Attendees");
        final ActiveLabel registeredLocationLabel = new ActiveLabel(registeredLocationConfigureInput);
        final ActiveLabel attendeeNumberLabel = new ActiveLabel(attendeesConfigureInput);
        responseContainer.add(registeredLabel);
        responseContainer.add(attendeesLabel);
        responseContainer.add(registeredLocationLabel);
        responseContainer.add(attendeeNumberLabel);
        root.add(responseContainer, BorderLayout.CENTER);
View Full Code Here


        root.setLayout(new BorderLayout());
        root.setSize(320, 480);
        // north is the user input container
        final Container inputContainer = new Container();
        inputContainer.setLayout(new GridLayout(2, 1));
        final ActiveLabel nameLabel = new ActiveLabel("Meeting Name");
        final ActiveTextEnterField nameField = new ActiveTextEnterField(null, meetingNameEventOutput);
        inputContainer.add(nameLabel);
        inputContainer.add(nameField.getActiveTextField());
        root.add(inputContainer, BorderLayout.NORTH);
        // center is the server response container
        final Container responseContainer = new Container();
        responseContainer.setLayout(new GridLayout(2, 2));
        final ActiveLabel registeredLabel = new ActiveLabel(registeredConfigureInput);
        final ActiveLabel attendeesLabel = new ActiveLabel("Attendees");
        final ActiveLabel registeredLocationLabel = new ActiveLabel(registeredLocationConfigureInput);
        final ActiveLabel attendeeNumberLabel = new ActiveLabel(attendeesConfigureInput);
        responseContainer.add(registeredLabel);
        responseContainer.add(attendeesLabel);
        responseContainer.add(registeredLocationLabel);
        responseContainer.add(attendeeNumberLabel);
        root.add(responseContainer, BorderLayout.CENTER);
View Full Code Here

    public void run() {
        System.out.println("No service client user interface started ");
        final ActiveFrame root = new ActiveFrame(null, responseEvent, "JK Meeting Service");
        root.setSize(320, 480);
        root.setLayout(new BorderLayout());
        final ActiveLabel message = new ActiveLabel(messageConfigure, "                         ");
        final ActiveButton retry = new ActiveButton(null, responseEvent, "Retry");
        final ActiveButton close = new ActiveButton(null, responseEvent, "Close");
        root.add(message, BorderLayout.NORTH);
        root.add(retry, BorderLayout.CENTER);
        root.add(close, BorderLayout.SOUTH);
View Full Code Here

TOP

Related Classes of org.jcsp.awt.ActiveLabel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.