Package org.apache.pivot.wtk

Examples of org.apache.pivot.wtk.Frame


            "color_list_button_test.bxml");
        listButton = (ListButton)bxmlSerializer.getNamespace().get("listButton");
        // test the getListPopup() method
        listButton.getListPopup().getDecorators().add(new ReflectionDecorator());

        frame = new Frame(boxPane);
        frame.setTitle("Color List Button Test");
        frame.setPreferredSize(480, 360);
        frame.open(display);
    }
View Full Code Here


        for (int i = 0; i < 3; i++) {
            BXMLSerializer bxmlSerializer = new BXMLSerializer();
            bxmlSerializer.getNamespace().put("application", this);

            Frame frame;
            try {
                frame = (Frame)bxmlSerializer.readObject(Windows.class, "frame.bxml");
            } catch (SerializationException exception) {
                throw new RuntimeException(exception);
            } catch (IOException exception) {
                throw new RuntimeException(exception);
            }

            frame.setTitle("Frame " + (i + 1));
            frame.setLocation(x, y);
            x += 20;
            y += 20;

            frame.open(displayArgument);
        }
    }
View Full Code Here

        return result;
    }

    @Override
    public void startup(Display display, Map<String, String> properties) throws Exception {
        frame = new Frame();
        frame.setTitle("Pivot714");

        result = (Dialog) getWindow(frame.getRootOwner());

        frame.setPreferredSize(640, 480);
View Full Code Here

    @Override
    public void startup(Display display, Map<String, String> properties)
        throws Exception {
        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        frame = new Frame((Component)bxmlSerializer.readObject(getClass().getResource("form_test.bxml")));
        frame.setTitle("Form Test");
        frame.setPreferredSize(480, 360);
        frame.open(display);
    }
View Full Code Here

                return dropAction;
            }
        });

        frame = new Frame(label);
        frame.open(display);
    }
View Full Code Here

        PushButton button = new PushButton(picture);
        button.getStyles().put("toolbar", true);

        windowContent.add(button);

        frame = new Frame(windowContent);
        frame.setPreferredSize(480, 360);
        frame.getStyles().put("padding", 0);
        frame.open(display);

        final TablePane tablePane = new TablePane();
View Full Code Here

public class LabelTest extends Application.Adapter {
    private Frame frame = null;

    @Override
    public void startup(Display display, Map<String, String> properties) throws Exception {
        frame = new Frame();
        frame.setTitle("Label Test");

        String line1 = "There's a lady who's sure all that glitters is gold, and "
            + "she's buying a stairway to heaven. When she gets there she knows, "
            + "if the stores are closed, with a word she can get what she came "
View Full Code Here

        TextInput textInput1 = new TextInput();
        textInput1.setText("ABCD");
        boxPane1.add(textInput1);
        boxPane1.add(new TextInput());
        boxPane1.add(new TextInput());
        frame1 = new Frame(boxPane1);
        frame1.setPreferredSize(320, 240);
        frame1.open(display);

        BoxPane boxPane2 = new BoxPane(Orientation.VERTICAL);
        TextInput textInput2 = new TextInput();
        textInput2.setText("1234");
        boxPane2.add(textInput2);
        boxPane2.add(new TextInput());
        boxPane2.add(new TextInput());
        frame2 = new Frame(boxPane2);
        frame2.setPreferredSize(320, 240);
        frame2.open(display);

        frame2.requestFocus();
    }
View Full Code Here

    @Override
    public void startup(Display display, Map<String, String> properties)
        throws Exception {
        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        frame = new Frame((Component)bxmlSerializer.readObject(getClass().getResource("border_test.bxml")));
        frame.setTitle("Border Test");
        frame.setPreferredSize(480, 360);
        frame.open(display);
    }
View Full Code Here

        };

        Action.getNamedActions().put("buttonAction", action);

        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        frame = new Frame((Component)bxmlSerializer.readObject(getClass().getResource("spinner_focus_test.bxml")));
        frame.setTitle("Spinner Focus Test");
        frame.open(display);

        spinner = (Spinner)bxmlSerializer.getNamespace().get("spinner");
        spinner.requestFocus();
View Full Code Here

TOP

Related Classes of org.apache.pivot.wtk.Frame

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.