Examples of HGroupLayout


Examples of com.samskivert.swing.HGroupLayout

        if (showHintLabel) {
            add(new JLabel("Type here to chat:"), GroupLayout.FIXED);
        }

        // create a horizontal group for the text entry bar
        gl = new HGroupLayout(GroupLayout.STRETCH, GroupLayout.STRETCH, 5, GroupLayout.LEFT);
        JPanel epanel = new JPanel(gl);
        epanel.add(_entry = new JTextField());
        _entry.setActionCommand("send");
        _entry.addActionListener(this);
        _entry.setEnabled(false);
View Full Code Here

Examples of com.samskivert.swing.HGroupLayout

        // set up the scene view panel with a default scene
        _svpanel = createScenePanel();
        _main.add(_svpanel, BorderLayout.CENTER);

        // create a toolbar for action selection and other options
        JPanel upper = new JPanel(new HGroupLayout(GroupLayout.NONE, GroupLayout.LEFT));
        upper.add(new EditorToolBarPanel(_ctx.getTileManager(), _model), GroupLayout.FIXED);
        _sceneInfoPanel = new SceneInfoPanel(_ctx, _model, _svpanel);
        upper.add(_sceneInfoPanel, GroupLayout.FIXED);
        _main.add(upper, BorderLayout.NORTH);
View Full Code Here

Examples of com.samskivert.swing.HGroupLayout

        gl.setOffAxisPolicy(GroupLayout.STRETCH);
        top.setLayout(gl);
        top.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));

        // create the display for the test tile directory pref
        JPanel sub = new JPanel(new HGroupLayout(GroupLayout.STRETCH));
        sub.add(new JLabel("Directory to search for test tiles:"),
                GroupLayout.FIXED);
        EditorDialogUtil.addButton(this, sub,
            EditorConfig.getTestTileDirectory(), "testtiledir");
        top.add(sub);

        sub = new JPanel(new HGroupLayout());
        EditorDialogUtil.addButton(this, sub, "OK", "ok");
        top.add(sub);

        pack();
    }
View Full Code Here

Examples of com.samskivert.swing.HGroupLayout

    @Override
    public void addComponents (JComponent panel)
    {
        // object action editor elements
        JPanel sub = new JPanel(new HGroupLayout(HGroupLayout.STRETCH));
        sub.add(new JLabel("Object action command:"), HGroupLayout.FIXED);
        sub.add(_action = new JTextField());
        _action.addActionListener(this);
        _action.setActionCommand("ok");
        panel.add(sub);

        // create the priority slider
        sub = new JPanel(new HGroupLayout(HGroupLayout.STRETCH));
        sub.add(new JLabel("Render priority:"), HGroupLayout.FIXED);
        sub.add(_priority = new JSlider(-5, 5));
        _priority.setMajorTickSpacing(5);
        _priority.setMinorTickSpacing(1);
        _priority.setPaintTicks(true);
View Full Code Here

Examples of com.samskivert.swing.HGroupLayout

    public void addComponents(JComponent top){
        // add the dialog instruction text
        top.add(new JLabel("Enter settings for this portal:"));

        // create a panel to contain the portal name info
        JPanel sub = new JPanel(new HGroupLayout(HGroupLayout.STRETCH));
        sub.add(new JLabel("Portal name:", SwingConstants.RIGHT));

        // create and add the portal name text entry field
        sub.add(_portalText = new JTextField());
View Full Code Here

Examples of com.samskivert.swing.HGroupLayout

    {
        _ctx = ctx;
        _svpanel = svpanel;

        // configure the panel
        GroupLayout gl = new HGroupLayout();
        gl.setGap(12);
        setLayout(gl);

        JPanel vert = GroupLayout.makeVStretchBox(5);

        JPanel hbox = GroupLayout.makeHBox();
View Full Code Here

Examples of com.samskivert.swing.HGroupLayout

        JLabel title = new JLabel(tstr, JLabel.CENTER);
        title.setFont(new Font("Helvetica", Font.BOLD, 24));
        box.add(title);

        // create the username bar
        JPanel bar = new JPanel(new HGroupLayout(GroupLayout.STRETCH));
        bar.add(new JLabel(_msgs.get("m.username")), GroupLayout.FIXED);
        _username = new JTextField();
        _username.setActionCommand("skipToPassword");
        _username.addActionListener(this);
        bar.add(_username);
        box.add(bar);

        // create the password bar
        bar = new JPanel(new HGroupLayout(GroupLayout.STRETCH));
        bar.add(new JLabel(_msgs.get("m.password")), GroupLayout.FIXED);
        _password = new JPasswordField();
        _password.setActionCommand("logon");
        _password.addActionListener(this);
        bar.add(_password);
        box.add(bar);

        // create the logon button bar
        HGroupLayout gl = new HGroupLayout(GroupLayout.NONE);
        gl.setJustification(GroupLayout.RIGHT);
        bar = new JPanel(gl);
        _logon = new JButton(_msgs.get("m.logon"));
        _logon.setActionCommand("logon");
        _logon.addActionListener(this);
        bar.add(_logon);
View Full Code Here

Examples of com.samskivert.swing.HGroupLayout

        // we want a five pixel border around everything
            setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));

        // create our primary layout which divides the display in two
        // horizontally
        HGroupLayout hgl = new HGroupLayout(HGroupLayout.STRETCH);
        hgl.setOffAxisPolicy(HGroupLayout.STRETCH);
        hgl.setJustification(HGroupLayout.RIGHT);
        setLayout(hgl);

        // create our main panel
        VGroupLayout vgl = new VGroupLayout(VGroupLayout.STRETCH);
        vgl.setOffAxisPolicy(VGroupLayout.STRETCH);
View Full Code Here

Examples of com.samskivert.swing.HGroupLayout

        // add ourselves as a seatedness observer
        _tdtr.addSeatednessObserver(this);

        // set up a layout manager
        HGroupLayout gl = new HGroupLayout(HGroupLayout.STRETCH);
        gl.setOffAxisPolicy(HGroupLayout.STRETCH);
        setLayout(gl);

        // we have two lists of tables, one of tables being matchmade...
        VGroupLayout pgl = new VGroupLayout(VGroupLayout.STRETCH);
        pgl.setOffAxisPolicy(VGroupLayout.STRETCH);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.