Search in sources :

Example 1 with JOutlookBar

use of com.l2fprod.common.swing.JOutlookBar in project CodenameOne by codenameone.

the class UserInterfaceEditor method initComponents.

/**
 * This method is called from within the constructor to
 * initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is
 * always regenerated by the Form Editor.
 */
@SuppressWarnings("unchecked")
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
void initComponents() {
    arrangeLeftRight = new javax.swing.JSplitPane();
    jSplitPane2 = new javax.swing.JSplitPane();
    jSplitPane1 = new javax.swing.JSplitPane();
    leftSidePanel = new javax.swing.JPanel();
    jScrollPane6 = new javax.swing.JScrollPane();
    componentHierarchy = new org.jdesktop.swingx.JXTree();
    jPanel2 = new javax.swing.JPanel();
    jPanel5 = new javax.swing.JPanel();
    propertyAndEventTabs = new javax.swing.JTabbedPane();
    jScrollPane2 = new javax.swing.JScrollPane();
    properties = new javax.swing.JTable();
    jPanel4 = new javax.swing.JPanel();
    bindActionEvent = new javax.swing.JButton();
    bindOnCreate = new javax.swing.JButton();
    bindBeforeShow = new javax.swing.JButton();
    bindPostShow = new javax.swing.JButton();
    bindExitForm = new javax.swing.JButton();
    bindListModel = new javax.swing.JButton();
    whyAreEventsDisabled = new org.jdesktop.swingx.JXButton();
    jPanel3 = new javax.swing.JPanel();
    jScrollPane4 = new javax.swing.JScrollPane();
    localizeTable = new javax.swing.JTable();
    resourceBundle = new javax.swing.JComboBox();
    jPanel9 = new javax.swing.JPanel();
    jLabel3 = new javax.swing.JLabel();
    simulateDevice = new javax.swing.JButton();
    jLabel5 = new javax.swing.JLabel();
    initialForm = new javax.swing.JButton();
    jScrollPane5 = new javax.swing.JScrollPane();
    help = new javax.swing.JTextPane();
    palettePanel = new javax.swing.JScrollPane();
    componentPalette = new javax.swing.JPanel();
    jTabbedPane1 = new JOutlookBar();
    jPanel1 = new javax.swing.JPanel();
    coreComponents = new javax.swing.JPanel();
    codenameOneLabel = new javax.swing.JButton();
    codenameOneSpanLabel = new javax.swing.JButton();
    codenameOneButton = new javax.swing.JButton();
    codenameOneMultiButton = new javax.swing.JButton();
    codenameOneSpanButton = new javax.swing.JButton();
    codenameOneCheckBox = new javax.swing.JButton();
    codenameOneRadioButton = new javax.swing.JButton();
    codenameOneComboBox = new javax.swing.JButton();
    codenameOneList = new javax.swing.JButton();
    codenameOneMultiList = new javax.swing.JButton();
    codenameOneTextArea = new javax.swing.JButton();
    codenameOneTextField = new javax.swing.JButton();
    codenameOneAutoCompleteTextField = new javax.swing.JButton();
    codenameOneSlider = new javax.swing.JButton();
    codenameOneContainer = new javax.swing.JButton();
    codenameOneTabs = new javax.swing.JButton();
    embedContainer = new javax.swing.JButton();
    codenameOneCalendar = new javax.swing.JButton();
    jPanel6 = new javax.swing.JPanel();
    codenameOneExtraComponents = new javax.swing.JPanel();
    codenameOneTable = new javax.swing.JButton();
    codenameOneTree = new javax.swing.JButton();
    codenameOneHTMLComponent = new javax.swing.JButton();
    codenameOneContainerList = new javax.swing.JButton();
    codenameOneComponentGroup = new javax.swing.JButton();
    codenameOneMediaPlayer = new javax.swing.JButton();
    codenameOnePicker = new javax.swing.JButton();
    codenameOneNumericSpinner = new javax.swing.JButton();
    codenameOneDateSpinner = new javax.swing.JButton();
    codenameOneTimeSpinner = new javax.swing.JButton();
    codenameOneDateTimeSpinner = new javax.swing.JButton();
    codenameOneGenericSpinner = new javax.swing.JButton();
    codenameOneInfiniteProgress = new javax.swing.JButton();
    codenameOneMap = new javax.swing.JButton();
    codenameOneShare = new javax.swing.JButton();
    codenameOneOnOffSwitch = new javax.swing.JButton();
    codenameOneImageViewer = new javax.swing.JButton();
    jPanel7 = new javax.swing.JPanel();
    codenameOneIOComponents = new javax.swing.JPanel();
    rssReader = new javax.swing.JButton();
    fileTree = new javax.swing.JButton();
    jPanel8 = new javax.swing.JPanel();
    userComponents = new javax.swing.JPanel();
    uiPreview = new javax.swing.JPanel();
    FormListener formListener = new FormListener();
    setLayout(new java.awt.BorderLayout());
    arrangeLeftRight.setDividerLocation(450);
    arrangeLeftRight.setResizeWeight(0.5);
    // NOI18N
    arrangeLeftRight.setName("arrangeLeftRight");
    arrangeLeftRight.setOneTouchExpandable(true);
    jSplitPane2.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
    jSplitPane2.setResizeWeight(0.5);
    // NOI18N
    jSplitPane2.setName("jSplitPane2");
    jSplitPane2.setOneTouchExpandable(true);
    jSplitPane1.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
    // NOI18N
    jSplitPane1.setName("jSplitPane1");
    jSplitPane1.setOneTouchExpandable(true);
    // NOI18N
    leftSidePanel.setName("leftSidePanel");
    leftSidePanel.setLayout(new java.awt.BorderLayout());
    // NOI18N
    jScrollPane6.setName("jScrollPane6");
    componentHierarchy.setDragEnabled(true);
    // NOI18N
    componentHierarchy.setName("componentHierarchy");
    jScrollPane6.setViewportView(componentHierarchy);
    leftSidePanel.add(jScrollPane6, java.awt.BorderLayout.CENTER);
    // NOI18N
    jPanel2.setName("jPanel2");
    jPanel2.setLayout(new java.awt.BorderLayout());
    // NOI18N
    jPanel5.setName("jPanel5");
    jPanel5.setLayout(new java.awt.BorderLayout());
    jPanel2.add(jPanel5, java.awt.BorderLayout.CENTER);
    leftSidePanel.add(jPanel2, java.awt.BorderLayout.NORTH);
    jSplitPane1.setBottomComponent(leftSidePanel);
    // NOI18N
    propertyAndEventTabs.setName("propertyAndEventTabs");
    // NOI18N
    jScrollPane2.setName("jScrollPane2");
    // NOI18N
    properties.setName("properties");
    properties.addMouseListener(formListener);
    jScrollPane2.setViewportView(properties);
    propertyAndEventTabs.addTab("Properties", jScrollPane2);
    // NOI18N
    jPanel4.setName("jPanel4");
    bindActionEvent.setText("Action Event");
    // NOI18N
    bindActionEvent.setName("bindActionEvent");
    bindActionEvent.addActionListener(formListener);
    bindOnCreate.setText("onCreate");
    // NOI18N
    bindOnCreate.setName("bindOnCreate");
    bindOnCreate.addActionListener(formListener);
    bindBeforeShow.setText("Before Show");
    // NOI18N
    bindBeforeShow.setName("bindBeforeShow");
    bindBeforeShow.addActionListener(formListener);
    bindPostShow.setText("Post Show");
    // NOI18N
    bindPostShow.setName("bindPostShow");
    bindPostShow.addActionListener(formListener);
    bindExitForm.setText("Exit Form");
    // NOI18N
    bindExitForm.setName("bindExitForm");
    bindExitForm.addActionListener(formListener);
    bindListModel.setText("List Model");
    // NOI18N
    bindListModel.setName("bindListModel");
    bindListModel.addActionListener(formListener);
    whyAreEventsDisabled.setText("Why Are Events Disabled?");
    // NOI18N
    whyAreEventsDisabled.setName("whyAreEventsDisabled");
    whyAreEventsDisabled.addActionListener(formListener);
    org.jdesktop.layout.GroupLayout jPanel4Layout = new org.jdesktop.layout.GroupLayout(jPanel4);
    jPanel4.setLayout(jPanel4Layout);
    jPanel4Layout.setHorizontalGroup(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(jPanel4Layout.createSequentialGroup().addContainerGap().add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(bindOnCreate, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 420, Short.MAX_VALUE).add(bindActionEvent, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 420, Short.MAX_VALUE).add(bindBeforeShow, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 420, Short.MAX_VALUE).add(bindPostShow, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 420, Short.MAX_VALUE).add(bindExitForm, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 420, Short.MAX_VALUE).add(bindListModel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 420, Short.MAX_VALUE).add(whyAreEventsDisabled, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 420, Short.MAX_VALUE)).addContainerGap()));
    jPanel4Layout.setVerticalGroup(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(jPanel4Layout.createSequentialGroup().add(whyAreEventsDisabled, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(bindActionEvent).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(bindOnCreate).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(bindBeforeShow).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(bindPostShow).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(bindExitForm).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(bindListModel).addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    propertyAndEventTabs.addTab("Events", jPanel4);
    // NOI18N
    jPanel3.setName("jPanel3");
    jPanel3.setLayout(new java.awt.BorderLayout());
    // NOI18N
    jScrollPane4.setName("jScrollPane4");
    // NOI18N
    localizeTable.setName("localizeTable");
    jScrollPane4.setViewportView(localizeTable);
    jPanel3.add(jScrollPane4, java.awt.BorderLayout.CENTER);
    resourceBundle.setToolTipText("Resource Bundle");
    // NOI18N
    resourceBundle.setName("resourceBundle");
    resourceBundle.addActionListener(formListener);
    jPanel3.add(resourceBundle, java.awt.BorderLayout.PAGE_START);
    propertyAndEventTabs.addTab("Localize", jPanel3);
    // NOI18N
    jPanel9.setName("jPanel9");
    jLabel3.setText("Simulate Device");
    // NOI18N
    jLabel3.setName("jLabel3");
    simulateDevice.setText("...");
    // NOI18N
    simulateDevice.setName("simulateDevice");
    simulateDevice.addActionListener(formListener);
    jLabel5.setText("Set As Main Form");
    // NOI18N
    jLabel5.setName("jLabel5");
    initialForm.setText("Initial Form");
    initialForm.setToolTipText("<html>Makes this form into the first form shown<br>when the application loads if applicable");
    // NOI18N
    initialForm.setName("initialForm");
    initialForm.addActionListener(formListener);
    org.jdesktop.layout.GroupLayout jPanel9Layout = new org.jdesktop.layout.GroupLayout(jPanel9);
    jPanel9.setLayout(jPanel9Layout);
    jPanel9Layout.setHorizontalGroup(jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(jPanel9Layout.createSequentialGroup().add(jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(jLabel5).add(jLabel3)).addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED).add(jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false).add(simulateDevice, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).add(initialForm, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).add(280, 280, 280)));
    jPanel9Layout.setVerticalGroup(jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(jPanel9Layout.createSequentialGroup().addContainerGap().add(jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(jLabel3).add(simulateDevice)).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(jLabel5).add(initialForm)).addContainerGap(145, Short.MAX_VALUE)));
    propertyAndEventTabs.addTab("Preview & Misc", jPanel9);
    // NOI18N
    jScrollPane5.setName("jScrollPane5");
    // NOI18N
    help.setContentType("text/html");
    help.setEditable(false);
    // NOI18N
    help.setText("<html>\r\n  <head>\r\n\r\n  </head>\r\n  <body>\r\n    <p style=\"margin-top: 0\">\r\n      \rTo use the GUI builder drag components from the component palette at the bottom to either\nthe component tree on the right or into the actual UI. Components are arranged in a hierarchy \nwithin containers, you can nest containers and components to create all forms of elaborate UI's.\nTo determine how components are arranged within a Container you need to determine the layout\nmanager of the container (click the layout field in the Properties section while a container is \nselected, there is more documentation on layouts there).\n    </p>\r\n    <p>\n      Attributes of a component can be customized when its selected in the tree or in the UI by \nediting the properties tab content. Components can be dragged and rearranged both within the\nUI preview and within the tree, a right click (meta-click) menu also exists to delete/copy/paste etc.\nthe existing components. To change the appearance of a component you need to work with\na theme, to apply a change only to a specific component you can change its UIID attribute and\nedit that UIID in the theme (read more about UIID's in the theme section).\n    </p>\n    <p>\n      Navigation between forms in the GUI builder is possible with commands, in order to view the resulting UI \nthe theme can be selected (select the UI from the Preview Options area). In order for events to be mappable\n via the GUI builder use the generate netbeans project functionality in the Application menu.\n    </p>\n  </body>\r\n</html>\r\n");
    // NOI18N
    help.setName("help");
    jScrollPane5.setViewportView(help);
    propertyAndEventTabs.addTab("Help", jScrollPane5);
    jSplitPane1.setTopComponent(propertyAndEventTabs);
    jSplitPane2.setRightComponent(jSplitPane1);
    palettePanel.setMaximumSize(new java.awt.Dimension(32766, 32766));
    palettePanel.setMinimumSize(new java.awt.Dimension(50, 50));
    // NOI18N
    palettePanel.setName("palettePanel");
    // NOI18N
    componentPalette.setName("componentPalette");
    componentPalette.addMouseListener(formListener);
    componentPalette.setLayout(new java.awt.BorderLayout());
    // NOI18N
    jTabbedPane1.setName("jTabbedPane1");
    // NOI18N
    jPanel1.setName("jPanel1");
    jPanel1.setLayout(new java.awt.BorderLayout());
    // NOI18N
    coreComponents.setName("coreComponents");
    coreComponents.setLayout(new java.awt.GridLayout(9, 2));
    // NOI18N
    codenameOneLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXLabel32.png")));
    codenameOneLabel.setText("Label");
    // NOI18N
    codenameOneLabel.setToolTipText("<html><body><b>Label</b><br> <p>Can represent either text or an image or both, the image will not be scaled and its easy to define<br> the arrangement between the list and the icon of the label. A label spans only one line and when<br> it has no more available space it ends with \"...\" by default (this can be disabled). A label supports<br> advanced features such as tickering but that is only enabled automatically when it receives focus,<br> the label is not focusable by default.</p> </body> </html>");
    codenameOneLabel.setBorder(null);
    codenameOneLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneLabel.setName("codenameOneLabel");
    codenameOneLabel.addActionListener(formListener);
    coreComponents.add(codenameOneLabel);
    // NOI18N
    codenameOneSpanLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXLabel32.png")));
    codenameOneSpanLabel.setText("Span Label");
    // NOI18N
    codenameOneSpanLabel.setToolTipText("<html><body><b>Label</b><br> <p>A label that automatically breaks lines when running out of space<br>\nNotice that this is expensive and more complex to layout hence it is<br>\nrecommended to use a Label unless you really need this functionality.</p> </body> </html>");
    codenameOneSpanLabel.setBorder(null);
    codenameOneSpanLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneSpanLabel.setName("codenameOneSpanLabel");
    codenameOneSpanLabel.addActionListener(formListener);
    coreComponents.add(codenameOneSpanLabel);
    // NOI18N
    codenameOneButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXButton32.png")));
    codenameOneButton.setText("Button");
    // NOI18N
    codenameOneButton.setToolTipText("<html><body><b>Button</b><br> \n<p>\nIs derived from Label and thus has all its capabilities, besides those button also offers the<br>\nability to be clicked to perform an action or command. It is a focusable component by default<br>\nand it includes additional icons for different states.<br>\nButtons have a pressed style (when pressed) and by default have a border around them.\n</p> </body> </html>");
    codenameOneButton.setBorder(null);
    codenameOneButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneButton.setName("codenameOneButton");
    codenameOneButton.addActionListener(formListener);
    coreComponents.add(codenameOneButton);
    // NOI18N
    codenameOneMultiButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXButton32.png")));
    codenameOneMultiButton.setText("Multi-Button");
    // NOI18N
    codenameOneMultiButton.setToolTipText("<html><body><b>MultiButton</b><br> \n<p>\nA Complex button like component allowing multi-line<br>\ninput as well as elaborate functionality. It is based on <br>\na container with a lead component within.</p> </body> </html>");
    codenameOneMultiButton.setBorder(null);
    codenameOneMultiButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneMultiButton.setName("codenameOneMultiButton");
    codenameOneMultiButton.addActionListener(formListener);
    coreComponents.add(codenameOneMultiButton);
    // NOI18N
    codenameOneSpanButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXButton32.png")));
    codenameOneSpanButton.setText("Span-Button");
    // NOI18N
    codenameOneSpanButton.setToolTipText("<html><body><b>SpanButton</b><br> \n<p>\nA button that can span multiple lines<br>\nsimilarly to a text area component.</p> </body> </html>");
    codenameOneSpanButton.setBorder(null);
    codenameOneSpanButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneSpanButton.setName("codenameOneSpanButton");
    codenameOneSpanButton.addActionListener(formListener);
    coreComponents.add(codenameOneSpanButton);
    // NOI18N
    codenameOneCheckBox.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/CheckBox32.png")));
    codenameOneCheckBox.setText("Check Box");
    // NOI18N
    codenameOneCheckBox.setToolTipText("<html><body><b>CheckBox</b><br> \n<p>\nIs derived from Button and thus has all its capabilities, besides those a checkbox also has a<br>\ncheckmark next to it by default and has a state indicating whether it is selected or not.<br>\nA checkbox can be marked as a toggle button at which point it will not draw the checkbox<br>\nmark.<br>\nThe graphics for the checkbox drawing can be replaced in the theme using the constants tab.\n</p> </body> </html>");
    codenameOneCheckBox.setBorder(null);
    codenameOneCheckBox.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneCheckBox.setName("codenameOneCheckBox");
    codenameOneCheckBox.addActionListener(formListener);
    coreComponents.add(codenameOneCheckBox);
    // NOI18N
    codenameOneRadioButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/RadioButton32.png")));
    codenameOneRadioButton.setText("Radio Button");
    // NOI18N
    codenameOneRadioButton.setToolTipText("<html><body><b>RadioButton</b><br> \n<p>\nIdentical to checkbox (derived from Button) with a somewhat different type of marking drawn next<br>\nto it. The major difference is that a radio button belongs to a group (specified by name in the<br>\nproperties) this group indicates exclusivity. Only one member of the radio group may be selected<br>\nat once and when another member gets selected an old member loses selection.\n</p> </body> </html>");
    codenameOneRadioButton.setBorder(null);
    codenameOneRadioButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneRadioButton.setName("codenameOneRadioButton");
    codenameOneRadioButton.addActionListener(formListener);
    coreComponents.add(codenameOneRadioButton);
    // NOI18N
    codenameOneComboBox.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXCollapsiblePane32.png")));
    codenameOneComboBox.setText("Combo Box");
    // NOI18N
    codenameOneComboBox.setToolTipText("<html><body><b>ComboBox</b><br> \n<p>\nWhile a combo box is based on a list and carries most of its unique features and abilities its<br>\npurpose and appearance are often quite different. A combo box allows picking one element<br>\nand its UI spans a single row with a popup that opens to display the options.<br>\nNotice that the arrow next to the combo box is customizable via the theme constants.\n</p> </body> </html>");
    codenameOneComboBox.setBorder(null);
    codenameOneComboBox.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneComboBox.setName("codenameOneComboBox");
    codenameOneComboBox.addActionListener(formListener);
    coreComponents.add(codenameOneComboBox);
    // NOI18N
    codenameOneList.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXTaskPaneContainer32.png")));
    codenameOneList.setText("List");
    // NOI18N
    codenameOneList.setToolTipText("<html><body><b>List</b><br> \n<p>\nOne of the most elaborate components in Codename One, the list contains arbitrary items which can<br>\nbe \"rendered\" in unique ways. A list can be laid out horizontally or vertically and its content<br>\ncan be easily generated programmatically or via the model in the properties table.<br>\nTo customize the way the list shows its elements you need to set up a renderer for the list.\n</p> </body> </html>");
    codenameOneList.setBorder(null);
    codenameOneList.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneList.setName("codenameOneList");
    codenameOneList.addActionListener(formListener);
    coreComponents.add(codenameOneList);
    // NOI18N
    codenameOneMultiList.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXTaskPaneContainer32.png")));
    codenameOneMultiList.setText("Multi-List");
    // NOI18N
    codenameOneMultiList.setToolTipText("<html><body><b>Multi-List</b><br> \n<p>\nA list component with a multi-button renderer by default aleviating the need of setting a renderer.<br>\n</p> </body> </html>");
    codenameOneMultiList.setBorder(null);
    codenameOneMultiList.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneMultiList.setName("codenameOneMultiList");
    codenameOneMultiList.addActionListener(formListener);
    coreComponents.add(codenameOneMultiList);
    // NOI18N
    codenameOneTextArea.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/Text32.png")));
    codenameOneTextArea.setText("Text Area");
    // NOI18N
    codenameOneTextArea.setToolTipText("<html><body><b>TextArea</b><br> \n<p>\nAllows viewing text that potentially spans multiple lines and can potentially resize automatically<br>\nbased on the amount of text. TextArea optionally allows editing the text but only by going<br>\nto a separate native editor to complete the editing. This can have some advantages on most<br>\ndevices since text input is unique and complex.\n</p> </body> </html>");
    codenameOneTextArea.setBorder(null);
    codenameOneTextArea.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneTextArea.setName("codenameOneTextArea");
    codenameOneTextArea.addActionListener(formListener);
    coreComponents.add(codenameOneTextArea);
    // NOI18N
    codenameOneTextField.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/Text32.png")));
    codenameOneTextField.setText("Text Field");
    // NOI18N
    codenameOneTextField.setToolTipText("<html><body><b>TextField</b><br> \n<p>\nBased on the text area but designed for \"in place\" editing with a cursor and everything involved<br>\nin that. The text field is far more customizable than the text area but also far more complex.\n</p> </body> </html>");
    codenameOneTextField.setBorder(null);
    codenameOneTextField.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneTextField.setName("codenameOneTextField");
    codenameOneTextField.addActionListener(formListener);
    coreComponents.add(codenameOneTextField);
    // NOI18N
    codenameOneAutoCompleteTextField.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXTaskPane32.png")));
    codenameOneAutoCompleteTextField.setText("Auto Complete");
    // NOI18N
    codenameOneAutoCompleteTextField.setToolTipText("<html><body><b>Auto Complete TextField</b><br> \n<p>\nA TextField that shows a completion popup as you type into it and allows you to pick from a<br>\nset of entries\n</p> </body> </html>");
    codenameOneAutoCompleteTextField.setBorder(null);
    codenameOneAutoCompleteTextField.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneAutoCompleteTextField.setName("codenameOneAutoCompleteTextField");
    codenameOneAutoCompleteTextField.addActionListener(formListener);
    coreComponents.add(codenameOneAutoCompleteTextField);
    // NOI18N
    codenameOneSlider.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXTitledSeparator32.png")));
    codenameOneSlider.setText("Slider");
    // NOI18N
    codenameOneSlider.setToolTipText("<html><body><b>Slider</b><br> \n<p>\nA slider provides a bar that can fill up in a similar way to common UI's used for progress<br>\nindication, volume control etc.<br>\nA slider can be editable (for cases such as volume control) or not and it can render progress<br>\npercentage on top. The slider features two separate styles one for the empty slider and<br>\nanother for the full slider. \n</p> </body> </html>");
    codenameOneSlider.setBorder(null);
    codenameOneSlider.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneSlider.setName("codenameOneSlider");
    codenameOneSlider.addActionListener(formListener);
    coreComponents.add(codenameOneSlider);
    // NOI18N
    codenameOneContainer.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXPanel32.png")));
    codenameOneContainer.setText("Container");
    // NOI18N
    codenameOneContainer.setToolTipText("<html><body><b>Container</b><br> \n<p>\nContainer is a component type that contains other components in a layout. Since a container<br>\nitself is a component containers can be easily nested. To customize the way containers arrange<br>\ntheir components the layout property  may be used.\n</p> </body> </html>");
    codenameOneContainer.setBorder(null);
    codenameOneContainer.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneContainer.setName("codenameOneContainer");
    codenameOneContainer.addActionListener(formListener);
    coreComponents.add(codenameOneContainer);
    // NOI18N
    codenameOneTabs.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/Tabs32.png")));
    codenameOneTabs.setText("Tabs");
    // NOI18N
    codenameOneTabs.setToolTipText("<html><body><b>Tabs</b><br> \n<p>\nTabs is a type of container that arranges the components/containers within it in named tabs<br>\nallowing the user to page or swipe between them. \n</p> </body> </html>");
    codenameOneTabs.setBorder(null);
    codenameOneTabs.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneTabs.setName("codenameOneTabs");
    codenameOneTabs.addActionListener(formListener);
    coreComponents.add(codenameOneTabs);
    // NOI18N
    embedContainer.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXPanel32-mono.png")));
    embedContainer.setText("Embed");
    // NOI18N
    embedContainer.setToolTipText("<html><body><b>EmbeddedContainer</b><br> \n<p>\nAllows embedding a Container defined within resource file into the current UI.\n</p> </body> </html>");
    embedContainer.setBorder(null);
    embedContainer.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    embedContainer.setName("embedContainer");
    embedContainer.addActionListener(formListener);
    coreComponents.add(embedContainer);
    // NOI18N
    codenameOneCalendar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXDatePicker32.png")));
    codenameOneCalendar.setText("Calendar");
    // NOI18N
    codenameOneCalendar.setToolTipText("<html><body><b>Calendar</b><br> \n<p>\nThe calendar component contains a month view and ability to select a specific day within<br>\nsaid view. It is very good for feature phones but on touch devices you might be better off<br>\nusing a date spinner.\n</p> </body> </html>");
    codenameOneCalendar.setBorder(null);
    codenameOneCalendar.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneCalendar.setName("codenameOneCalendar");
    codenameOneCalendar.addActionListener(formListener);
    coreComponents.add(codenameOneCalendar);
    jPanel1.add(coreComponents, java.awt.BorderLayout.NORTH);
    jTabbedPane1.addTab("Core Components", jPanel1);
    // NOI18N
    jPanel6.setName("jPanel6");
    jPanel6.setLayout(new java.awt.BorderLayout());
    // NOI18N
    codenameOneExtraComponents.setName("codenameOneExtraComponents");
    codenameOneExtraComponents.setLayout(new java.awt.GridLayout(0, 2));
    // NOI18N
    codenameOneTable.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXTreeTable32.png")));
    codenameOneTable.setText("Table");
    // NOI18N
    codenameOneTable.setToolTipText("<html><body><b>Table</b><br> \n<p>\nA table component allowing the display and editing of tabular data\n</p> </body> </html>");
    codenameOneTable.setBorder(null);
    codenameOneTable.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneTable.setName("codenameOneTable");
    codenameOneTable.addActionListener(formListener);
    codenameOneExtraComponents.add(codenameOneTable);
    // NOI18N
    codenameOneTree.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXTreeTable32.png")));
    codenameOneTree.setText("Tree");
    // NOI18N
    codenameOneTree.setToolTipText("<html><body><b>Tree</b><br> \n<p>\nAn expandable tree component\n</p> </body> </html>");
    codenameOneTree.setBorder(null);
    codenameOneTree.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneTree.setName("codenameOneTree");
    codenameOneTree.addActionListener(formListener);
    codenameOneExtraComponents.add(codenameOneTree);
    // NOI18N
    codenameOneHTMLComponent.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/Web32.png")));
    codenameOneHTMLComponent.setText("Web View");
    // NOI18N
    codenameOneHTMLComponent.setToolTipText("<html><body><b>WebBrowser</b><br> \n<p>\nBrowser component that allows viewing HTML and optionally uses the platform native browser component if available\n</p> </body> </html>");
    codenameOneHTMLComponent.setBorder(null);
    codenameOneHTMLComponent.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneHTMLComponent.setName("codenameOneHTMLComponent");
    codenameOneHTMLComponent.addActionListener(formListener);
    codenameOneExtraComponents.add(codenameOneHTMLComponent);
    // NOI18N
    codenameOneContainerList.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXTaskPaneContainer32.png")));
    codenameOneContainerList.setText("ContainerList");
    // NOI18N
    codenameOneContainerList.setToolTipText("<html><body><b>ContainerList</b><br> \n<p>\nA container that acts like a List, providing a model and renderer approach but doesn't<br>\nenable component addition. This allows mapping list functionality and model to a Container<br>\nand using standard Codename One layout managers to arrange the content of the container.\n</p> </body> </html>");
    codenameOneContainerList.setBorder(null);
    codenameOneContainerList.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneContainerList.setName("codenameOneContainerList");
    codenameOneContainerList.addActionListener(formListener);
    codenameOneExtraComponents.add(codenameOneContainerList);
    // NOI18N
    codenameOneComponentGroup.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXTaskPaneContainer32.png")));
    codenameOneComponentGroup.setText("Component Group");
    // NOI18N
    codenameOneComponentGroup.setToolTipText("<html><body><b>ComponentGroup</b><br> \n<p>\nA component group is a container that applies the given UIID to a set of components within it<br>\nwhile appending First/Last/Only to the UIID appropriately. This is useful to create some user interfaces<br>\nwhere the first/last element should have different UIID's (e.g. rounded edges).<br>\n<b>This feature is disabled by default!!!</b> It will have no effect on your code unless you explicitly<br>\ndefine the theme constant ComponentGroupBool, this allows themes that aren't interested in this<br>\neffect to remain much simpler.<br>\n</p> </body> </html>");
    codenameOneComponentGroup.setBorder(null);
    codenameOneComponentGroup.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneComponentGroup.setName("codenameOneComponentGroup");
    codenameOneComponentGroup.addActionListener(formListener);
    codenameOneExtraComponents.add(codenameOneComponentGroup);
    // NOI18N
    codenameOneMediaPlayer.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/Play32.png")));
    codenameOneMediaPlayer.setText("Media Player");
    // NOI18N
    codenameOneMediaPlayer.setToolTipText("<html><body><b>MediaPlayer</b><br> \n<p>\nA video playback component.<br>\n</p> </body> </html>");
    codenameOneMediaPlayer.setBorder(null);
    codenameOneMediaPlayer.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneMediaPlayer.setName("codenameOneMediaPlayer");
    codenameOneMediaPlayer.addActionListener(formListener);
    codenameOneExtraComponents.add(codenameOneMediaPlayer);
    // NOI18N
    codenameOnePicker.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/PickerShadow32.png")));
    codenameOnePicker.setText("Picker");
    // NOI18N
    codenameOnePicker.setToolTipText("<html><body><b>Picker</b><br> \n<p>\n<b>Important: a picker is rendered natively and will look differently on the device!</b><br>\nA spinner dialog component that shows arbitrary data<br>\n</p> </body> </html>");
    codenameOnePicker.setBorder(null);
    codenameOnePicker.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOnePicker.setName("codenameOnePicker");
    codenameOnePicker.addActionListener(formListener);
    codenameOneExtraComponents.add(codenameOnePicker);
    // NOI18N
    codenameOneNumericSpinner.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/number32.png")));
    codenameOneNumericSpinner.setText("Numeric Spinner");
    // NOI18N
    codenameOneNumericSpinner.setToolTipText("<html><body><b>Numeric Spinner</b><br> \n<p>\n\n<b>Deprecated: it is recommended you use the new Picker component</b><br>\nAn iOS like spinner component.<br>\n</p> </body> </html>");
    codenameOneNumericSpinner.setBorder(null);
    codenameOneNumericSpinner.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneNumericSpinner.setName("codenameOneNumericSpinner");
    codenameOneNumericSpinner.addActionListener(formListener);
    codenameOneExtraComponents.add(codenameOneNumericSpinner);
    // NOI18N
    codenameOneDateSpinner.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXDatePicker32.png")));
    codenameOneDateSpinner.setText("Date Spinner");
    // NOI18N
    codenameOneDateSpinner.setToolTipText("<html><body><b>Date Spinner</b><br> \n<p>\n<b>Deprecated: it is recommended you use the new Picker component</b><br>\nAn iOS like spinner component.<br>\n</p> </body> </html>");
    codenameOneDateSpinner.setBorder(null);
    codenameOneDateSpinner.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneDateSpinner.setName("codenameOneDateSpinner");
    codenameOneDateSpinner.addActionListener(formListener);
    codenameOneExtraComponents.add(codenameOneDateSpinner);
    // NOI18N
    codenameOneTimeSpinner.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/time32.png")));
    codenameOneTimeSpinner.setText("Time Spinner");
    // NOI18N
    codenameOneTimeSpinner.setToolTipText("<html><body><b>Time Spinner</b><br> \n<p>\n<b>Deprecated: it is recommended you use the new Picker component</b><br>\nAn iOS like spinner component.<br>\n</p> </body> </html>");
    codenameOneTimeSpinner.setBorder(null);
    codenameOneTimeSpinner.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneTimeSpinner.setName("codenameOneTimeSpinner");
    codenameOneTimeSpinner.addActionListener(formListener);
    codenameOneExtraComponents.add(codenameOneTimeSpinner);
    // NOI18N
    codenameOneDateTimeSpinner.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXDatePicker32.png")));
    codenameOneDateTimeSpinner.setText("Date & Time Spinner");
    // NOI18N
    codenameOneDateTimeSpinner.setToolTipText("<html><body><b>Date &amp; Time Spinner</b><br> \n<p>\n<b>Deprecated: it is recommended you use the new Picker component</b><br>\nAn iOS like spinner component.<br>\n</p> </body> </html>");
    codenameOneDateTimeSpinner.setBorder(null);
    codenameOneDateTimeSpinner.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneDateTimeSpinner.setName("codenameOneDateTimeSpinner");
    codenameOneDateTimeSpinner.addActionListener(formListener);
    codenameOneExtraComponents.add(codenameOneDateTimeSpinner);
    // NOI18N
    codenameOneGenericSpinner.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/SpinnerG32.png")));
    codenameOneGenericSpinner.setText("Generic Spinner");
    // NOI18N
    codenameOneGenericSpinner.setToolTipText("<html><body><b>Generic Spinner</b><br> \n<p>\n<b>Deprecated: it is recommended you use the new Picker component</b><br>\nA spinner component that shows arbitrary data<br>\n</p> </body> </html>");
    codenameOneGenericSpinner.setBorder(null);
    codenameOneGenericSpinner.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneGenericSpinner.setName("codenameOneGenericSpinner");
    codenameOneGenericSpinner.addActionListener(formListener);
    codenameOneExtraComponents.add(codenameOneGenericSpinner);
    // NOI18N
    codenameOneInfiniteProgress.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXBusyLabel32.png")));
    codenameOneInfiniteProgress.setText("Infinite Progress");
    // NOI18N
    codenameOneInfiniteProgress.setToolTipText("<html><body><b>Infinite Progress</b><br> \n<p>\nA constantly spinning wheel component indicating progress<br>\n</p> </body> </html>");
    codenameOneInfiniteProgress.setBorder(null);
    codenameOneInfiniteProgress.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneInfiniteProgress.setName("codenameOneInfiniteProgress");
    codenameOneInfiniteProgress.addActionListener(formListener);
    codenameOneExtraComponents.add(codenameOneInfiniteProgress);
    // NOI18N
    codenameOneMap.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/map32.png")));
    codenameOneMap.setText("Map");
    // NOI18N
    codenameOneMap.setToolTipText("<html><body><b>Map</b><br> \n<p>\nDisplays a user navigatable Map on the screen.<br>\n</p> </body> </html>");
    codenameOneMap.setBorder(null);
    codenameOneMap.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneMap.setName("codenameOneMap");
    codenameOneMap.addActionListener(formListener);
    codenameOneExtraComponents.add(codenameOneMap);
    // NOI18N
    codenameOneShare.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXButton32.png")));
    codenameOneShare.setText("Share Button");
    // NOI18N
    codenameOneShare.setToolTipText("<html><body><b>Share Button</b><br> \n<p>\nSocial share button</p> </body> </html>");
    codenameOneShare.setBorder(null);
    codenameOneShare.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneShare.setName("codenameOneShare");
    codenameOneShare.addActionListener(formListener);
    codenameOneExtraComponents.add(codenameOneShare);
    // NOI18N
    codenameOneOnOffSwitch.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXButton32.png")));
    codenameOneOnOffSwitch.setText("On/Off Switch");
    // NOI18N
    codenameOneOnOffSwitch.setToolTipText("<html><body><b>On/Off Switch</b><br> \n<p>\nAn iOS on/off switch component</p> </body> </html>");
    codenameOneOnOffSwitch.setBorder(null);
    codenameOneOnOffSwitch.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneOnOffSwitch.setName("codenameOneOnOffSwitch");
    codenameOneOnOffSwitch.addActionListener(formListener);
    codenameOneExtraComponents.add(codenameOneOnOffSwitch);
    // NOI18N
    codenameOneImageViewer.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXImagePanel32.png")));
    codenameOneImageViewer.setText("Image Viewer");
    // NOI18N
    codenameOneImageViewer.setToolTipText("<html><body><b>ImageViewer</b><br> \n<p>\nControl allowing the user to view/pinch and optionally swipe between images\n</p> </body> </html>");
    codenameOneImageViewer.setBorder(null);
    codenameOneImageViewer.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    codenameOneImageViewer.setName("codenameOneImageViewer");
    codenameOneImageViewer.addActionListener(formListener);
    codenameOneExtraComponents.add(codenameOneImageViewer);
    jPanel6.add(codenameOneExtraComponents, java.awt.BorderLayout.NORTH);
    jTabbedPane1.addTab("Additional Components", jPanel6);
    // NOI18N
    jPanel7.setName("jPanel7");
    jPanel7.setLayout(new java.awt.BorderLayout());
    // NOI18N
    codenameOneIOComponents.setName("codenameOneIOComponents");
    codenameOneIOComponents.setLayout(new java.awt.GridLayout(0, 2));
    // NOI18N
    rssReader.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/rss.png")));
    rssReader.setText("RSS Reader");
    rssReader.setBorder(null);
    rssReader.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    rssReader.setName("rssReader");
    rssReader.addActionListener(formListener);
    codenameOneIOComponents.add(rssReader);
    // NOI18N
    fileTree.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/jdesktop/swingx/resources/JXTreeTable32.png")));
    fileTree.setText("File Tree");
    fileTree.setBorder(null);
    fileTree.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    fileTree.setName("fileTree");
    fileTree.addActionListener(formListener);
    codenameOneIOComponents.add(fileTree);
    jPanel7.add(codenameOneIOComponents, java.awt.BorderLayout.NORTH);
    jTabbedPane1.addTab("Input/Output", jPanel7);
    // NOI18N
    jPanel8.setName("jPanel8");
    jPanel8.setLayout(new java.awt.BorderLayout());
    // NOI18N
    userComponents.setName("userComponents");
    userComponents.setLayout(new java.awt.GridLayout(0, 2));
    jPanel8.add(userComponents, java.awt.BorderLayout.NORTH);
    jTabbedPane1.addTab("User Defined", jPanel8);
    componentPalette.add(jTabbedPane1, java.awt.BorderLayout.CENTER);
    palettePanel.setViewportView(componentPalette);
    jSplitPane2.setLeftComponent(palettePanel);
    arrangeLeftRight.setLeftComponent(jSplitPane2);
    uiPreview.setMaximumSize(new java.awt.Dimension(2147483646, 2147483646));
    uiPreview.setMinimumSize(new java.awt.Dimension(50, 50));
    // NOI18N
    uiPreview.setName("uiPreview");
    uiPreview.setPreferredSize(new java.awt.Dimension(400, 400));
    uiPreview.setLayout(new java.awt.BorderLayout());
    arrangeLeftRight.setRightComponent(uiPreview);
    add(arrangeLeftRight, java.awt.BorderLayout.CENTER);
}
Also used : ImageIcon(javax.swing.ImageIcon) JComboBox(javax.swing.JComboBox) JButton(javax.swing.JButton) Dimension(java.awt.Dimension) JLabel(javax.swing.JLabel) JTable(javax.swing.JTable) JOutlookBar(com.l2fprod.common.swing.JOutlookBar)

