Java Code Examples for java.awt.BorderLayout.WEST

The following are Jave code examples for showing how to use WEST of the java.awt.BorderLayout class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: Logisim   File: Frame.java   Source Code and License Vote up 5 votes
private void placeToolbar() {
	String loc = AppPreferences.TOOLBAR_PLACEMENT.get();
	Container contents = getContentPane();
	contents.remove(toolbar);
	mainPanelSuper.remove(toolbar);
	if (AppPreferences.TOOLBAR_HIDDEN.equals(loc)) {
		; // don't place value anywhere
	} else if (AppPreferences.TOOLBAR_DOWN_MIDDLE.equals(loc)) {
		toolbar.setOrientation(Toolbar.VERTICAL);
		mainPanelSuper.add(toolbar, BorderLayout.WEST);
	} else { // it is a BorderLayout constant
		Object value = BorderLayout.NORTH;
		for (Direction dir : Direction.cardinals) {
			if (dir.toString().equals(loc)) {
				if (dir == Direction.EAST)
					value = BorderLayout.EAST;
				else if (dir == Direction.SOUTH)
					value = BorderLayout.SOUTH;
				else if (dir == Direction.WEST)
					value = BorderLayout.WEST;
				else
					value = BorderLayout.NORTH;
			}
		}

		contents.add(toolbar, value);
		boolean vertical = value == BorderLayout.WEST || value == BorderLayout.EAST;
		toolbar.setOrientation(vertical ? Toolbar.VERTICAL : Toolbar.HORIZONTAL);
	}
	contents.validate();
}
 
Example 2
Project: ramus   File: QualifierView.java   Source Code and License Vote up 4 votes
@Override
public String getDefaultPosition() {
    return BorderLayout.WEST;
}
 
Example 3
Project: ramus   File: BranchView.java   Source Code and License Vote up 4 votes
@Override
public String getDefaultPosition() {
    return BorderLayout.WEST;
}
 
Example 4
Project: ramus   File: ReportsView.java   Source Code and License Vote up 4 votes
@Override
public String getDefaultPosition() {
    return BorderLayout.WEST;
}
 
Example 5
Project: ramus   File: AbstractUniqueView.java   Source Code and License Vote up 4 votes
@Override
public String getDefaultPosition() {
    return BorderLayout.WEST;
}
 
Example 6
Project: ramus   File: RolesView.java   Source Code and License Vote up 4 votes
@Override
public String getDefaultPosition() {
    return BorderLayout.WEST;
}