Java Code Examples for org.jdesktop.swingx.JXTaskPaneContainer

The following examples show how to use org.jdesktop.swingx.JXTaskPaneContainer. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: dsworkbench   Source File: GenericTestPanel.java    License: Apache License 2.0 5 votes vote down vote up
public void setupTaskPane(JComponent... pTaskPane) {
    taskContainer = new JXTaskPaneContainer();
    for (JComponent aPTaskPane : pTaskPane) {
        taskContainer.add(aPTaskPane);
    }
    menuPanel.remove(jXTaskPaneContainer1);
    JScrollPane s = new JScrollPane(taskContainer);
    s.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
    menuPanel.add(s, BorderLayout.CENTER);
    taskContainer.setBackground(getBackground());
}
 
Example 2
Source Project: dsworkbench   Source File: GenericTestPanel.java    License: Apache License 2.0 5 votes vote down vote up
/** 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")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    menuPanel = new org.jdesktop.swingx.JXCollapsiblePane();
    jXTaskPaneContainer1 = new org.jdesktop.swingx.JXTaskPaneContainer();
    centerPanel = new org.jdesktop.swingx.JXPanel();
    menuCollapsePanel = new org.jdesktop.swingx.JXPanel();

    setPreferredSize(new java.awt.Dimension(190, 100));
    setLayout(new java.awt.BorderLayout());

    menuPanel.setAnimated(false);
    menuPanel.setDirection(org.jdesktop.swingx.JXCollapsiblePane.Direction.RIGHT);
    menuPanel.setInheritAlpha(false);

    jXTaskPaneContainer1.setBackground(new java.awt.Color(240, 240, 240));
    jXTaskPaneContainer1.setMinimumSize(new java.awt.Dimension(170, 10));
    jXTaskPaneContainer1.setPreferredSize(new java.awt.Dimension(170, 10));
    menuPanel.add(jXTaskPaneContainer1, java.awt.BorderLayout.CENTER);

    add(menuPanel, java.awt.BorderLayout.EAST);

    centerPanel.setPreferredSize(new java.awt.Dimension(20, 20));
    centerPanel.setLayout(new java.awt.BorderLayout());

    menuCollapsePanel.setBackground(new java.awt.Color(204, 204, 204));
    menuCollapsePanel.setPreferredSize(new java.awt.Dimension(20, 473));
    menuCollapsePanel.setLayout(new java.awt.BorderLayout());
    centerPanel.add(menuCollapsePanel, java.awt.BorderLayout.EAST);

    add(centerPanel, java.awt.BorderLayout.CENTER);
}
 
Example 3
protected Component createContentPane() {
  taskPane = new JXTaskPane();
  taskPane.setSpecial( true );
  taskPane.setCollapsed( false );
  taskPane.setTitle( Messages.getString( "StyleDefinitionEditorDialog.TaskTitle" ) );
  taskPane.add( new AddStyleRuleAction( editorContext ) );

  taskPaneContainer = new JXTaskPaneContainer();
  taskPaneContainer.add( taskPane );
  return new JScrollPane( taskPaneContainer );
}
 
Example 4
Source Project: chipster   Source File: ToolsInternalFrame.java    License: MIT License 5 votes vote down vote up
/**
 * Initializes the internal frame for the first step. Creates necessery 
 * components and sets them to frame.
 *
 */
public void initializeFirstStep(){		
	firstStepOptionPanel = new JXTaskPaneContainer();
	firstStepOptionPanel.add(this.createDelimSelectorPanel());
	firstStepOptionPanel.add(this.createDecimalSeparatorPanel());
	firstStepOptionPanel.setBackgroundPainter(new MattePainter(Color.white));
	JScrollPane scroll = new JScrollPane(firstStepOptionPanel);
	scroll.setBorder(BorderFactory.createEmptyBorder());
	this.setContent(scroll);
}
 
Example 5
Source Project: chipster   Source File: ToolsInternalFrame.java    License: MIT License 5 votes vote down vote up
/**
	 * Initializes the internal frame for the second step. Creates necesserly 
	 * components and sets them to frame.
	 *
	 */
	public void initializeSecondStep(){
		secondStepOptionPanel = new JXTaskPaneContainer();

//		secondStepOptionPanel.add(this.getDataTypePanel());
		secondStepOptionPanel.add(this.getChipCountPanel());		
		secondStepOptionPanel.add(this.createGuessTheRestPanel());		
		secondStepOptionPanel.add(this.createDataTrimmingPanel());
		secondStepOptionPanel.setBackgroundPainter(new MattePainter(Color.white));
		JScrollPane scroll = new JScrollPane(secondStepOptionPanel);
		scroll.setBorder(BorderFactory.createEmptyBorder());
		this.setContent(scroll);
	}
 
Example 6
Source Project: nordpos   Source File: JPrincipalApp.java    License: GNU General Public License v3.0 4 votes vote down vote up
private ScriptMenu() {
    taskPane = new JXTaskPaneContainer();
    taskPane.applyComponentOrientation(getComponentOrientation());
}
 
Example 7
Source Project: nordpos   Source File: JPrincipalApp.java    License: GNU General Public License v3.0 4 votes vote down vote up
public JXTaskPaneContainer getTaskPane() {
    return taskPane;
}