Example 2 with JOutlookBar

use of com.l2fprod.common.swing.JOutlookBar in project CodenameOne by codenameone.

the class ResourceEditorView method initComponents.

/**
 * This method is called from within the constructor to
 * initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is
 * always regenerated by the Form Editor.
 */
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
    mainPanel = new javax.swing.JPanel();
    jSplitPane1 = new javax.swing.JSplitPane();
    treeArea = new javax.swing.JPanel();
    jTabbedPane1 = new JOutlookBar();
    themePanel = new javax.swing.JPanel();
    addTheme = new javax.swing.JButton();
    themeScroll = new javax.swing.JScrollPane();
    jPanel1 = new javax.swing.JPanel();
    addUserInterface = new javax.swing.JButton();
    userInterfaceScroll = new javax.swing.JScrollPane();
    jPanel7 = new javax.swing.JPanel();
    mainImages = new javax.swing.JScrollPane();
    addImageMain = new javax.swing.JButton();
    jPanel3 = new javax.swing.JPanel();
    imageScroll = new javax.swing.JScrollPane();
    addImageAll = new javax.swing.JButton();
    jPanel11 = new javax.swing.JPanel();
    multiImages = new javax.swing.JScrollPane();
    addImageMulti = new javax.swing.JButton();
    jPanel9 = new javax.swing.JPanel();
    svgImages = new javax.swing.JScrollPane();
    addImageSVG = new javax.swing.JButton();
    jPanel10 = new javax.swing.JPanel();
    timelineImages = new javax.swing.JScrollPane();
    addImageTimeline = new javax.swing.JButton();
    addNewTimeline = new org.jdesktop.swingx.JXButton();
    jPanel4 = new javax.swing.JPanel();
    addFont = new javax.swing.JButton();
    fontsScroll = new javax.swing.JScrollPane();
    jPanel5 = new javax.swing.JPanel();
    addL10N = new javax.swing.JButton();
    localizationScroll = new javax.swing.JScrollPane();
    jPanel6 = new javax.swing.JPanel();
    addData = new javax.swing.JButton();
    dataScroll = new javax.swing.JScrollPane();
    resourceEditor = new javax.swing.JPanel();
    jScrollPane3 = new javax.swing.JScrollPane();
    license = new javax.swing.JTextArea();
    jSeparator3 = new javax.swing.JSeparator();
    jToolBar1 = new javax.swing.JToolBar();
    menuBar = new javax.swing.JMenuBar();
    fileMenu = new javax.swing.JMenu();
    newMenuItem = new javax.swing.JMenuItem();
    openMenuItem = new javax.swing.JMenuItem();
    recentMenu = new javax.swing.JMenu();
    saveMenuItem = new javax.swing.JMenuItem();
    saveAsMenuItem = new javax.swing.JMenuItem();
    resPassword = new javax.swing.JMenuItem();
    importRes = new javax.swing.JMenuItem();
    exportRes = new javax.swing.JMenuItem();
    setupNetbeans = new javax.swing.JMenuItem();
    lookAndFeelMenu = new javax.swing.JMenu();
    systemLFMenu = new javax.swing.JRadioButtonMenuItem();
    crossPlatformLFMenu = new javax.swing.JRadioButtonMenuItem();
    jSeparator6 = new javax.swing.JSeparator();
    checkerboardColors = new javax.swing.JMenuItem();
    jSeparator4 = new javax.swing.JSeparator();
    enableXMLTeamMode = new javax.swing.JCheckBoxMenuItem();
    jSeparator1 = new javax.swing.JSeparator();
    exitMenuItem = new javax.swing.JMenuItem();
    editMenu = new javax.swing.JMenu();
    renameItem = new javax.swing.JMenuItem();
    duplicateItem = new javax.swing.JMenuItem();
    jSeparator2 = new javax.swing.JSeparator();
    undoItem = new javax.swing.JMenuItem();
    redoItem = new javax.swing.JMenuItem();
    jMenu8 = new javax.swing.JMenu();
    signup = new javax.swing.JMenuItem();
    login = new javax.swing.JMenuItem();
    livePreviewUI = new javax.swing.JCheckBoxMenuItem();
    jMenu6 = new javax.swing.JMenu();
    resetNetbeansSettings = new javax.swing.JMenuItem();
    jMenu1 = new javax.swing.JMenu();
    jMenu10 = new javax.swing.JMenu();
    iosNativeTheme = new javax.swing.JRadioButtonMenuItem();
    ios7NativeTheme = new javax.swing.JCheckBoxMenuItem();
    jMenu3 = new javax.swing.JMenu();
    android2NativeTheme = new javax.swing.JRadioButtonMenuItem();
    jRadioButtonMenuItem4 = new javax.swing.JRadioButtonMenuItem();
    blackberryNativeTheme = new javax.swing.JRadioButtonMenuItem();
    winNativeTheme = new javax.swing.JRadioButtonMenuItem();
    jMenu9 = new javax.swing.JMenu();
    jRadioButtonMenuItem3 = new javax.swing.JRadioButtonMenuItem();
    jRadioButtonMenuItem2 = new javax.swing.JRadioButtonMenuItem();
    jRadioButtonMenuItem1 = new javax.swing.JRadioButtonMenuItem();
    customNativeTheme = new javax.swing.JRadioButtonMenuItem();
    jMenu4 = new javax.swing.JMenu();
    addMultiImages = new javax.swing.JMenuItem();
    quickMultiImages = new javax.swing.JMenuItem();
    addImages = new javax.swing.JMenuItem();
    addSVGImages = new javax.swing.JMenuItem();
    deleteUnusedImages = new javax.swing.JMenuItem();
    imageSizes = new javax.swing.JMenuItem();
    imageBorderWizardMenuItem = new javax.swing.JMenuItem();
    jMenu5 = new javax.swing.JMenu();
    pulsateEffect = new javax.swing.JMenuItem();
    jMenu2 = new javax.swing.JMenu();
    findMultiImages = new javax.swing.JMenuItem();
    launchOptiPng = new javax.swing.JMenuItem();
    import9Patch = new javax.swing.JMenuItem();
    jMenu7 = new javax.swing.JMenu();
    removeDPIHD = new javax.swing.JMenuItem();
    removeDPIVeryHigh = new javax.swing.JMenuItem();
    removeDPIHigh = new javax.swing.JMenuItem();
    removeDPIMedium = new javax.swing.JMenuItem();
    removeDPILow = new javax.swing.JMenuItem();
    removeDPIVeryLow = new javax.swing.JMenuItem();
    helpMenu = new javax.swing.JMenu();
    jSeparator8 = new javax.swing.JSeparator();
    about = new javax.swing.JMenuItem();
    toolbar = new javax.swing.JToolBar();
    buttonGroup1 = new javax.swing.ButtonGroup();
    svgGroup = new javax.swing.ButtonGroup();
    nativeThemeButtonGroup = new javax.swing.ButtonGroup();
    FormListener formListener = new FormListener();
    // NOI18N
    mainPanel.setName("mainPanel");
    mainPanel.setOpaque(false);
    mainPanel.setLayout(new java.awt.BorderLayout());
    jSplitPane1.setBorder(null);
    jSplitPane1.setDividerLocation(200);
    jSplitPane1.setResizeWeight(0.1);
    // NOI18N
    jSplitPane1.setName("jSplitPane1");
    jSplitPane1.setOneTouchExpandable(true);
    jSplitPane1.setOpaque(false);
    // NOI18N
    treeArea.setName("treeArea");
    treeArea.setOpaque(false);
    // NOI18N
    jTabbedPane1.setName("jTabbedPane1");
    // NOI18N
    themePanel.setName("themePanel");
    themePanel.setOpaque(false);
    addTheme.setMnemonic('+');
    addTheme.setText("Add A New Theme");
    addTheme.setToolTipText("Add Theme");
    // NOI18N
    addTheme.setName("addTheme");
    addTheme.addActionListener(formListener);
    themeScroll.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
    // NOI18N
    themeScroll.setName("themeScroll");
    themeScroll.setOpaque(false);
    org.jdesktop.layout.GroupLayout themePanelLayout = new org.jdesktop.layout.GroupLayout(themePanel);
    themePanel.setLayout(themePanelLayout);
    themePanelLayout.setHorizontalGroup(themePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(themeScroll, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 179, Short.MAX_VALUE).add(themePanelLayout.createSequentialGroup().add(addTheme).addContainerGap(20, Short.MAX_VALUE)));
    themePanelLayout.setVerticalGroup(themePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(themePanelLayout.createSequentialGroup().add(addTheme).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(themeScroll, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE)));
    // NOI18N
    jTabbedPane1.addTab("Themes", new javax.swing.ImageIcon(getClass().getResource("/com/codename1/designer/resources/theme.png")), themePanel, "Themes");
    // NOI18N
    jPanel1.setName("jPanel1");
    jPanel1.setOpaque(false);
    addUserInterface.setText("Add A New GUI Element");
    // NOI18N
    addUserInterface.setName("addUserInterface");
    addUserInterface.addActionListener(formListener);
    userInterfaceScroll.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
    // NOI18N
    userInterfaceScroll.setName("userInterfaceScroll");
    userInterfaceScroll.setOpaque(false);
    org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(userInterfaceScroll, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE).add(jPanel1Layout.createSequentialGroup().add(addUserInterface, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 185, Short.MAX_VALUE).addContainerGap()));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(jPanel1Layout.createSequentialGroup().add(addUserInterface).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(userInterfaceScroll, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE)));
    // NOI18N
    jTabbedPane1.addTab("Old GUI Builder", new javax.swing.ImageIcon(getClass().getResource("/com/codename1/designer/resources/GUIBuilder.png")), jPanel1, "Old GUI Builder");
    // NOI18N
    jPanel7.setName("jPanel7");
    // NOI18N
    mainImages.setName("mainImages");
    addImageMain.setMnemonic('I');
    addImageMain.setText("Add Images");
    addImageMain.setToolTipText("Add Image");
    // NOI18N
    addImageMain.setName("addImageMain");
    addImageMain.addActionListener(formListener);
    org.jdesktop.layout.GroupLayout jPanel7Layout = new org.jdesktop.layout.GroupLayout(jPanel7);
    jPanel7.setLayout(jPanel7Layout);
    jPanel7Layout.setHorizontalGroup(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(jPanel7Layout.createSequentialGroup().add(addImageMain).addContainerGap(61, Short.MAX_VALUE)).add(mainImages, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 179, Short.MAX_VALUE));
    jPanel7Layout.setVerticalGroup(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(jPanel7Layout.createSequentialGroup().add(addImageMain).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(mainImages, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE)));
    // NOI18N
    jTabbedPane1.addTab("Main Images", new javax.swing.ImageIcon(getClass().getResource("/com/codename1/designer/resources/images.png")), jPanel7);
    // NOI18N
    jPanel3.setName("jPanel3");
    imageScroll.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
    // NOI18N
    imageScroll.setName("imageScroll");
    imageScroll.setOpaque(false);
    addImageAll.setMnemonic('I');
    addImageAll.setText("Add Images");
    addImageAll.setToolTipText("Add Image");
    // NOI18N
    addImageAll.setName("addImageAll");
    addImageAll.addActionListener(formListener);
    org.jdesktop.layout.GroupLayout jPanel3Layout = new org.jdesktop.layout.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout.setHorizontalGroup(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(jPanel3Layout.createSequentialGroup().add(addImageAll).addContainerGap(61, Short.MAX_VALUE)).add(imageScroll, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 179, Short.MAX_VALUE));
    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(jPanel3Layout.createSequentialGroup().add(addImageAll).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(imageScroll, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE)));
    // NOI18N
    jTabbedPane1.addTab("All Images", new javax.swing.ImageIcon(getClass().getResource("/com/codename1/designer/resources/images.png")), jPanel3);
    // NOI18N
    jPanel11.setName("jPanel11");
    // NOI18N
    multiImages.setName("multiImages");
    addImageMulti.setMnemonic('I');
    addImageMulti.setText("Add Images");
    addImageMulti.setToolTipText("Add Image");
    // NOI18N
    addImageMulti.setName("addImageMulti");
    addImageMulti.addActionListener(formListener);
    org.jdesktop.layout.GroupLayout jPanel11Layout = new org.jdesktop.layout.GroupLayout(jPanel11);
    jPanel11.setLayout(jPanel11Layout);
    jPanel11Layout.setHorizontalGroup(jPanel11Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(jPanel11Layout.createSequentialGroup().add(addImageMulti).addContainerGap()).add(multiImages, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 179, Short.MAX_VALUE));
    jPanel11Layout.setVerticalGroup(jPanel11Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(jPanel11Layout.createSequentialGroup().add(addImageMulti).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(multiImages, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE)));
    // NOI18N
    jTabbedPane1.addTab("Multi-Images", new javax.swing.ImageIcon(getClass().getResource("/com/codename1/designer/resources/images.png")), jPanel11);
    // NOI18N
    jPanel9.setName("jPanel9");
    // NOI18N
    svgImages.setName("svgImages");
    addImageSVG.setMnemonic('I');
    addImageSVG.setText("Add Images");
    addImageSVG.setToolTipText("Add Image");
    // NOI18N
    addImageSVG.setName("addImageSVG");
    addImageSVG.addActionListener(formListener);
    org.jdesktop.layout.GroupLayout jPanel9Layout = new org.jdesktop.layout.GroupLayout(jPanel9);
    jPanel9.setLayout(jPanel9Layout);
    jPanel9Layout.setHorizontalGroup(jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(jPanel9Layout.createSequentialGroup().add(addImageSVG).addContainerGap()).add(svgImages, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 179, Short.MAX_VALUE));
    jPanel9Layout.setVerticalGroup(jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(jPanel9Layout.createSequentialGroup().add(addImageSVG).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(svgImages, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE)));
    // NOI18N
    jTabbedPane1.addTab("SVG Images", new javax.swing.ImageIcon(getClass().getResource("/com/codename1/designer/resources/images.png")), jPanel9);
    // NOI18N
    jPanel10.setName("jPanel10");
    // NOI18N
    timelineImages.setName("timelineImages");
    addImageTimeline.setMnemonic('I');
    addImageTimeline.setText("Add Animation");
    addImageTimeline.setToolTipText("Add Image");
    // NOI18N
    addImageTimeline.setName("addImageTimeline");
    addImageTimeline.addActionListener(formListener);
    addNewTimeline.setText("Add New");
    // NOI18N
    addNewTimeline.setName("addNewTimeline");
    addNewTimeline.addActionListener(formListener);
    org.jdesktop.layout.GroupLayout jPanel10Layout = new org.jdesktop.layout.GroupLayout(jPanel10);
    jPanel10.setLayout(jPanel10Layout);
    jPanel10Layout.setHorizontalGroup(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(jPanel10Layout.createSequentialGroup().add(addImageTimeline).addContainerGap()).add(jPanel10Layout.createSequentialGroup().add(addNewTimeline, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).addContainerGap()).add(timelineImages, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 179, Short.MAX_VALUE));
    jPanel10Layout.linkSize(new java.awt.Component[] { addImageTimeline, addNewTimeline }, org.jdesktop.layout.GroupLayout.HORIZONTAL);
    jPanel10Layout.setVerticalGroup(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(jPanel10Layout.createSequentialGroup().add(addImageTimeline).addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED).add(addNewTimeline, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(timelineImages, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 321, Short.MAX_VALUE)));
    // NOI18N
    jTabbedPane1.addTab("Timeline Images", new javax.swing.ImageIcon(getClass().getResource("/com/codename1/designer/resources/images.png")), jPanel10);
    // NOI18N
    jPanel4.setName("jPanel4");
    jPanel4.setOpaque(false);
    addFont.setMnemonic('+');
    addFont.setText("Add Font");
    addFont.setToolTipText("Add Font");
    // NOI18N
    addFont.setName("addFont");
    addFont.addActionListener(formListener);
    fontsScroll.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
    // NOI18N
    fontsScroll.setName("fontsScroll");
    fontsScroll.setOpaque(false);
    org.jdesktop.layout.GroupLayout jPanel4Layout = new org.jdesktop.layout.GroupLayout(jPanel4);
    jPanel4.setLayout(jPanel4Layout);
    jPanel4Layout.setHorizontalGroup(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(fontsScroll, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 179, Short.MAX_VALUE).add(jPanel4Layout.createSequentialGroup().add(addFont).addContainerGap()));
    jPanel4Layout.setVerticalGroup(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(jPanel4Layout.createSequentialGroup().add(addFont).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(fontsScroll, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE)));
    // NOI18N
    jTabbedPane1.addTab("Fonts", new javax.swing.ImageIcon(getClass().getResource("/com/codename1/designer/resources/font.png")), jPanel4, "Fonts");
    // NOI18N
    jPanel5.setName("jPanel5");
    jPanel5.setOpaque(false);
    addL10N.setMnemonic('+');
    addL10N.setText("Add Resource Bundle");
    addL10N.setToolTipText("Add Localization");
    // NOI18N
    addL10N.setName("addL10N");
    addL10N.addActionListener(formListener);
    localizationScroll.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
    // NOI18N
    localizationScroll.setName("localizationScroll");
    localizationScroll.setOpaque(false);
    org.jdesktop.layout.GroupLayout jPanel5Layout = new org.jdesktop.layout.GroupLayout(jPanel5);
    jPanel5.setLayout(jPanel5Layout);
    jPanel5Layout.setHorizontalGroup(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(localizationScroll, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 193, Short.MAX_VALUE).add(jPanel5Layout.createSequentialGroup().add(addL10N).addContainerGap()));
    jPanel5Layout.setVerticalGroup(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(jPanel5Layout.createSequentialGroup().add(addL10N).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(localizationScroll, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE)));
    // NOI18N
    jTabbedPane1.addTab("Localization", new javax.swing.ImageIcon(getClass().getResource("/com/codename1/designer/resources/localization.png")), jPanel5, "Localization");
    // NOI18N
    jPanel6.setName("jPanel6");
    jPanel6.setOpaque(false);
    addData.setMnemonic('+');
    addData.setText("Add Data File");
    addData.setToolTipText("Add Data");
    // NOI18N
    addData.setName("addData");
    addData.addActionListener(formListener);
    dataScroll.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
    // NOI18N
    dataScroll.setName("dataScroll");
    dataScroll.setOpaque(false);
    org.jdesktop.layout.GroupLayout jPanel6Layout = new org.jdesktop.layout.GroupLayout(jPanel6);
    jPanel6.setLayout(jPanel6Layout);
    jPanel6Layout.setHorizontalGroup(jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(dataScroll, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 179, Short.MAX_VALUE).add(jPanel6Layout.createSequentialGroup().add(addData).addContainerGap()));
    jPanel6Layout.setVerticalGroup(jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(jPanel6Layout.createSequentialGroup().add(addData).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(dataScroll, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE)));
    // NOI18N
    jTabbedPane1.addTab("Data", new javax.swing.ImageIcon(getClass().getResource("/com/codename1/designer/resources/database.png")), jPanel6, "Data");
    org.jdesktop.layout.GroupLayout treeAreaLayout = new org.jdesktop.layout.GroupLayout(treeArea);
    treeArea.setLayout(treeAreaLayout);
    treeAreaLayout.setHorizontalGroup(treeAreaLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(org.jdesktop.layout.GroupLayout.TRAILING, jTabbedPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE));
    treeAreaLayout.setVerticalGroup(treeAreaLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(jTabbedPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 434, Short.MAX_VALUE));
    jTabbedPane1.getAccessibleContext().setAccessibleName("Resources");
    jTabbedPane1.getAccessibleContext().setAccessibleDescription("Resources");
    jSplitPane1.setLeftComponent(treeArea);
    resourceEditor.setMinimumSize(new java.awt.Dimension(400, 400));
    // NOI18N
    resourceEditor.setName("resourceEditor");
    resourceEditor.setOpaque(false);
    resourceEditor.setLayout(new java.awt.BorderLayout());
    // NOI18N
    jScrollPane3.setName("jScrollPane3");
    license.setColumns(20);
    license.setEditable(false);
    license.setFont(new java.awt.Font("Arial", 0, 12));
    license.setLineWrap(true);
    license.setRows(5);
    license.setWrapStyleWord(true);
    // NOI18N
    license.setName("license");
    jScrollPane3.setViewportView(license);
    license.getAccessibleContext().setAccessibleName("License");
    license.getAccessibleContext().setAccessibleDescription("License");
    resourceEditor.add(jScrollPane3, java.awt.BorderLayout.CENTER);
    // NOI18N
    jSeparator3.setName("jSeparator3");
    resourceEditor.add(jSeparator3, java.awt.BorderLayout.PAGE_START);
    jToolBar1.setRollover(true);
    // NOI18N
    jToolBar1.setName("jToolBar1");
    resourceEditor.add(jToolBar1, java.awt.BorderLayout.LINE_END);
    jSplitPane1.setRightComponent(resourceEditor);
    mainPanel.add(jSplitPane1, java.awt.BorderLayout.CENTER);
    // NOI18N
    menuBar.setName("menuBar");
    fileMenu.setMnemonic('F');
    fileMenu.setText("File");
    // NOI18N
    fileMenu.setName("fileMenu");
    newMenuItem.setAction(newResourceAction);
    newMenuItem.setMnemonic('N');
    newMenuItem.setText("New");
    // NOI18N
    newMenuItem.setName("newMenuItem");
    fileMenu.add(newMenuItem);
    openMenuItem.setAction(loadResourceFileAction);
    openMenuItem.setMnemonic('O');
    openMenuItem.setText("Open");
    // NOI18N
    openMenuItem.setName("openMenuItem");
    fileMenu.add(openMenuItem);
    // NOI18N
    recentMenu.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/codename1/designer/resources/recent1.png")));
    recentMenu.setMnemonic('R');
    recentMenu.setText("Recent");
    // NOI18N
    recentMenu.setName("recentMenu");
    fileMenu.add(recentMenu);
    saveMenuItem.setAction(saveResourceFileAction);
    saveMenuItem.setMnemonic('S');
    saveMenuItem.setText("Save");
    // NOI18N
    saveMenuItem.setName("saveMenuItem");
    fileMenu.add(saveMenuItem);
    saveAsMenuItem.setAction(saveResourceFileAsAction);
    saveAsMenuItem.setMnemonic('A');
    saveAsMenuItem.setText("Save As...");
    // NOI18N
    saveAsMenuItem.setName("saveAsMenuItem");
    fileMenu.add(saveAsMenuItem);
    resPassword.setText("Set Password");
    // NOI18N
    resPassword.setName("resPassword");
    resPassword.addActionListener(formListener);
    fileMenu.add(resPassword);
    importRes.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_I, java.awt.event.InputEvent.SHIFT_MASK | Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
    importRes.setMnemonic('I');
    importRes.setText("Import");
    // NOI18N
    importRes.setName("importRes");
    importRes.addActionListener(formListener);
    fileMenu.add(importRes);
    exportRes.setAction(exportResourceFileAction);
    exportRes.setMnemonic('E');
    exportRes.setText("Export...");
    // NOI18N
    exportRes.setName("exportRes");
    fileMenu.add(exportRes);
    setupNetbeans.setText("Setup Netbeans");
    // NOI18N
    setupNetbeans.setName("setupNetbeans");
    setupNetbeans.addActionListener(formListener);
    fileMenu.add(setupNetbeans);
    lookAndFeelMenu.setMnemonic('L');
    lookAndFeelMenu.setText("Look & Feel");
    // NOI18N
    lookAndFeelMenu.setName("lookAndFeelMenu");
    buttonGroup1.add(systemLFMenu);
    systemLFMenu.setMnemonic('S');
    systemLFMenu.setText("System");
    // NOI18N
    systemLFMenu.setName("systemLFMenu");
    systemLFMenu.addActionListener(formListener);
    lookAndFeelMenu.add(systemLFMenu);
    buttonGroup1.add(crossPlatformLFMenu);
    crossPlatformLFMenu.setMnemonic('C');
    crossPlatformLFMenu.setText("Cross Platform");
    // NOI18N
    crossPlatformLFMenu.setName("crossPlatformLFMenu");
    crossPlatformLFMenu.addActionListener(formListener);
    lookAndFeelMenu.add(crossPlatformLFMenu);
    // NOI18N
    jSeparator6.setName("jSeparator6");
    lookAndFeelMenu.add(jSeparator6);
    checkerboardColors.setText("Checkerboard Color");
    // NOI18N
    checkerboardColors.setName("checkerboardColors");
    checkerboardColors.addActionListener(formListener);
    lookAndFeelMenu.add(checkerboardColors);
    // NOI18N
    jSeparator4.setName("jSeparator4");
    lookAndFeelMenu.add(jSeparator4);
    fileMenu.add(lookAndFeelMenu);
    enableXMLTeamMode.setText("XML Team Mode");
    // NOI18N
    enableXMLTeamMode.setName("enableXMLTeamMode");
    enableXMLTeamMode.addActionListener(formListener);
    fileMenu.add(enableXMLTeamMode);
    // NOI18N
    jSeparator1.setName("jSeparator1");
    fileMenu.add(jSeparator1);
    exitMenuItem.setAction(QuitAction.INSTANCE);
    exitMenuItem.setMnemonic('X');
    exitMenuItem.setText("Exit");
    // NOI18N
    exitMenuItem.setName("exitMenuItem");
    fileMenu.add(exitMenuItem);
    menuBar.add(fileMenu);
    editMenu.setMnemonic('E');
    editMenu.setText("Edit");
    // NOI18N
    editMenu.setName("editMenu");
    renameItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
    renameItem.setMnemonic('R');
    renameItem.setText("Rename");
    // NOI18N
    renameItem.setName("renameItem");
    renameItem.addActionListener(formListener);
    editMenu.add(renameItem);
    duplicateItem.setText("Duplicate");
    // NOI18N
    duplicateItem.setName("duplicateItem");
    duplicateItem.addActionListener(formListener);
    editMenu.add(duplicateItem);
    // NOI18N
    jSeparator2.setName("jSeparator2");
    editMenu.add(jSeparator2);
    undoItem.setAction(undoAction);
    undoItem.setMnemonic('U');
    undoItem.setText("Undo");
    // NOI18N
    undoItem.setName("undoItem");
    editMenu.add(undoItem);
    redoItem.setAction(redoAction);
    redoItem.setMnemonic('E');
    redoItem.setText("Redo");
    // NOI18N
    redoItem.setName("redoItem");
    editMenu.add(redoItem);
    menuBar.add(editMenu);
    jMenu8.setText("Codename One");
    // NOI18N
    jMenu8.setName("jMenu8");
    signup.setText("Signup");
    // NOI18N
    signup.setName("signup");
    signup.addActionListener(formListener);
    jMenu8.add(signup);
    login.setText("Login");
    // NOI18N
    login.setName("login");
    login.addActionListener(formListener);
    jMenu8.add(login);
    livePreviewUI.setText("Live Preview");
    // NOI18N
    livePreviewUI.setName("livePreviewUI");
    livePreviewUI.addActionListener(formListener);
    jMenu8.add(livePreviewUI);
    jMenu6.setText("Advanced");
    // NOI18N
    jMenu6.setName("jMenu6");
    resetNetbeansSettings.setText("Reset Netbeans Settings");
    // NOI18N
    resetNetbeansSettings.setName("resetNetbeansSettings");
    resetNetbeansSettings.addActionListener(formListener);
    jMenu6.add(resetNetbeansSettings);
    jMenu8.add(jMenu6);
    menuBar.add(jMenu8);
    jMenu1.setText("Native Theme");
    // NOI18N
    jMenu1.setName("jMenu1");
    jMenu10.setText("iOS");
    // NOI18N
    jMenu10.setName("jMenu10");
    nativeThemeButtonGroup.add(iosNativeTheme);
    iosNativeTheme.setSelected(true);
    iosNativeTheme.setText("iOS 6");
    // NOI18N
    iosNativeTheme.setName("iosNativeTheme");
    iosNativeTheme.addActionListener(formListener);
    jMenu10.add(iosNativeTheme);
    nativeThemeButtonGroup.add(ios7NativeTheme);
    ios7NativeTheme.setText("iOS 7");
    // NOI18N
    ios7NativeTheme.setName("ios7NativeTheme");
    ios7NativeTheme.addActionListener(formListener);
    jMenu10.add(ios7NativeTheme);
    jMenu1.add(jMenu10);
    jMenu3.setText("Android");
    nativeThemeButtonGroup.add(android2NativeTheme);
    android2NativeTheme.setText("Gingerbread (2.3.x)");
    // NOI18N
    android2NativeTheme.setName("android2NativeTheme");
    android2NativeTheme.addActionListener(formListener);
    jMenu3.add(android2NativeTheme);
    nativeThemeButtonGroup.add(jRadioButtonMenuItem4);
    jRadioButtonMenuItem4.setText("ICS (3.x or newer/Tablets)");
    // NOI18N
    jRadioButtonMenuItem4.setName("jRadioButtonMenuItem4");
    jRadioButtonMenuItem4.addActionListener(formListener);
    jMenu3.add(jRadioButtonMenuItem4);
    jMenu1.add(jMenu3);
    nativeThemeButtonGroup.add(blackberryNativeTheme);
    blackberryNativeTheme.setText("Blackberry Theme");
    // NOI18N
    blackberryNativeTheme.setName("blackberryNativeTheme");
    blackberryNativeTheme.addActionListener(formListener);
    jMenu1.add(blackberryNativeTheme);
    nativeThemeButtonGroup.add(winNativeTheme);
    winNativeTheme.setText("Windows Phone Theme");
    // NOI18N
    winNativeTheme.setName("winNativeTheme");
    winNativeTheme.addActionListener(formListener);
    jMenu1.add(winNativeTheme);
    jMenu9.setText("J2ME - Nokia");
    nativeThemeButtonGroup.add(jRadioButtonMenuItem3);
    jRadioButtonMenuItem3.setText("Nokia Asha");
    // NOI18N
    jRadioButtonMenuItem3.setName("jRadioButtonMenuItem3");
    jRadioButtonMenuItem3.addActionListener(formListener);
    jMenu9.add(jRadioButtonMenuItem3);
    nativeThemeButtonGroup.add(jRadioButtonMenuItem2);
    jRadioButtonMenuItem2.setText("Nokia Touch");
    // NOI18N
    jRadioButtonMenuItem2.setName("jRadioButtonMenuItem2");
    jRadioButtonMenuItem2.addActionListener(formListener);
    jMenu9.add(jRadioButtonMenuItem2);
    nativeThemeButtonGroup.add(jRadioButtonMenuItem1);
    jRadioButtonMenuItem1.setText("Nokia None Touch");
    // NOI18N
    jRadioButtonMenuItem1.setName("jRadioButtonMenuItem1");
    jRadioButtonMenuItem1.addActionListener(formListener);
    jMenu9.add(jRadioButtonMenuItem1);
    jMenu1.add(jMenu9);
    nativeThemeButtonGroup.add(customNativeTheme);
    customNativeTheme.setText("Custom Theme");
    // NOI18N
    customNativeTheme.setName("customNativeTheme");
    customNativeTheme.addActionListener(formListener);
    jMenu1.add(customNativeTheme);
    menuBar.add(jMenu1);
    jMenu4.setText("Images");
    // NOI18N
    jMenu4.setName("jMenu4");
    addMultiImages.setText("Add Multi Images");
    // NOI18N
    addMultiImages.setName("addMultiImages");
    addMultiImages.addActionListener(formListener);
    jMenu4.add(addMultiImages);
    quickMultiImages.setText("Quick Add Multi Images");
    // NOI18N
    quickMultiImages.setName("quickMultiImages");
    quickMultiImages.addActionListener(formListener);
    jMenu4.add(quickMultiImages);
    addImages.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ADD, java.awt.event.InputEvent.CTRL_MASK));
    addImages.setMnemonic('A');
    addImages.setText("Add Images");
    // NOI18N
    addImages.setName("addImages");
    addImages.addActionListener(formListener);
    jMenu4.add(addImages);
    addSVGImages.setText("Add SVG Images");
    // NOI18N
    addSVGImages.setName("addSVGImages");
    addSVGImages.addActionListener(formListener);
    jMenu4.add(addSVGImages);
    deleteUnusedImages.setText("Delete Unused Images");
    // NOI18N
    deleteUnusedImages.setName("deleteUnusedImages");
    deleteUnusedImages.addActionListener(formListener);
    jMenu4.add(deleteUnusedImages);
    imageSizes.setText("Image Sizes (KB)");
    // NOI18N
    imageSizes.setName("imageSizes");
    imageSizes.addActionListener(formListener);
    jMenu4.add(imageSizes);
    imageBorderWizardMenuItem.setText("Image Border Wizard");
    // NOI18N
    imageBorderWizardMenuItem.setName("imageBorderWizardMenuItem");
    imageBorderWizardMenuItem.addActionListener(formListener);
    jMenu4.add(imageBorderWizardMenuItem);
    jMenu5.setText("Effects");
    // NOI18N
    jMenu5.setName("jMenu5");
    pulsateEffect.setText("Pulsate");
    // NOI18N
    pulsateEffect.setName("pulsateEffect");
    pulsateEffect.addActionListener(formListener);
    jMenu5.add(pulsateEffect);
    jMenu4.add(jMenu5);
    jMenu2.setText("Advanced");
    // NOI18N
    jMenu2.setName("jMenu2");
    findMultiImages.setText("Find Multi Images");
    // NOI18N
    findMultiImages.setName("findMultiImages");
    findMultiImages.addActionListener(formListener);
    jMenu2.add(findMultiImages);
    launchOptiPng.setText("Launch OptiPng");
    // NOI18N
    launchOptiPng.setName("launchOptiPng");
    launchOptiPng.addActionListener(formListener);
    jMenu2.add(launchOptiPng);
    import9Patch.setText("Import 9-Patch");
    // NOI18N
    import9Patch.setName("import9Patch");
    import9Patch.addActionListener(formListener);
    jMenu2.add(import9Patch);
    jMenu7.setText("Remove DPI");
    // NOI18N
    jMenu7.setName("jMenu7");
    removeDPIHD.setText("HD");
    // NOI18N
    removeDPIHD.setName("removeDPIHD");
    removeDPIHD.addActionListener(formListener);
    jMenu7.add(removeDPIHD);
    removeDPIVeryHigh.setText("Very High DPI");
    // NOI18N
    removeDPIVeryHigh.setName("removeDPIVeryHigh");
    removeDPIVeryHigh.addActionListener(formListener);
    jMenu7.add(removeDPIVeryHigh);
    removeDPIHigh.setText("High");
    // NOI18N
    removeDPIHigh.setName("removeDPIHigh");
    removeDPIHigh.addActionListener(formListener);
    jMenu7.add(removeDPIHigh);
    removeDPIMedium.setText("Medium");
    // NOI18N
    removeDPIMedium.setName("removeDPIMedium");
    removeDPIMedium.addActionListener(formListener);
    jMenu7.add(removeDPIMedium);
    removeDPILow.setText("Low");
    // NOI18N
    removeDPILow.setName("removeDPILow");
    removeDPILow.addActionListener(formListener);
    jMenu7.add(removeDPILow);
    removeDPIVeryLow.setText("Very Low");
    // NOI18N
    removeDPIVeryLow.setName("removeDPIVeryLow");
    removeDPIVeryLow.addActionListener(formListener);
    jMenu7.add(removeDPIVeryLow);
    jMenu2.add(jMenu7);
    jMenu4.add(jMenu2);
    menuBar.add(jMenu4);
    helpMenu.setMnemonic('H');
    helpMenu.setText("Help");
    // NOI18N
    helpMenu.setName("helpMenu");
    // NOI18N
    jSeparator8.setName("jSeparator8");
    helpMenu.add(jSeparator8);
    about.setText("About");
    // NOI18N
    about.setName("about");
    about.addActionListener(formListener);
    helpMenu.add(about);
    menuBar.add(helpMenu);
    toolbar.setRollover(true);
    // NOI18N
    toolbar.setName("toolbar");
    setComponent(mainPanel);
    setMenuBar(menuBar);
    setToolBar(toolbar);
}
Also used : JMenuItem(javax.swing.JMenuItem) ImageIcon(javax.swing.ImageIcon) BorderLayout(java.awt.BorderLayout) JButton(javax.swing.JButton) ButtonGroup(javax.swing.ButtonGroup) JScrollPane(javax.swing.JScrollPane) JTextArea(javax.swing.JTextArea) JOutlookBar(com.l2fprod.common.swing.JOutlookBar) JPanel(javax.swing.JPanel)

