Examples of VerticalStaticJPanel


Examples of de.yaams.extensions.basemap.tiled.mapeditor.widget.VerticalStaticJPanel

    JButton okButton = new JButton(OK_BUTTON);
    JButton cancelButton = new JButton(CANCEL_BUTTON);
    JButton deleteButton = new JButton(Resources.getIcon("gnome-delete.png"));
    deleteButton.setToolTipText(DELETE_BUTTON);

    JPanel user = new VerticalStaticJPanel();
    user.setBorder(BorderFactory.createEmptyBorder(5, 0, 0, 0));
    user.setLayout(new BoxLayout(user, BoxLayout.X_AXIS));
    user.add(Box.createGlue());
    user.add(Box.createRigidArea(new Dimension(5, 0)));
    user.add(deleteButton);

    JPanel buttons = new VerticalStaticJPanel();
    buttons.setBorder(BorderFactory.createEmptyBorder(5, 0, 0, 0));
    buttons.setLayout(new BoxLayout(buttons, BoxLayout.X_AXIS));
    buttons.add(Box.createGlue());
    buttons.add(okButton);
    buttons.add(Box.createRigidArea(new Dimension(5, 0)));
    buttons.add(cancelButton);

    mainPanel = new JPanel();
    mainPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));
    mainPanel.add(propScrollPane);
View Full Code Here

Examples of de.yaams.extensions.basemap.tiled.mapeditor.widget.VerticalStaticJPanel

    cancelButton = new JButton(CANCEL_BUTTON);

    JScrollPane imageScrollPane = new JScrollPane(imagePanel);
    imageScrollPane.setAutoscrolls(true);

    VerticalStaticJPanel mainPanel = new VerticalStaticJPanel();
    mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));

    mainPanel.add(imageScrollPane);

    JPanel buttonPanel = new JPanel(new GridBagLayout());
    GridBagConstraints c = new GridBagConstraints();
    c.gridx = 0;
    c.gridy = 0;
    c.weightx = 1;
    c.fill = GridBagConstraints.HORIZONTAL;
    buttonPanel.add(colorPanel);
    c.gridx = 1;
    buttonPanel.add(Box.createRigidArea(new Dimension(25, 5)));
    c.gridx = 2;
    buttonPanel.add(cancelButton);

    mainPanel.add(buttonPanel);

    setContentPane(mainPanel);

    // create actionlisteners
    cancelButton.addActionListener(new ActionListener() {
View Full Code Here

Examples of de.yaams.extensions.basemap.tiled.mapeditor.widget.VerticalStaticJPanel

    buttonPanel.add(bFind);
    buttonPanel.add(bFindAll);
    buttonPanel.add(bReplace);
    buttonPanel.add(bReplaceAll);

    JPanel closePanel = new VerticalStaticJPanel();
    closePanel.setLayout(new BorderLayout());
    closePanel.add(bClose, BorderLayout.EAST);

    JPanel mainPanel = new JPanel();
    mainPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));
    mainPanel.add(searchPanel, BorderLayout.NORTH);
View Full Code Here

Examples of de.yaams.extensions.basemap.tiled.mapeditor.widget.VerticalStaticJPanel

    splitPane.setResizeWeight(0.25);
    splitPane.setLeftComponent(sp);
    splitPane.setRightComponent(propScrollPane);

    // The buttons
    JPanel buttons = new VerticalStaticJPanel();
    buttons.setBorder(BorderFactory.createEmptyBorder(5, 0, 0, 0));
    buttons.setLayout(new BoxLayout(buttons, BoxLayout.X_AXIS));
    buttons.add(deleteTileButton);
    buttons.add(Box.createRigidArea(new Dimension(5, 0)));
    buttons.add(changeImageButton);
    buttons.add(Box.createRigidArea(new Dimension(5, 0)));
    buttons.add(duplicateTileButton);
    // buttons.add(Box.createRigidArea(new Dimension(5, 0)));
    // buttons.add(animationButton);
    buttons.add(Box.createRigidArea(new Dimension(5, 0)));
    buttons.add(Box.createGlue());

    // Putting it all together
    JPanel mainPanel = new JPanel();
    mainPanel.setLayout(new GridBagLayout());
    mainPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
