Search in sources :

Example 26 with TitledBorder

use of javax.swing.border.TitledBorder in project ACS by ACS-Community.

the class CommandCenterGui method prepare.

public void prepare() {
    boolean setLookAndFeel = false;
    if (setLookAndFeel) {
        String lafName = UIManager.getSystemLookAndFeelClassName();
        try {
            UIManager.setLookAndFeel(lafName);
        } catch (Exception exc) {
            log.fine("Couldn't set look and feel " + lafName + " due to " + exc);
        }
    }
    // title added later in doFrameTitle()
    frame = new JFrame("");
    frame.addWindowListener(new WindowAdapter() {

        @Override
        public void windowClosing(WindowEvent evt) {
            controller.stop();
        }
    });
    dlgContainerSettings = new EditContainerSettingsDialog(this);
    frontPanel = new TabPanel(this);
    writeModelToFrontPanel();
    // Splitter between tree and the rest
    splitLeftRight = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
    splitLeftRight.setOneTouchExpandable(true);
    JPanel p2 = new JPanel(new BorderLayout());
    p2.setBorder(new EmptyBorder(10, 10, 10, 10));
    p2.add(frontPanel, BorderLayout.NORTH);
    splitLeftRight.setLeftComponent(p2);
    // Deployment Tree
    deploymentInfoPanel = new JPanel(new BorderLayout());
    deploymentInfoPanel.setBorder(new CompoundBorder(new EmptyBorder(5, 7, 5, 7), new TitledBorder(LineBorder.createBlackLineBorder(), " Deployment Info ")));
    deployTree = new DeploymentTree(controller.deploymentTreeControllerImpl);
    JPanel addToDeployTree = new AddToDeployTree(this, deployTree);
    deploymentInfoPanel.add(addToDeployTree, BorderLayout.NORTH);
    deploymentInfoPanel.add(new JScrollPane(deployTree), BorderLayout.CENTER);
    splitLeftRight.setRightComponent(deploymentInfoPanel);
    // Feedback Area
    feedbackTabs = new FeedbackTabs(this, FeedbackTabs.BOTTOM);
    // Logo Panel
    JPanel logoPanel = new LogoPanel(COLOR_LogoBackground_A, COLOR_LogoBackground_B);
    logoPanel.setLayout(new BorderLayout());
    JLabel alma = new JLabel(new ImageIcon(controller.findResource("alma.jpg")));
    logoPanel.add(alma, BorderLayout.WEST);
    JLabel text = new JLabel("Acs Command Center");
    text.setForeground(COLOR_LogoForeground);
    text.setHorizontalTextPosition(SwingConstants.CENTER);
    text.setFont(text.getFont().deriveFont((float) (text.getFont().getSize() * 2.5)));
    text.setBorder(new EmptyBorder(5, 30, 5, 30));
    logoPanel.add(text, BorderLayout.CENTER);
    //		JLabel version = new JLabel(controller.version());
    //		version.setForeground(COLOR_LogoForeground);
    //		version.setBorder(new EmptyBorder(0, 0, 0, 4));
    //		JPanel pnl2 = new JPanel(new BorderLayout());
    //		pnl2.setOpaque(false);
    //		pnl2.add(version, BorderLayout.SOUTH);
    //		logoPanel.add(pnl2, BorderLayout.EAST);
    menuBar = new JMenuBar();
    JMenu fileMenu = new JMenu("Project");
    fileMenu.setMnemonic(KeyEvent.VK_P);
    {
        JMenu newMenu = new JMenu("New");
        newMenu.add(new ActionNewProject("Project"));
        fileMenu.add(newMenu);
    }
    fileMenu.add(new ActionOpenProject("Open..."));
    fileMenu.add(new ActionSaveProject("Save"));
    fileMenu.add(new ActionSaveAsProject("Save As..."));
    fileMenu.addSeparator();
    fileMenu.add(new ActionExit("Exit"));
    menuBar.add(fileMenu);
    toolsMenu = new JMenu("Tools");
    toolsMenu.setMnemonic(KeyEvent.VK_T);
    toolsMenu.add(new ActionConfigureTools("Configure Tools..."));
    toolsMenu.addSeparator();
    menuBar.add(toolsMenu);
    // ---
    JMenu extrasMenu = new JMenu("Expert");
    extrasMenu.setMnemonic(KeyEvent.VK_E);
    {
        //				JMenu sshMode = new JMenu("SSH Library");
        //				sshMode.add(new ActionSetSshMode("Platform-independent", false, false));
        //				sshMode.add(new ActionSetSshMode("Natively installed ssh", true, true));
        //				extrasMenu.add(sshMode);
        //				extrasMenu.add(new JSeparator());
        JMenu extraTools = new JMenu("Tools Menu");
        extraTools.add(new ActionShowExtraTools("View..."));
        extraTools.add(new ActionInstallExtraTools("Replace..."));
        extrasMenu.add(extraTools);
        JMenu builtinTools = new JMenu("Acs Scripts");
        builtinTools.add(new ActionShowBuiltinTools("View..."));
        builtinTools.add(new ActionLoadBuiltinTools("Replace..."));
        extrasMenu.add(builtinTools);
    }
    extrasMenu.add(new JSeparator());
    extrasMenu.add(new ActionShowVariables("Variables..."));
    menuBar.add(extrasMenu);
    // ---
    JMenuItem item;
    JMenu helpMenu = new JMenu("Help");
    helpMenu.setMnemonic(KeyEvent.VK_H);
    item = helpMenu.add(new ActionShowHelp("Online Help"));
    item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0));
    item = helpMenu.add(new ActionShowAbout("About"));
    menuBar.add(Box.createHorizontalGlue());
    menuBar.add(helpMenu);
    // ---
    JPanel h = new JPanel(new SpringLayout());
    h.add(logoPanel);
    h.add(menuBar);
    SpringUtilities.makeCompactGrid(h, 0, 1);
    frame.getContentPane().add(h, BorderLayout.NORTH);
    // ---
    pnlManagerLocationForTools = new ManagerLocationPanel.ForTools();
    managerLocationDialog1 = new BasicDialog(this, "Specify Manager and Services for Tools", "Set", pnlManagerLocationForTools);
    // ---
    pnlManagerLocationForContainers = new ManagerLocationPanel.ForContainers();
    managerLocationDialog2 = new BasicDialog(this, "Specify Manager and Services for Containers", "Set", pnlManagerLocationForContainers);
    // ---
    splitTopBottom = new JSplitPane(JSplitPane.VERTICAL_SPLIT, splitLeftRight, feedbackTabs);
    splitTopBottom.setOneTouchExpandable(true);
    // --- 
    // 2009-04: Introducing a desktop layout so i can make the
    // progress dialog a lightweight window on top the front panel
    AccInternalFrame bigInternalFrame = new AccInternalFrame();
    bigInternalFrame.add(splitTopBottom);
    desktop = new JDesktopPane();
    bigInternalFrame.setVisible(true);
    desktop.add(bigInternalFrame);
    frame.getContentPane().add(desktop, BorderLayout.CENTER);
    try {
        bigInternalFrame.setSelected(true);
        bigInternalFrame.setMaximum(true);
    } catch (PropertyVetoException exc) {
    }
    // for mysterious swing reasons, the desktop has a preferred size
    // of (1,1) instead of picking up the preferred size of its child
    // component, so i'm doing this manually here.
    desktop.setPreferredSize(bigInternalFrame.getPreferredSize());
    doFrameTitle();
}
Also used : JPanel(javax.swing.JPanel) ImageIcon(javax.swing.ImageIcon) JDesktopPane(javax.swing.JDesktopPane) WindowAdapter(java.awt.event.WindowAdapter) TitledBorder(javax.swing.border.TitledBorder) JSeparator(javax.swing.JSeparator) BorderLayout(java.awt.BorderLayout) JFrame(javax.swing.JFrame) CompoundBorder(javax.swing.border.CompoundBorder) EmptyBorder(javax.swing.border.EmptyBorder) JMenuItem(javax.swing.JMenuItem) JScrollPane(javax.swing.JScrollPane) JLabel(javax.swing.JLabel) PropertyVetoException(java.beans.PropertyVetoException) UnresolvableException(alma.acs.commandcenter.util.VariableString.UnresolvableException) PropertyVetoException(java.beans.PropertyVetoException) WindowEvent(java.awt.event.WindowEvent) SpringLayout(javax.swing.SpringLayout) JSplitPane(javax.swing.JSplitPane) JMenuBar(javax.swing.JMenuBar) JMenu(javax.swing.JMenu)

