本文整理了Java中javax.swing.JTabbedPane.setTabPlacement()
方法的一些代码示例,展示了JTabbedPane.setTabPlacement()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTabbedPane.setTabPlacement()
方法的具体详情如下:
包路径:javax.swing.JTabbedPane
类名称:JTabbedPane
方法名:setTabPlacement
暂无
代码示例来源:origin: vulnersCom/burp-vulners-scanner
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();
代码示例来源:origin: magefree/mage
jTabbedPaneText.setTabPlacement(javax.swing.JTabbedPane.BOTTOM);
jTabbedPaneText.addTab("Talk", jScrollPaneTalk);
代码示例来源:origin: net.sf.nimrod/nimrod-laf
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);
}
}
}
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-config
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"));
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets-config
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"));
}
代码示例来源:origin: chatty/chatty
public void setTabPlacement(String location) {
tabs.setTabPlacement(getTabPlacementValue(location));
}
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
/** 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
代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql
/**
* 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());
}
}
代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql
/**
* 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());
}
}
代码示例来源:origin: realXuJiang/bigtable-sql
/**
* 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());
}
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-config
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"));
}
代码示例来源:origin: realXuJiang/bigtable-sql
/**
* 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());
}
}
代码示例来源:origin: fr.ifremer/isis-fish
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")));
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime-swing-widget
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")));
}
代码示例来源:origin: net.sf.cuf/cuf-swing
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;
}
代码示例来源:origin: realXuJiang/bigtable-sql
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());
}
}
代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql
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;
}
代码示例来源:origin: realXuJiang/bigtable-sql
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;
}
代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql
private void setupTabbedPane(ObjectTreeTabbedPane pane)
{
final SessionProperties props = _session.getProperties();
pane.rebuild();
final JTabbedPane p = pane.getTabbedPane();
p.setTabPlacement(props.getObjectTabPlacement());
p.addChangeListener(_tabPnlListener);
}
代码示例来源:origin: realXuJiang/bigtable-sql
private void setupTabbedPane(ObjectTreeTabbedPane pane)
{
final SessionProperties props = _session.getProperties();
pane.rebuild();
final JTabbedPane p = pane.getTabbedPane();
p.setTabPlacement(props.getObjectTabPlacement());
p.addChangeListener(_tabPnlListener);
}
内容来源于网络,如有侵权,请联系作者删除!