View Full Code Here

Examples of de.yaams.extensions.basemap.tiled.mapeditor.widget.VerticalStaticJPanel

    // Buttons
    createTileButton = new JButton(CREATE_BUTTON);
    addImagesButton = new JButton(ADD_IMAGES_BUTTON);
    createTileButton.addActionListener(this);
    addImagesButton.addActionListener(this);
    JPanel buttons = new VerticalStaticJPanel();
    buttons.setBorder(BorderFactory.createEmptyBorder(5, 0, 0, 0));
    buttons.setLayout(new BoxLayout(buttons, BoxLayout.X_AXIS));
    buttons.add(addImagesButton);
    buttons.add(Box.createRigidArea(new Dimension(5, 0)));
    buttons.add(createTileButton);

    JPanel mainPanel = new JPanel();
    mainPanel.setLayout(new GridBagLayout());
    mainPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    GridBagConstraints c = new GridBagConstraints();
View Full Code Here

Examples of de.yaams.extensions.basemap.tiled.mapeditor.widget.VerticalStaticJPanel

  private void init() {
    // Tileset name field at the top
    JLabel nameLabel = new JLabel(NAME_LABEL);
    tilesetNameEntry = new JTextField(32);
    JPanel namePanel = new VerticalStaticJPanel();
    namePanel.setLayout(new BoxLayout(namePanel, BoxLayout.X_AXIS));
    namePanel.add(nameLabel);
    namePanel.add(Box.createRigidArea(new Dimension(5, 5)));
    namePanel.add(tilesetNameEntry);

    tabs = new JTabbedPane(SwingConstants.TOP);
    tabs.addTab(TILES_TAB, createTilePanel());
    tabs.addTab(IMAGES_TAB, createImagePanel());

    okButton = new JButton(OK_BUTTON);

    JPanel buttons = new VerticalStaticJPanel();
    buttons.setLayout(new BoxLayout(buttons, BoxLayout.X_AXIS));
    buttons.add(Box.createGlue());
    buttons.add(okButton);

    JPanel mainPanel = new JPanel();
    mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));
    mainPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    mainPanel.add(namePanel);
View Full Code Here

Examples of de.yaams.extensions.basemap.tiled.mapeditor.widget.VerticalStaticJPanel

    JButton applyButton = new JButton(APPLY_BUTTON);
    applyButton.setToolTipText(APPLY_TOOLTIP);
    JButton deleteButton = new JButton(Resources.getIcon("gnome-delete.png"));
    deleteButton.setToolTipText(DELETE_BUTTON);

    JPanel user = new VerticalStaticJPanel();
    user.setBorder(BorderFactory.createEmptyBorder(5, 0, 0, 0));
    user.setLayout(new BoxLayout(user, BoxLayout.X_AXIS));
    user.add(Box.createGlue());
    user.add(Box.createRigidArea(new Dimension(5, 0)));
    user.add(deleteButton);

    JPanel buttons = new VerticalStaticJPanel();
    buttons.setBorder(BorderFactory.createEmptyBorder(5, 0, 0, 0));
    buttons.setLayout(new BoxLayout(buttons, BoxLayout.X_AXIS));
    buttons.add(Box.createGlue());
    buttons.add(applyButton);

    JPanel mainPanel = new JPanel();
    mainPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));
    mainPanel.add(propScrollPane);
View Full Code Here

