Examples of VerticalStaticJPanel


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

    orient = new ResizePanel(currentMap);
    orient.addPropertyChangeListener(this);

    // Offset panel
    JPanel offsetPanel = new VerticalStaticJPanel();
    offsetPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(OFFSET_TITLE),
        BorderFactory.createEmptyBorder(0, 5, 5, 5)));
    offsetPanel.setLayout(new GridBagLayout());
    GridBagConstraints c = new GridBagConstraints();
    c.anchor = GridBagConstraints.WEST;
    c.fill = GridBagConstraints.BOTH;
    c.weighty = 1;
    c.insets = new Insets(5, 0, 0, 5);
    offsetPanel.add(new JLabel(X_LABEL), c);
    c.gridy = 1;
    offsetPanel.add(new JLabel(Y_LABEL), c);
    c.gridx = 1;
    c.gridy = 0;
    c.insets = new Insets(5, 0, 0, 0);
    offsetPanel.add(offsetX, c);
    c.gridy = 1;
    offsetPanel.add(offsetY, c);
    c.gridx = 2;
    c.gridy = 0;
    c.gridheight = 2;
    c.weightx = 1;
    offsetPanel.add(new JPanel(), c);
    c.gridx = 0;
    c.gridy = 2;
    c.gridwidth = 3;
    c.gridheight = 1;
    // offsetPanel.add(orient, c);

    // New size panel
    JPanel newSizePanel = new VerticalStaticJPanel(new GridBagLayout());
    newSizePanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(NEWSIZE_TITLE),
        BorderFactory.createEmptyBorder(0, 5, 5, 5)));
    c = new GridBagConstraints();
    c.anchor = GridBagConstraints.WEST;
    c.fill = GridBagConstraints.BOTH;
    c.weighty = 1;
    c.insets = new Insets(5, 0, 0, 5);
    newSizePanel.add(new JLabel(WIDTH_LABEL), c);
    c.gridy = 1;
    newSizePanel.add(new JLabel(HEIGHT_LABEL), c);
    c.fill = GridBagConstraints.HORIZONTAL;
    c.gridx = 1;
    c.gridy = 0;
    c.weightx = 1;
    c.insets = new Insets(5, 0, 0, 0);
    newSizePanel.add(width, c);
    c.gridy = 1;
    newSizePanel.add(height, c);

    // Original size panel
    JPanel origSizePanel = new VerticalStaticJPanel(new GridBagLayout());
    origSizePanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(CURRENT_SIZE_TITLE),
        BorderFactory.createEmptyBorder(0, 5, 5, 5)));
    c = new GridBagConstraints();
    c.anchor = GridBagConstraints.EAST;
    c.fill = GridBagConstraints.BOTH;
    c.weighty = 1;
    c.weightx = 1;
    c.insets = new Insets(5, 0, 0, 5);
    origSizePanel.add(new JLabel(WIDTH_LABEL), c);
    c.gridy = 1;
    origSizePanel.add(new JLabel(HEIGHT_LABEL), c);
    c.anchor = GridBagConstraints.WEST;
    c.insets = new Insets(5, 10, 0, 0);
    c.gridx = 1;
    c.gridy = 0;
    origSizePanel.add(new JLabel(String.valueOf(currentMap.getWidth())), c);
    c.gridy = 1;
    origSizePanel.add(new JLabel(String.valueOf(currentMap.getHeight())), c);

    // Putting two size panels next to eachother
    JPanel sizePanels = new VerticalStaticJPanel(new GridBagLayout());
    c = new GridBagConstraints();
    c.fill = GridBagConstraints.BOTH;
    c.gridx = 0;
    c.gridy = 0;
    c.weighty = 1;
    c.weightx = 0;
    sizePanels.add(origSizePanel, c);
    c.gridx = 1;
    c.weightx = 1;
    sizePanels.add(newSizePanel, c);

    // Buttons panel
    bOk.addActionListener(this);
    bCancel.addActionListener(this);
    JPanel buttons = new VerticalStaticJPanel();
    buttons.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 0));
    buttons.setLayout(new BoxLayout(buttons, BoxLayout.X_AXIS));
    buttons.add(Box.createGlue());
    buttons.add(bOk);
    buttons.add(Box.createRigidArea(new Dimension(5, 0)));
    buttons.add(bCancel);

    // Putting the main panel together
    JPanel mainPanel = new JPanel();
    mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.PAGE_AXIS));
    mainPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
