當前位置: 首頁>>代碼示例>>Java>>正文


Java JSplitPane.setBorder方法代碼示例

本文整理匯總了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;
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:24,代碼來源:OptionsAction.java

示例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);
}
 
開發者ID:max6cn,項目名稱:jmt,代碼行數:17,代碼來源:JoinSectionPanel.java

示例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);
}
 
開發者ID:max6cn,項目名稱:jmt,代碼行數:17,代碼來源:SemaphoreSectionPanel.java

示例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);
}
 
開發者ID:max6cn,項目名稱:jmt,代碼行數:17,代碼來源:RoutingSectionPanel.java

示例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);
}
 
開發者ID:HOMlab,項目名稱:QN-ACTR-Release,代碼行數:18,代碼來源:RoutingSectionPanel.java

示例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;
}
 
開發者ID:meteoorkip,項目名稱:JavaGraph,代碼行數:16,代碼來源:StateDisplay.java

示例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;
}
 
開發者ID:meteoorkip,項目名稱:JavaGraph,代碼行數:21,代碼來源:Simulator.java

示例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$
	}
}
 
開發者ID:equella,項目名稱:Equella,代碼行數:22,代碼來源:AppletGuiUtils.java

示例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;
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:30,代碼來源:PSheet.java

示例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);
    }
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:16,代碼來源:ClassesControllerUI.java

示例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);
    }
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:16,代碼來源:OQLControllerUI.java

示例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;
}
 
開發者ID:meteoorkip,項目名稱:JavaGraph,代碼行數:14,代碼來源:ResourceDisplay.java

示例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);
}
 
開發者ID:polemonium,項目名稱:SE2Project,代碼行數:32,代碼來源:AusleiheUI.java

示例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);
	}
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:49,代碼來源:AssociationRuleTableViewer.java

示例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);
}
 
開發者ID:max6cn,項目名稱:jmt,代碼行數:49,代碼來源:FiringSectionPanel.java


注:本文中的javax.swing.JSplitPane.setBorder方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。