rootPanel.setLayout(new GridLayoutManager(5, 19, new Insets(0, 0, 0, 0), -1, -1)); tabbedPane1 = new JTabbedPane(); tabbedPane1.setTabPlacement(1); rootPanel.add(tabbedPane1, new GridConstraints(0, 0, 5, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_VERTICAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); final JPanel panel1 = new JPanel();
jTabbedPaneText.setTabPlacement(javax.swing.JTabbedPane.BOTTOM); jTabbedPaneText.addTab("Talk", jScrollPaneTalk);
public void actionPerformed( ActionEvent ev) { if ( ev.getActionCommand().equals( "Top") ) { tabPan.setTabPlacement( JTabbedPane.TOP); } else if ( ev.getActionCommand().equals( "Bottom") ) { tabPan.setTabPlacement( JTabbedPane.BOTTOM); } else if ( ev.getActionCommand().equals( "Right") ) { tabPan.setTabPlacement( JTabbedPane.RIGHT); } else if ( ev.getActionCommand().equals( "Left") ) { tabPan.setTabPlacement( JTabbedPane.LEFT); } } }
protected void $initialize_05_setProperties() { if (log.isDebugEnabled()) { log.debug(this); } // apply 4 property setters categories.setTabPlacement(JTabbedPane.LEFT); quit.setIcon(SwingUtil.getUIManagerActionIcon("config-quit")); }
protected void $initialize_05_setProperties() { if (log.isDebugEnabled()) { log.debug(this); } // apply 4 property setters categories.setTabPlacement(JTabbedPane.LEFT); quit.setIcon(SwingUtil.getUIManagerActionIcon("config-quit")); }
public void setTabPlacement(String location) { tabs.setTabPlacement(getTabPlacementValue(location)); }
/** 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() { toolBarButtonGroup = new javax.swing.ButtonGroup(); tabbedPane = new javax.swing.JTabbedPane(); setLayout(new java.awt.BorderLayout()); tabbedPane.setTabPlacement(javax.swing.JTabbedPane.BOTTOM); add(tabbedPane, java.awt.BorderLayout.CENTER); }// </editor-fold>//GEN-END:initComponents
/** * Session properties have changed so update GUI if required. * * @param propertyName Name of property that has changed. */ private void propertiesHaveChanged(PropertyChangeEvent evt) { SessionProperties props = _session.getProperties(); if (evt == null || evt.getPropertyName().equals( SessionProperties.IPropertyNames.SQL_RESULTS_TAB_PLACEMENT)) { _tabResultTabs.setTabPlacement(props.getSQLResultsTabPlacement()); } }
/** * Session properties have changed so update GUI if required. * * @param propertyName Name of property that has changed. */ private void propertiesHaveChanged(String propertyName) { SessionProperties props = _session.getProperties(); if (propertyName == null || propertyName.equals(SessionProperties.IPropertyNames.MAIN_TAB_PLACEMENT)) { _tabPnl.setTabPlacement(props.getMainTabPlacement()); } }
/** * Session properties have changed so update GUI if required. * * @param propertyName Name of property that has changed. */ private void propertiesHaveChanged(PropertyChangeEvent evt) { SessionProperties props = _session.getProperties(); if (evt == null || evt.getPropertyName().equals( SessionProperties.IPropertyNames.SQL_RESULTS_TAB_PLACEMENT)) { _tabResultTabs.setTabPlacement(props.getSQLResultsTabPlacement()); } }
private void $completeSetup() { allComponentsCreated = true; if (log.isDebugEnabled()) { log.debug(this); } // inline complete setup of $JPanel0 add(categories, BorderLayout.CENTER); add($JPanel1, BorderLayout.SOUTH); // inline complete setup of $JPanel1 $JPanel1.add(quit); // apply 4 property setters categories.setTabPlacement(JTabbedPane.LEFT); quit.setIcon(SwingUtil.createActionIcon("config-quit")); }
/** * Session properties have changed so update GUI if required. * * @param propertyName Name of property that has changed. */ private void propertiesHaveChanged(String propertyName) { SessionProperties props = _session.getProperties(); if (propertyName == null || propertyName.equals(SessionProperties.IPropertyNames.MAIN_TAB_PLACEMENT)) { _tabPnl.setTabPlacement(props.getMainTabPlacement()); } }
private void $completeSetup() { allComponentsCreated = true; if (log.isDebugEnabled()) { log.debug(this); } // inline complete setup of $JPanel0 add(simulTabs, BorderLayout.CENTER); addChildrenToSimulTabs(); // apply 8 property setters simulTabs.setTabPlacement(JTabbedPane.LEFT); $TabInfo0.setIcon(new ImageIcon(getClass().getResource("/images/book.gif"))); $TabInfo1.setIcon(new ImageIcon(getClass().getResource("/images/simulation.gif"))); $TabInfo2.setIcon(new ImageIcon(getClass().getResource("/images/sensitivities.gif"))); $TabInfo3.setIcon(new ImageIcon(getClass().getResource("/images/calc.gif"))); $TabInfo4.setIcon(new ImageIcon(getClass().getResource("/images/bookPage.gif"))); $TabInfo5.setIcon(new ImageIcon(getClass().getResource("/images/Queue.gif"))); }
private void $completeSetup() { allComponentsCreated = true; $JPanel0.add(categories, BorderLayout.CENTER); $JPanel0.add($JPanel1, BorderLayout.SOUTH); $JPanel1.add(quit); categories.setTabPlacement((JTabbedPane.LEFT)); quit.setIcon((jaxx.runtime.Util.createActionIcon("config-quit"))); }
private JTabbedPane createTabbedPane(Container pParent, Element pElement) { JTabbedPane tabbedPane = (JTabbedPane) mBuilder.getWidgetFactory() .create(JTabbedPane.class.getName(), pElement, pParent); int tabPlacement = JTabbedPane.TOP; Attribute tabPlacementAttribute = pElement .getAttribute(SwingXMLBuilder.TABPLACEMENT_ATTRIBUTE); if (tabPlacementAttribute != null) { tabPlacement = Integer.parseInt(tabPlacementAttribute.getValue()); } tabbedPane.setTabPlacement(tabPlacement); return tabbedPane; }
private void propertiesHaveChanged(String propName) { final SessionProperties props = _session.getProperties(); if (propName == null || propName.equals(SessionProperties.IPropertyNames.AUTO_COMMIT)) { SetAutoCommitTask task = new SetAutoCommitTask(); if (SwingUtilities.isEventDispatchThread()) { _session.getApplication().getThreadPool().addTask(task); } else { task.run(); } } if (propName == null || propName .equals(SessionProperties.IPropertyNames.SQL_EXECUTION_TAB_PLACEMENT)) { _tabbedExecutionsPanel.setTabPlacement(props.getSQLExecutionTabPlacement()); } }
public JTabbedPane createTabbedPane(int tabPlacement, boolean dndTabbedPane) { JTabbedPane pnl; if (dndTabbedPane) { pnl = new DnDSquirrelTabbedPane(_prefs, _app); } else { pnl = new SquirrelTabbedPane(_prefs, _app); } pnl.setTabPlacement(tabPlacement); fireTabbedPaneCreated(pnl); return pnl; }
public JTabbedPane createTabbedPane(int tabPlacement, boolean dndTabbedPane) { JTabbedPane pnl; if (dndTabbedPane) { pnl = new DnDSquirrelTabbedPane(_prefs, _app); } else { pnl = new SquirrelTabbedPane(_prefs, _app); } pnl.setTabPlacement(tabPlacement); fireTabbedPaneCreated(pnl); return pnl; }
private void setupTabbedPane(ObjectTreeTabbedPane pane) { final SessionProperties props = _session.getProperties(); pane.rebuild(); final JTabbedPane p = pane.getTabbedPane(); p.setTabPlacement(props.getObjectTabPlacement()); p.addChangeListener(_tabPnlListener); }
private void setupTabbedPane(ObjectTreeTabbedPane pane) { final SessionProperties props = _session.getProperties(); pane.rebuild(); final JTabbedPane p = pane.getTabbedPane(); p.setTabPlacement(props.getObjectTabPlacement()); p.addChangeListener(_tabPnlListener); }