View Full Code Here

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

    c.gridx = 1;
    tileColorPanel.add(colorButton);

    // Create the tile bitmap import setting panel

    JPanel tilebmpPanel = new VerticalStaticJPanel();
    tilebmpPanel.setLayout(new GridBagLayout());
    tilebmpPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(FROM_TILESET_IMG_TITLE),
        BorderFactory.createEmptyBorder(0, 5, 5, 5)));
    c.gridx = 0;
    c.gridy = 0;
    c.weightx = 0;
    c.insets = new Insets(5, 0, 0, 0);
    c.anchor = GridBagConstraints.EAST;
    c.fill = GridBagConstraints.HORIZONTAL;
    c.gridwidth = 4;
    tilebmpPanel.add(tilebmpCheck, c);
    c.gridy = 1;
    c.gridwidth = 1;
    c.insets = new Insets(5, 0, 0, 5);
    c.fill = GridBagConstraints.NONE;
    tilebmpPanel.add(tilebmpFileLabel, c);
    c.gridy = 2;
    tilebmpPanel.add(spacingLabel, c);
    /*
     * c.gridy = 4; tilebmpPanel.add(cutterLabel, c);
     */
    c.gridx = 1;
    c.gridy = 1;
    c.weightx = 1;
    c.insets = new Insets(5, 0, 0, 0);
    c.fill = GridBagConstraints.HORIZONTAL;
    c.gridwidth = 3;
    tilebmpPanel.add(tilebmpPathPanel, c);
    c.gridwidth = 1;
    c.gridy = 2;
    tilebmpPanel.add(tileSpacing, c);
    /*
     * c.gridy = 4; tilebmpPanel.add(cutterBox, c);
     */
    c.gridx = 0;
    c.gridy = 4;
    c.gridwidth = 4;
    tilebmpPanel.add(tileColorPanel, c);
    c.gridx = 2;
    c.gridy = 2;
    c.gridwidth = 1;
    c.weightx = 0;
    c.insets = new Insets(5, 5, 0, 0);
    tilebmpPanel.add(marginLabel, c);
    c.gridx = 3;
    c.weightx = 1;
    tilebmpPanel.add(tileMargin, c);
    c.gridx = 1;
    c.gridwidth = 1;

    // OK and Cancel buttons

    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(previewButton);
    buttons.add(Box.createRigidArea(new Dimension(5, 0)));
    buttons.add(cancelButton);

    // Top part of form

    JPanel miscPropPanel = new VerticalStaticJPanel();
    miscPropPanel.setLayout(new GridBagLayout());
    miscPropPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 5, 0));
    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(tileWidthLabel, c);
    c.gridy = 2;
    miscPropPanel.add(tileHeightLabel, c);
    c.insets = new Insets(5, 0, 0, 0);
    c.fill = GridBagConstraints.HORIZONTAL;
    c.gridx = 1;
    c.gridy = 0;
    c.weightx = 1;
    miscPropPanel.add(tilesetName, c);
    c.gridy = 1;
    miscPropPanel.add(tileWidth, c);
    c.gridy = 2;
    miscPropPanel.add(tileHeight, c);
    c.gridy = 3;
    miscPropPanel.add(propsButton, c);

    // Main panel

    JPanel mainPanel = new JPanel();
    mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.PAGE_AXIS));
