Java Code Examples for org.jdesktop.swingx.JXTaskPaneContainer#setBackgroundPainter()

The following examples show how to use org.jdesktop.swingx.JXTaskPaneContainer#setBackgroundPainter() . 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 File: ToolsInternalFrame.java    From chipster with 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 2
Source File: ToolsInternalFrame.java    From chipster with 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);
	}