Example 3 with JOutlookBar

use of com.l2fprod.common.swing.JOutlookBar in project CodenameOne by codenameone.

the class BasicOutlookBarUI method tabAdded.

protected void tabAdded(final Component newTab) {
    TabButton button = (TabButton) tabToButton.get(newTab);
    if (button == null) {
        button = createTabButton();
        // save the button original color,
        // later they would be restored if the button colors are not customized on
        // the OutlookBar
        button.putClientProperty(BUTTON_ORIGINAL_FOREGROUND, button.getForeground());
        button.putClientProperty(BUTTON_ORIGINAL_BACKGROUND, button.getBackground());
        buttonToTab.put(button, newTab);
        tabToButton.put(newTab, button);
        button.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                final Component current = getVisibleComponent();
                Component target = newTab;
                // tabPane allows animation
                if (((JOutlookBar) tabPane).isAnimated() && current != target && current != null && target != null) {
                    if (animator != null) {
                        animator.stop();
                    }
                    animator = new PercentLayoutAnimator(tabPane, (PercentLayout) tabPane.getLayout()) {

                        protected void complete() {
                            super.complete();
                            tabPane.setSelectedComponent(newTab);
                            nextVisibleComponent = null;
                            // animation
                            if (current.getParent() == tabPane) {
                                ((PercentLayout) tabPane.getLayout()).setConstraint(current, "100%");
                            }
                        }
                    };
                    nextVisibleComponent = newTab;
                    animator.setTargetPercent(current, 1.0f, 0.0f);
                    animator.setTargetPercent(newTab, 0.0f, 1.0f);
                    animator.start();
                } else {
                    nextVisibleComponent = null;
                    tabPane.setSelectedComponent(newTab);
                }
            }
        });
    } else {
        // the tab is already in the list, remove the button, it will be
        // added again later
        tabPane.remove(button);
    }
    // update the button with the tab information
    updateTabButtonAt(tabPane.indexOfComponent(newTab));
    int index = indexOfComponent(newTab);
    tabPane.add(button, index);
    // introduced by J2SE 5
    if (JVM.current().isOneDotFive()) {
        assureRectsCreated(tabPane.getTabCount());
    }
}
Also used : ActionListener(java.awt.event.ActionListener) PercentLayoutAnimator(com.l2fprod.common.swing.PercentLayoutAnimator) PercentLayout(com.l2fprod.common.swing.PercentLayout) ActionEvent(java.awt.event.ActionEvent) JComponent(javax.swing.JComponent) Component(java.awt.Component) JOutlookBar(com.l2fprod.common.swing.JOutlookBar)

Aggregations

JOutlookBar (com.l2fprod.common.swing.JOutlookBar)3 ImageIcon (javax.swing.ImageIcon)2 JButton (javax.swing.JButton)2 PercentLayout (com.l2fprod.common.swing.PercentLayout)1 PercentLayoutAnimator (com.l2fprod.common.swing.PercentLayoutAnimator)1 BorderLayout (java.awt.BorderLayout)1 Component (java.awt.Component)1 Dimension (java.awt.Dimension)1 ActionEvent (java.awt.event.ActionEvent)1 ActionListener (java.awt.event.ActionListener)1 ButtonGroup (javax.swing.ButtonGroup)1 JComboBox (javax.swing.JComboBox)1 JComponent (javax.swing.JComponent)1 JLabel (javax.swing.JLabel)1 JMenuItem (javax.swing.JMenuItem)1 JPanel (javax.swing.JPanel)1 JScrollPane (javax.swing.JScrollPane)1 JTable (javax.swing.JTable)1 JTextArea (javax.swing.JTextArea)1