Example 27 with TitledBorder

use of javax.swing.border.TitledBorder in project ACS by ACS-Community.

the class LoadSwitchesPanel method initGUI.

/**
	 * Initialize the panel
	 */
private void initGUI() {
    clearLogsCB = new JCheckBox("Clear log table", true);
    disconnectCB = new JCheckBox("Disconnect", true);
    checkControlsState();
    setLayout(new FlowLayout(FlowLayout.LEFT));
    add(clearLogsCB);
    add(disconnectCB);
    // Add a border
    TitledBorder border = BorderFactory.createTitledBorder("GUI setup");
    this.setBorder(border);
}
Also used : JCheckBox(javax.swing.JCheckBox) FlowLayout(java.awt.FlowLayout) TitledBorder(javax.swing.border.TitledBorder)

Example 28 with TitledBorder

use of javax.swing.border.TitledBorder in project ACS by ACS-Community.

the class LogLevelSelectorPanel method initAllLoggersPanel.

/**
	 * Setup the panel with the option for all the named loggers
	 * 
	 * @return
	 * @throws AcsJCORBAProblemEx 
	 */
private JPanel initAllLoggersPanel() throws AcsJCORBAProblemEx {
    TitledBorder border = BorderFactory.createTitledBorder("Process wide default log levels");
    JPanel mainPnl = new JPanel();
    GridBagLayout gl = new GridBagLayout();
    GridBagConstraints gc = new GridBagConstraints();
    mainPnl.setLayout(gl);
    mainPnl.setBorder(border);
    JLabel localLbl = new JLabel("Default local log level");
    allLocalCB.setRenderer(editorLocal);
    JLabel globalLbl = new JLabel("Default remote log level");
    allGlobalCB.setRenderer(editorGlobal);
    gc.insets = new Insets(5, 5, 5, 5);
    gc.gridx = 0;
    gc.gridy = 0;
    gl.setConstraints(localLbl, gc);
    mainPnl.add(localLbl);
    gc.gridx++;
    gl.setConstraints(allLocalCB, gc);
    mainPnl.add(allLocalCB);
    gc.gridx++;
    gl.setConstraints(globalLbl, gc);
    mainPnl.add(globalLbl);
    gc.gridx++;
    gl.setConstraints(allGlobalCB, gc);
    mainPnl.add(allGlobalCB);
    gc.gridx = 0;
    gc.gridy++;
    gc.gridwidth = GridBagConstraints.REMAINDER;
    gl.setConstraints(defaultBtn, gc);
    mainPnl.add(defaultBtn);
    // Set the listeners
    defaultBtn.addActionListener(this);
    allLocalCB.addActionListener(this);
    allGlobalCB.addActionListener(this);
    // set initial choices
    refreshAllLoggersPanel();
    return mainPnl;
}
Also used : JPanel(javax.swing.JPanel) GridBagConstraints(java.awt.GridBagConstraints) Insets(java.awt.Insets) GridBagLayout(java.awt.GridBagLayout) JLabel(javax.swing.JLabel) TitledBorder(javax.swing.border.TitledBorder)