View Full Code Here

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

    // gridColor = new JColorChooser();

    // Set up the layout

    /* LAYER OPTIONS */
    JPanel layerOps = new VerticalStaticJPanel();
    layerOps.setLayout(new GridBagLayout());
    layerOps.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(LAYER_OPTIONS_TITLE),
        BorderFactory.createEmptyBorder(0, 5, 5, 5)));
    GridBagConstraints c = new GridBagConstraints();
    c.anchor = GridBagConstraints.EAST;
    c.fill = GridBagConstraints.NONE;
    c.gridy = 1;
    c.fill = GridBagConstraints.HORIZONTAL;
    c.gridx = 1;
    c.gridy = 0;
    c.weightx = 1;
    layerOps.add(cbBinaryEncode, c);
    c.gridy = 2;
    c.insets = new Insets(0, 10, 0, 0);
    layerOps.add(cbCompressLayerData, c);

    /* GENERAL OPTIONS */
    JPanel generalOps = new VerticalStaticJPanel();
    generalOps.setLayout(new GridBagLayout());
    generalOps.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    c = new GridBagConstraints();
    c.anchor = GridBagConstraints.NORTH;
    c.fill = GridBagConstraints.NONE;
    generalOps.add(new JLabel(UNDO_DEPTH_LABEL), c);
    c.fill = GridBagConstraints.HORIZONTAL;
    c.gridx = 1;
    c.weightx = 1;
    generalOps.add(undoDepth, c);
    c.gridy = 1;
    c.gridx = 0;
    generalOps.add(cbReportIOWarnings, c);
    c.gridy = 2;
    c.gridx = 0;
    generalOps.add(cbAutoOpenLastFile, c);

    /* GENERAL SAVING OPTIONS */
    JPanel generalSavingOps = new VerticalStaticJPanel();
    generalSavingOps.setLayout(new GridBagLayout());
    generalSavingOps.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(GENERAL_SAVING_OPTIONS_TITLE),
        BorderFactory.createEmptyBorder(0, 5, 5, 5)));
    c = new GridBagConstraints();
    c.fill = GridBagConstraints.HORIZONTAL;
    c.gridx = 1;
    c.gridy = 0;
    c.weightx = 1;
    generalSavingOps.add(cbUsefulComments, c);

    /* TILESET OPTIONS */
    JPanel tilesetOps = new VerticalStaticJPanel();
    tilesetOps.setLayout(new GridBagLayout());
    tilesetOps.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(TILESET_OPTIONS_TITLE),
        BorderFactory.createEmptyBorder(0, 5, 5, 5)));
    tilesetOps.add(cbEmbedImages, c);
    c.gridy = 1;
    c.insets = new Insets(0, 10, 0, 0);
    tilesetOps.add(rbEmbedInTiles, c);
    c.gridy = 2;
    c.insets = new Insets(0, 10, 0, 0);
    tilesetOps.add(rbEmbedInSet, c);

    /* GRID OPTIONS */
    JPanel gridOps = new VerticalStaticJPanel();
    gridOps.setLayout(new GridBagLayout());
    gridOps.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    c = new GridBagConstraints();
    c.insets = new Insets(0, 0, 0, 5);
    gridOps.add(new JLabel(OPACITY_LABEL), c);
    c.insets = new Insets(0, 0, 0, 0);
    c.weightx = 1;
    c.gridx = 1;
    c.fill = GridBagConstraints.HORIZONTAL;
    gridOps.add(gridOpacitySlider, c);
    c.gridwidth = 2;
    c.gridy = 1;
    c.gridx = 0;
    gridOps.add(cbGridAA, c);
    // c.gridy = 2; c.weightx = 0;
    // gridOps.add(new JLabel("Color: "), c);
    // c.gridx = 1;
    // gridOps.add(gridColor, c);

    JButton exportButton = new JButton(EXPORT_BUTTON);
    exportButton.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent actionEvent) {
        doExport();
      }
    });

    JButton importButton = new JButton(IMPORT_BUTTON);
    importButton.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent actionEvent) {
        doImport();
      }
    });

    JButton closeButton = new JButton(CLOSE_BUTTON);
    closeButton.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent actionEvent) {
        dispose();
      }
    });

    /* BUTTONS PANEL */
    JPanel buttons = new VerticalStaticJPanel();
    buttons.setLayout(new BoxLayout(buttons, BoxLayout.X_AXIS));
    buttons.add(exportButton);
    buttons.add(Box.createRigidArea(new Dimension(5, 5)));
    buttons.add(importButton);
    buttons.add(Box.createRigidArea(new Dimension(5, 5)));
    buttons.add(Box.createGlue());
    buttons.add(closeButton);

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

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

    tileWidth = new IntegerSpinner(defaultTileWidth, 1);
    tileHeight = new IntegerSpinner(defaultTileHeight, 1);

    // Map size fields

    JPanel mapSize = new VerticalStaticJPanel();
    mapSize.setLayout(new GridBagLayout());
    mapSize.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(MAPSIZE_TITLE),
        BorderFactory.createEmptyBorder(0, 5, 5, 5)));
    GridBagConstraints c = new GridBagConstraints();
    c.anchor = GridBagConstraints.EAST;
    c.fill = GridBagConstraints.NONE;
    c.insets = new Insets(5, 0, 0, 5);
    mapSize.add(new JLabel(WIDTH_LABEL), c);
    c.gridy = 1;
    mapSize.add(new JLabel(HEIGHT_LABEL), c);
    c.insets = new Insets(5, 0, 0, 0);
    c.fill = GridBagConstraints.HORIZONTAL;
    c.gridx = 1;
    c.gridy = 0;
    c.weightx = 1;
    mapSize.add(mapWidth, c);
    c.gridy = 1;
    mapSize.add(mapHeight, c);

    // Tile size fields

    JPanel tileSize = new VerticalStaticJPanel();
    tileSize.setLayout(new GridBagLayout());
    tileSize.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(TILESIZE_TITLE),
        BorderFactory.createEmptyBorder(0, 5, 5, 5)));
    c.gridx = 0;
    c.gridy = 0;
    c.weightx = 0;
    c.fill = GridBagConstraints.NONE;
    c.insets = new Insets(5, 0, 0, 5);
    tileSize.add(new JLabel(WIDTH_LABEL), c);
    c.gridy = 1;
    tileSize.add(new JLabel(HEIGHT_LABEL), c);
    c.insets = new Insets(5, 0, 0, 0);
    c.fill = GridBagConstraints.HORIZONTAL;
    c.gridx = 1;
    c.gridy = 0;
    c.weightx = 1;
    tileSize.add(tileWidth, c);
    c.gridy = 1;
    tileSize.add(tileHeight, c);

    // OK and Cancel buttons

    JButton okButton = new JButton(OK_BUTTON);
    JButton cancelButton = new JButton(CANCEL_BUTTON);
    okButton.addActionListener(this);
    cancelButton.addActionListener(this);

    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(cancelButton);

    // Map type and name inputs

    mapTypeChooser = new JComboBox();
    mapTypeChooser.addItem(ORTHOGONAL_MAPTYPE);
    mapTypeChooser.addItem(ISOMETRIC_MAPTYPE);
    mapTypeChooser.addItem(HEXAGONAL_MAPTYPE);
    // TODO: Enable views when implemented decently
    // mapTypeChooser.addItem(SHIFTED_MAPTYPE);

    JPanel miscPropPanel = new VerticalStaticJPanel();
    miscPropPanel.setLayout(new GridBagLayout());
    miscPropPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 5, 0));
    c.gridx = 0;
    c.gridy = 0;
    c.weightx = 0;
    c.fill = GridBagConstraints.NONE;
    c.insets = new Insets(5, 0, 0, 5);
    miscPropPanel.add(new JLabel(MAPTYPE_LABEL), c);
    c.insets = new Insets(5, 0, 0, 0);
    c.fill = GridBagConstraints.HORIZONTAL;
    c.gridx = 1;
    c.gridy = 0;
    c.weightx = 1;
    miscPropPanel.add(mapTypeChooser, c);

    // Putting two size panels next to eachother

    JPanel sizePanels = new JPanel();
    sizePanels.setLayout(new BoxLayout(sizePanels, BoxLayout.X_AXIS));