Examples of de.yaams.extensions.basemap.tiled.mapeditor.widget.VerticalStaticJPanel

    c.weightx = 0;
    c.fill = GridBagConstraints.NONE;
    c.insets = new Insets(0, 5, 0, 0);
    imageSourcePanel.add(browseButton, c);

    JPanel miscPropPanel = new VerticalStaticJPanel();
    miscPropPanel.setLayout(new GridBagLayout());
    miscPropPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 5, 0));
    c = new GridBagConstraints();
    c.anchor = GridBagConstraints.EAST;
    c.gridx = 0;
    c.gridy = 0;
    c.weightx = 0;
    c.fill = GridBagConstraints.NONE;
    c.insets = new Insets(5, 0, 0, 5);
    miscPropPanel.add(nameLabel, c);
    c.gridy = 1;
    miscPropPanel.add(typeLabel, c);
    c.gridy = 2;
    miscPropPanel.add(imageLabel, c);
    c.gridy = 3;
    miscPropPanel.add(widthLabel, c);
    c.gridy = 4;
    miscPropPanel.add(heightLabel, c);
    c.insets = new Insets(5, 0, 0, 0);
    c.fill = GridBagConstraints.HORIZONTAL;
    c.gridx = 1;
    c.gridy = 0;
    c.weightx = 1;
    miscPropPanel.add(objectName, c);
    c.gridy = 1;
    miscPropPanel.add(objectType, c);
    c.gridy = 2;
    miscPropPanel.add(imageSourcePanel, c);
    c.gridy = 3;
    miscPropPanel.add(objectWidth, c);
    c.gridy = 4;
    miscPropPanel.add(objectHeight, c);

    mainPanel.add(miscPropPanel, 0);
  }
View Full Code Here

Examples of de.yaams.extensions.basemap.tiled.mapeditor.widget.VerticalStaticJPanel

    sRandomAmount.setPreferredSize(new Dimension(50, sRandomAmount.getPreferredSize().height));
    sRandomAmount.setToolTipText(RANDOM_AMOUNT_TOOLTIP);
    sRandomAmount.addChangeListener(this);

    // Brush options section
    JPanel opts = new VerticalStaticJPanel();
    opts.setLayout(new GridBagLayout());
    opts.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(OPTIONS_TITLE),
        BorderFactory.createEmptyBorder(0, 5, 5, 5)));
    GridBagConstraints c = new GridBagConstraints();
    c.fill = GridBagConstraints.NONE;
    c.anchor = GridBagConstraints.NORTHWEST;
    c.weightx = 0;
    c.insets = new Insets(0, 0, 5, 0);
    opts.add(new JLabel(BRUSH_SIZE_LABEL), c);
    c.gridy = 1;
    opts.add(new JLabel(AFFECTED_LAYERS_LABEL), c);
    c.gridy = 2;
    opts.add(cbRandomBrush, c);
    c.gridy = 0;
    c.gridx = 1;
    c.weightx = 0.3;
    c.fill = GridBagConstraints.HORIZONTAL;
    opts.add(brushSize, c);
    c.gridy = 1;
    opts.add(affectLayers, c);
    c.gridy = 2;
    opts.add(sRandomAmount, c);

    JPanel shapePanel = new JPanel();
    shapePanel.setLayout(new BoxLayout(shapePanel, BoxLayout.Y_AXIS));
    shapePanel.add(presets);
    shapePanel.add(opts);
View Full Code Here

Examples of de.yaams.extensions.basemap.tiled.mapeditor.widget.VerticalStaticJPanel

    bApply.addActionListener(this);
    bCancel.addActionListener(this);
    bApply.setEnabled(false);

    /* BUTTONS PANEL */
    JPanel buttons = new VerticalStaticJPanel();
    buttons.setLayout(new BoxLayout(buttons, BoxLayout.X_AXIS));
    buttons.add(Box.createGlue());
    buttons.add(okButton);
    buttons.add(Box.createRigidArea(new Dimension(5, 0)));
    buttons.add(bApply);
    buttons.add(Box.createRigidArea(new Dimension(5, 0)));
    buttons.add(bCancel);

    JPanel mainPanel = new JPanel();
    mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));
    mainPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    mainPanel.add(tabs);
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.