本文整理汇总了Java中javax.swing.JSplitPane.setBorder方法的典型用法代码示例。如果您正苦于以下问题:Java JSplitPane.setBorder方法的具体用法?Java JSplitPane.setBorder怎么用?Java JSplitPane.setBorder使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.swing.JSplitPane
的用法示例。
在下文中一共展示了JSplitPane.setBorder方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initGui
import javax.swing.JSplitPane; //导入方法依赖的package包/类
protected TreeView initGui () {
TTW retVal = new TTW () ;
split = new JSplitPane (JSplitPane.HORIZONTAL_SPLIT);
PropertySheetView propertyView = new PropertySheetView();
split.setLeftComponent(retVal);
split.setRightComponent(propertyView);
// install proper border for split pane
split.setBorder((Border)UIManager.get("Nb.ScrollPane.border")); // NOI18N
setLayout (new java.awt.GridBagLayout ());
GridBagConstraints gridBagConstraints = new GridBagConstraints ();
gridBagConstraints.fill = GridBagConstraints.BOTH;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.weighty = 1.0;
gridBagConstraints.gridwidth = 2;
add (split, gridBagConstraints);
return retVal;
}
示例2: initComponents
import javax.swing.JSplitPane; //导入方法依赖的package包/类
private void initComponents() {
this.setLayout(new BorderLayout());
//building mainPanel
mainPanel = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
mainPanel.setDividerSize(4);
mainPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
//layout of main panel
WarningScrollTable jsp = new WarningScrollTable(joinStrategies, WARNING_CLASS);
jsp.setBorder(new TitledBorder(new EtchedBorder(), "Join Strategies"));
mainPanel.setResizeWeight(1.0);
jsp.setMinimumSize(new Dimension(200, 100));
mainPanel.setLeftComponent(jsp);
joinEditor.setMinimumSize(new Dimension(225, 100));
mainPanel.setRightComponent(joinEditor);
add(mainPanel, BorderLayout.CENTER);
}
示例3: initComponents
import javax.swing.JSplitPane; //导入方法依赖的package包/类
private void initComponents() {
this.setLayout(new BorderLayout());
//building mainPanel
mainPanel = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
mainPanel.setDividerSize(4);
mainPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
//layout of main panel
WarningScrollTable jsp = new WarningScrollTable(semaphoreStrategies, WARNING_CLASS);
jsp.setBorder(new TitledBorder(new EtchedBorder(), "Semaphore Strategies"));
mainPanel.setResizeWeight(1.0);
jsp.setMinimumSize(new Dimension(200, 100));
mainPanel.setLeftComponent(jsp);
semaphoreEditor.setMinimumSize(new Dimension(225, 100));
mainPanel.setRightComponent(semaphoreEditor);
add(mainPanel, BorderLayout.CENTER);
}
示例4: initComponents
import javax.swing.JSplitPane; //导入方法依赖的package包/类
protected void initComponents() {
this.setLayout(new BorderLayout());
//building mainPanel
mainPanel = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
mainPanel.setDividerSize(4);
mainPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
//layout of main panel
WarningScrollTable jsp = new WarningScrollTable(routingStrategies, WARNING_CLASS);
jsp.setBorder(new TitledBorder(new EtchedBorder(), "Routing Strategies"));
mainPanel.setResizeWeight(1.0);
jsp.setMinimumSize(new Dimension(200, 100));
mainPanel.setLeftComponent(jsp);
routingProbEditor.setMinimumSize(new Dimension(225, 100));
mainPanel.setRightComponent(routingProbEditor);
add(mainPanel, BorderLayout.CENTER);
}
示例5: initComponents
import javax.swing.JSplitPane; //导入方法依赖的package包/类
protected void initComponents() {
this.setLayout(new BorderLayout());
//building mainPanel
mainPanel = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
mainPanel.setDividerSize(4);
mainPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
//layout of main panel
WarningScrollTable jsp = new WarningScrollTable(routingStrategies, WARNING_CLASS);
//routing strategy selector on the left, routing probabilities editor on the right
jsp.setBorder(new TitledBorder(new EtchedBorder(), "Routing Strategies"));
mainPanel.setResizeWeight(.80); // Gives more space to left component
jsp.setMinimumSize(new Dimension(180, 100));
mainPanel.setLeftComponent(jsp);
routingProbEditor.setMinimumSize(new Dimension(160, 100));
mainPanel.setRightComponent(routingProbEditor);
add(mainPanel, BorderLayout.CENTER);
}
示例6: getDisplayPanel
import javax.swing.JSplitPane; //导入方法依赖的package包/类
/** Lazily creates and returns the top-level display panel. */
private JSplitPane getDisplayPanel() {
JSplitPane result = this.displayPanel;
if (result == null) {
this.displayPanel = result = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
result.setTopComponent(getGraphPanel());
result.setBottomComponent(getErrorPanel());
result.setDividerSize(0);
result.setContinuousLayout(true);
result.setResizeWeight(0.9);
result.resetToPreferredSizes();
result.setBorder(null);
}
return result;
}
示例7: getDisplaysInfoPanel
import javax.swing.JSplitPane; //导入方法依赖的package包/类
/**
* Lazily creates and returns the split pane
* containing the displays and info panels.
*/
JSplitPane getDisplaysInfoPanel() {
JSplitPane result = this.displaysInfoPanel;
if (result == null) {
this.displaysInfoPanel = result = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
result.setLeftComponent(getDisplaysPanel());
result.setRightComponent(getDisplaysPanel().getInfoPanel());
result.setOneTouchExpandable(true);
result.setResizeWeight(1);
result.setDividerLocation(0.8);
result.setContinuousLayout(true);
result.setBorder(null);
ToolTipManager.sharedInstance()
.registerComponent(result);
}
return result;
}
示例8: removeBordersFromSplitPane
import javax.swing.JSplitPane; //导入方法依赖的package包/类
public static void removeBordersFromSplitPane(JSplitPane split)
{
// remove the border from the split pane
split.setBorder(null);
// check the UI. If we can't work with the UI any further, then
// exit here.
if( !(split.getUI() instanceof BasicSplitPaneUI) )
{
return;
}
// grab the divider from the UI and remove the border from it
final BasicSplitPaneDivider divider = ((BasicSplitPaneUI) split.getUI()).getDivider();
if( divider != null )
{
// Taken from http://forums.sun.com/thread.jspa?threadID=566152
divider.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0),
new SplitPaneBorder(UIManager.getColor("SplitPane.background")))); //$NON-NLS-1$
}
}
示例9: createSplitPane
import javax.swing.JSplitPane; //导入方法依赖的package包/类
private JSplitPane createSplitPane(Component lower) {
JSplitPane pane = new JSplitPane();
if (firstSplit == null) {
firstSplit = Boolean.TRUE;
} else {
firstSplit = Boolean.FALSE;
}
pane.setRightComponent(lower);
pane.setOrientation(JSplitPane.VERTICAL_SPLIT);
pane.setContinuousLayout(true);
pane.setResizeWeight(1);
pane.setDividerLocation(0.80f);
pane.setBorder(BorderFactory.createEmptyBorder());
//Do not install our custom split pane UI on Nimbus L&F
if (!"Nimbus".equals(UIManager.getLookAndFeel().getID())) {
pane.setUI(PropUtils.createSplitPaneUI());
}
// #52188: default F6 behaviour doesn't make to much sense in NB
// property sheet and blocks NetBeans default F6
pane.getActionMap().getParent().remove("toggleFocus");
if( PropUtils.isAqua ) {
pane.setBackground( UIManager.getColor("NbExplorerView.background") ); //NOI18N
}
return pane;
}
示例10: tweakSplitPaneUI
import javax.swing.JSplitPane; //导入方法依赖的package包/类
private void tweakSplitPaneUI(JSplitPane splitPane) {
splitPane.setOpaque(false);
splitPane.setBorder(null);
splitPane.setDividerSize(3);
if (!(splitPane.getUI() instanceof BasicSplitPaneUI)) {
return;
}
BasicSplitPaneDivider divider = ((BasicSplitPaneUI) splitPane.getUI()).getDivider();
if (divider != null) {
divider.setBorder(null);
}
}
示例11: tweakSplitPaneUI
import javax.swing.JSplitPane; //导入方法依赖的package包/类
private static void tweakSplitPaneUI(JSplitPane splitPane) {
splitPane.setOpaque(false);
splitPane.setBorder(null);
splitPane.setDividerSize(3);
if (!(splitPane.getUI() instanceof BasicSplitPaneUI)) {
return;
}
BasicSplitPaneDivider divider = ((BasicSplitPaneUI) splitPane.getUI()).getDivider();
if (divider != null) {
divider.setBorder(null);
}
}
示例12: getSplitInfoPanel
import javax.swing.JSplitPane; //导入方法依赖的package包/类
/**
* Lazily creates and returns a split panel used as info panel in case there is
* an upper and a lower panel.
*/
private JSplitPane getSplitInfoPanel() {
JSplitPane result = this.splitInfoPanel;
if (result == null) {
this.splitInfoPanel = result = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
result.setContinuousLayout(true);
result.setBorder(null);
}
return result;
}
示例13: erzeugeAuflisterPanel
import javax.swing.JSplitPane; //导入方法依赖的package包/类
/**
* Erzeugt das Panel für die Anzeige der Kunden- und Medien-Tabelle, die
* durch eine Splittpane voneinander getrennt sind.
*
*/
private void erzeugeAuflisterPanel()
{
JPanel auflisterPanel = new JPanel();
_hauptPanel.add(auflisterPanel, BorderLayout.CENTER);
auflisterPanel.setLayout(new BorderLayout());
setNoSize(auflisterPanel);
auflisterPanel.setBackground(UIConstants.BACKGROUND_COLOR);
_auflisterSplitpane = new JSplitPane();
auflisterPanel.add(_auflisterSplitpane, BorderLayout.CENTER);
_auflisterSplitpane.setOrientation(JSplitPane.VERTICAL_SPLIT);
_auflisterSplitpane.setOneTouchExpandable(true);
_auflisterSplitpane.setDividerLocation(300);
setNoSize(_auflisterSplitpane);
_auflisterSplitpane.setContinuousLayout(true);
_auflisterSplitpane.setDoubleBuffered(true);
_auflisterSplitpane.setResizeWeight(0.5);
_auflisterSplitpane.setBackground(UIConstants.BACKGROUND_COLOR);
_auflisterSplitpane
.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
// Kundendarstellung
_auflisterSplitpane.add(_kundenauflisterPanel, JSplitPane.TOP);
// Mediendarstellung
_auflisterSplitpane.add(_medienauflisterPanel, JSplitPane.BOTTOM);
}
示例14: AssociationRuleTableViewer
import javax.swing.JSplitPane; //导入方法依赖的package包/类
public AssociationRuleTableViewer(AssociationRules rules) {
if (rules != null && rules.getNumberOfRules() > 0) {
this.model = new AssociationRuleTableModel(rules);
setLayout(new BorderLayout());
JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
splitPane.setBorder(null);
// conclusion list
AssociationRuleFilter filter = new AssociationRuleFilter(rules);
filter.addAssociationRuleFilterListener(this);
filter.setBorder(BorderFactory.createEmptyBorder(10, 10, 0, 5));
splitPane.add(filter, 0);
// main panel
{
JPanel mainPanel = new JPanel();
mainPanel.setOpaque(true);
mainPanel.setBackground(Colors.WHITE);
GridBagLayout layout = new GridBagLayout();
mainPanel.setLayout(layout);
GridBagConstraints c = new GridBagConstraints();
c.fill = GridBagConstraints.BOTH;
c.weightx = 1;
c.weighty = 1;
c.gridwidth = GridBagConstraints.REMAINDER;
c.insets = new Insets(15, 10, 10, 10);
table.setModel(model);
table.setRowHeight(PropertyPanel.VALUE_CELL_EDITOR_HEIGHT);
table.setRowHighlighting(true);
JScrollPane tablePane = new ExtendedJScrollPane(table);
tablePane.setBorder(null);
tablePane.setBackground(Colors.WHITE);
tablePane.getViewport().setBackground(Colors.WHITE);
layout.setConstraints(tablePane, c);
mainPanel.add(tablePane);
setColumnSizes();
splitPane.add(mainPanel, 1);
}
filter.triggerFilter();
add(splitPane, BorderLayout.CENTER);
} else {
add(ResultDisplayTools.createErrorComponent("No rules found"), BorderLayout.CENTER);
}
}
示例15: initComponents
import javax.swing.JSplitPane; //导入方法依赖的package包/类
private void initComponents() {
setLayout(new BorderLayout());
String modeName = stationData.getTransitionModeName(stationKey, 0);
firingBorder = new TitledBorder(new EtchedBorder(), "Firing Outcome for " + modeName);
firingTable = new FiringOutcomeTable();
firingPane = new JScrollPane(firingTable);
firingPane.setBorder(firingBorder);
firingPane.setMinimumSize(new Dimension(300, 240));
leftPanel = new WarningScrollTable(firingPane, WARNING_CLASS_OUTGOING_ROUTING);
leftPanel.addCheckVector(stationOutKeys);
leftPanel.addCheckVector(classKeys);
addModeButton = new JButton("Add Mode");
addModeButton.setMinimumSize(DIM_BUTTON_M);
modeTable = new ModeTable();
JPanel modePanel = new JPanel(new BorderLayout(5, 5));
modePanel.setBorder(new TitledBorder(new EtchedBorder(), "Modes"));
modePanel.setMinimumSize(new Dimension(200, 120));
modePanel.add(addModeButton, BorderLayout.NORTH);
modePanel.add(new JScrollPane(modeTable), BorderLayout.CENTER);
noticeText = new JTextArea("");
noticeText.setOpaque(false);
noticeText.setEditable(false);
noticeText.setLineWrap(true);
noticeText.setWrapStyleWord(true);
JScrollPane noticePane = new JScrollPane(noticeText);
noticePane.setBorder(new TitledBorder(new EtchedBorder(), "Notice"));
noticePane.setMinimumSize(new Dimension(200, 120));
JSplitPane rightPanel = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
rightPanel.setBorder(new EmptyBorder(0, 0, 0, 0));
rightPanel.setDividerSize(4);
rightPanel.setResizeWeight(1.0);
rightPanel.setLeftComponent(modePanel);
rightPanel.setRightComponent(noticePane);
JSplitPane mainPanel = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
mainPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
mainPanel.setDividerSize(4);
mainPanel.setResizeWeight(1.0);
mainPanel.setLeftComponent(leftPanel);
mainPanel.setRightComponent(rightPanel);
add(mainPanel);
}