Example 29 with TitledBorder

use of javax.swing.border.TitledBorder in project adempiere by adempiere.

the class ValuePreference method jbInit.

/**
	 *  Static Layout
	 *  @throws Exception
	 */
void jbInit() throws Exception {
    setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
    titledBorder = new TitledBorder(BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)), Msg.getMsg(m_ctx, "CurrentSettings"));
    //
    lAttribute.setText(Msg.translate(m_ctx, "Attribute"));
    lValue.setText(Msg.translate(m_ctx, "Value"));
    lSetFor.setText(Msg.getMsg(m_ctx, "ValuePreferenceSetFor"));
    cbClient.setText(Msg.translate(m_ctx, "AD_Client_ID"));
    cbOrg.setText(Msg.translate(m_ctx, "AD_Org_ID"));
    cbUser.setText(Msg.translate(m_ctx, "AD_User_ID"));
    cbUser.setSelected(true);
    cbWindow.setText(Msg.translate(m_ctx, "AD_Window_ID"));
    cbWindow.setSelected(true);
    //
    setPanel.setLayout(setLayout);
    fAttribute.setEditable(false);
    fValue.setEditable(false);
    this.getContentPane().add(setPanel, BorderLayout.NORTH);
    setPanel.add(lAttribute, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
    setPanel.add(fAttribute, new GridBagConstraints(1, 0, 4, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0));
    setPanel.add(lValue, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
    setPanel.add(fValue, new GridBagConstraints(1, 1, 4, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0));
    setPanel.add(lSetFor, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
    setPanel.add(cbClient, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
    setPanel.add(cbOrg, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
    setPanel.add(cbUser, new GridBagConstraints(3, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
    setPanel.add(cbWindow, new GridBagConstraints(4, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
    setPanel.add(lAttributeValue, new GridBagConstraints(5, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    setPanel.add(lValueValue, new GridBagConstraints(5, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    setPanel.add(lExplanation, new GridBagConstraints(1, 3, 4, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
    //
    currentPanel.setBorder(titledBorder);
    currentPanel.setLayout(currentLayout);
    //	this.getContentPane().add(currentPanel, BorderLayout.CENTER);
    currentPanel.add(scrollPane, BorderLayout.CENTER);
    scrollPane.getViewport().add(table, null);
    this.getContentPane().add(confirmPanel, BorderLayout.SOUTH);
}
Also used : GridBagConstraints(java.awt.GridBagConstraints) Insets(java.awt.Insets) Color(java.awt.Color) TitledBorder(javax.swing.border.TitledBorder)

Example 30 with TitledBorder

use of javax.swing.border.TitledBorder in project adempiere by adempiere.

the class PLAFEditor method jbInit.

/**
	 *  Static Layout
	 *  @throws Exception
	 */
private void jbInit() throws Exception {
    this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    this.setTitle(s_res.getString("LookAndFeelEditor"));
    mainPanel.setLayout(mainLayout);
    mainLayout.setHgap(5);
    mainLayout.setVgap(5);
    jTextFieldFlat.setColumns(10);
    jTextFieldGradient.setColumns(10);
    jTextFieldTexture.setColumns(10);
    jTextFieldLines.setColumns(10);
    jCheckBoxLines.setText("jCheckBox");
    jCheckBoxTexture.setText("jCheckBox");
    jCheckBoxGradient.setText("jCheckBox");
    jCheckBoxFlat.setText("jCheckBox");
    jPanelGradient.setToolTipText("Indented Level 1");
    jPanelTexture.setToolTipText("Indented Level 2");
    jPanelLines.setToolTipText("Indented Level 1");
    this.getContentPane().add(mainPanel, BorderLayout.CENTER);
    //
    lfLabel.setText(s_res.getString("LookAndFeel"));
    lfField.addActionListener(this);
    themeLabel.setText(s_res.getString("Theme"));
    themeField.addActionListener(this);
    rButton.setText(s_res.getString("Reset"));
    rButton.addActionListener(this);
    blindLabel.setText(s_res.getString("ColorBlind"));
    blindField.addActionListener(this);
    //
    bOK.addActionListener(this);
    bCancel.addActionListener(this);
    bHelp.addActionListener(this);
    //
    northPanel.setLayout(northLayout);
    southPanel.setLayout(southLayout);
    southLayout.setAlignment(FlowLayout.RIGHT);
    //
    exampleBorder = new TitledBorder(s_res.getString("Example"));
    example.setBorder(exampleBorder);
    jLabel1.setText("jLabel");
    jTextField1.setText("jTextField");
    jCheckBox1.setText("jCheckBox");
    jRadioButton1.setText("jRadioButton");
    jButton1.setText("jButton");
    jToggleButton1.setText("jToggleButton");
    jTextArea1.setText("jTextArea");
    jTextPane1.setText("jTextPane");
    jEditorPane1.setText("jEditorPane");
    jPasswordField1.setText("jPasswordField");
    jPanel2.setLayout(borderLayout1);
    jPanel1.setLayout(gridBagLayout1);
    jScrollPane1.setPreferredSize(new Dimension(100, 200));
    jScrollPane2.setPreferredSize(new Dimension(100, 200));
    jButtonFlat.setText("Confirm");
    jButtonGardient.setText("Input");
    jButtonTexture.setText("Message");
    jButtonLines.setText("Error");
    jTextFieldFlat.setText("jTextField");
    jLabelFlat.setText("jLabel");
    jTextFieldGradient.setText("jTextField");
    jLabelGradient.setText("jLabel");
    jTextFieldTexture.setText("jTextField");
    jLabelTexture.setText("jLabel");
    jTextFieldLines.setText("jTextField");
    jLabelLines.setText("jLabel");
    mainPanel.add(northPanel, BorderLayout.NORTH);
    northPanel.add(lfLabel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(12, 12, 5, 5), 0, 0));
    northPanel.add(lfField, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(12, 0, 5, 12), 0, 0));
    northPanel.add(themeLabel, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 12, 5, 5), 0, 0));
    northPanel.add(themeField, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 5, 12), 0, 0));
    northPanel.add(rButton, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 12, 5, 5), 0, 0));
    northPanel.add(blindLabel, new GridBagConstraints(0, 5, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 12, 5, 5), 0, 0));
    northPanel.add(blindField, new GridBagConstraints(1, 5, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 0, 5, 12), 0, 0));
    mainPanel.add(southPanel, BorderLayout.SOUTH);
    southPanel.add(bCancel, null);
    southPanel.add(bOK, null);
    mainPanel.add(example, BorderLayout.CENTER);
    example.add(jPanel1, "JPanel");
    jPanel1.add(jTextPane1, new GridBagConstraints(2, 3, 1, 1, 0.0, 0.2, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0));
    jPanel1.add(jEditorPane1, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.2, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0));
    jPanel1.add(jList1, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.2, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0));
    jPanel1.add(jLabel1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
    jPanel1.add(jTextField1, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0));
    jPanel1.add(jCheckBox1, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(1, 1, 1, 1), 0, 0));
    jPanel1.add(jRadioButton1, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
    jPanel1.add(jButton1, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.1, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
    jPanel1.add(jToggleButton1, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.1, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
    jPanel1.add(jTextArea1, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.2, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0));
    jPanel1.add(jComboBox1, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
    jPanel1.add(jPasswordField1, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0));
    example.add(jPanel2, "JPanel");
    jPanel2.add(jSplitPane1, BorderLayout.CENTER);
    jSplitPane1.add(jScrollPane1, JSplitPane.LEFT);
    jSplitPane1.add(jScrollPane2, JSplitPane.RIGHT);
    jPanelFlat.setName("FlatP");
    jPanelGradient.setName("GradientP");
    jPanelTexture.setName("TextureP");
    jPanelLines.setName("LineP");
    example.add(jPanelFlat, "jPanel Flat");
    jPanelFlat.add(jButtonFlat, null);
    jPanelFlat.add(jComboBoxFlat, null);
    example.add(jPanelGradient, "jPanel Gradient 1");
    jPanelGradient.add(jButtonGardient, null);
    jPanelGradient.add(jComboBoxGradient, null);
    jPanelGradient.add(jLabelGradient, null);
    jPanelGradient.add(jTextFieldGradient, null);
    example.add(jPanelTexture, "jPanel Texture 2");
    jPanelTexture.add(jButtonTexture, null);
    jPanelTexture.add(jComboBoxTexture, null);
    jPanelTexture.add(jLabelTexture, null);
    jPanelTexture.add(jTextFieldTexture, null);
    example.add(jPanelLines, "jPanel Lines 1");
    jPanelLines.add(jButtonLines, null);
    jPanelLines.add(jComboBoxLines, null);
    jPanelLines.add(jLabelLines, null);
    jPanelLines.add(jTextFieldLines, null);
    jScrollPane2.getViewport().add(jTable1, null);
    jScrollPane1.getViewport().add(jTree1, null);
    jPanelFlat.add(jLabelFlat, null);
    jPanelFlat.add(jTextFieldFlat, null);
    jPanelLines.add(jCheckBoxLines, null);
    jPanelTexture.add(jCheckBoxTexture, null);
    jPanelGradient.add(jCheckBoxGradient, null);
    jPanelFlat.add(jCheckBoxFlat, null);
}
Also used : GridBagConstraints(java.awt.GridBagConstraints) Insets(java.awt.Insets) Dimension(java.awt.Dimension) TitledBorder(javax.swing.border.TitledBorder)

Aggregations

TitledBorder (javax.swing.border.TitledBorder)96 JPanel (javax.swing.JPanel)58 BorderLayout (java.awt.BorderLayout)30 GridBagConstraints (java.awt.GridBagConstraints)27 JLabel (javax.swing.JLabel)25 JScrollPane (javax.swing.JScrollPane)21 GridBagLayout (java.awt.GridBagLayout)20 Insets (java.awt.Insets)20 JButton (javax.swing.JButton)19 Dimension (java.awt.Dimension)18 EmptyBorder (javax.swing.border.EmptyBorder)18 GridLayout (java.awt.GridLayout)17 ActionEvent (java.awt.event.ActionEvent)17 ActionListener (java.awt.event.ActionListener)15 JCheckBox (javax.swing.JCheckBox)10 Color (java.awt.Color)9 Border (javax.swing.border.Border)9 FlowLayout (java.awt.FlowLayout)7 EtchedBorder (javax.swing.border.EtchedBorder)7 JTextField (javax.swing.JTextField)6