View Full Code Here

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

    image_panel.add(imageLabel);

    // buttons
    okButton = new JButton(OK_BUTTON);
    cancelButton = new JButton(CANCEL_BUTTON);
    JPanel buttons = new VerticalStaticJPanel();
    buttons.setBorder(BorderFactory.createEmptyBorder(5, 0, 0, 0));
    buttons.setLayout(new BoxLayout(buttons, BoxLayout.X_AXIS));
    buttons.add(cancelButton);
    buttons.add(okButton);

    // main panel
    JPanel mainPanel = new JPanel();
    mainPanel.setLayout(new GridBagLayout());
    GridBagConstraints c = new GridBagConstraints();
View Full Code Here

Examples of tiled.mapeditor.widget.VerticalStaticJPanel

        closeButton = new JButton(CLOSE_BUTTON);
        infoButton.addActionListener(this);
        removeButton.addActionListener(this);
        closeButton.addActionListener(this);

        JPanel buttonPanel = new VerticalStaticJPanel();
        buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));
        buttonPanel.add(infoButton);
        buttonPanel.add(Box.createRigidArea(new Dimension(5, 0)));
        buttonPanel.add(removeButton);
        buttonPanel.add(Box.createGlue());
        buttonPanel.add(Box.createRigidArea(new Dimension(5, 0)));
        buttonPanel.add(closeButton);

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

Examples of tiled.mapeditor.widget.VerticalStaticJPanel

    scriptsScrollPane.setPreferredSize(new Dimension(200, 150));

    JButton okButton = new JButton("OK");
    JButton cancelButton = new JButton("Cancel");

    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(scriptsScrollPane);
View Full Code Here

Examples of 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 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 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(editAnimationButton);
        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
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.