Java Code Examples for javax.swing.JFrame#getBounds()

The following examples show how to use javax.swing.JFrame#getBounds() . 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
public void componentShown( ComponentEvent cev )
{
	JFrame jf = (JFrame) cev.getComponent( );
	Rectangle r = jf.getBounds( );
	setLocation( r.x, r.y + r.height );
	setSize( r.width, 50 );
	setVisible( true );
}
 
Example 2
public void componentShown( ComponentEvent cev )
{
	JFrame jf = (JFrame) cev.getComponent( );
	Rectangle r = jf.getBounds( );
	setLocation( r.x, r.y + r.height );
	setSize( r.width, 50 );
	setVisible( true );
}
 
Example 3
public void componentResized( ComponentEvent cev )
{
	JFrame jf = (JFrame) cev.getComponent( );
	Rectangle r = jf.getBounds( );
	setLocation( r.x, r.y + r.height );
	setSize( r.width, 50 );
}
 
Example 4
public void componentResized( ComponentEvent cev )
{
	JFrame jf = (JFrame) cev.getComponent( );
	Rectangle r = jf.getBounds( );
	setLocation( r.x, r.y + r.height );
	setSize( r.width, 50 );
}
 
Example 5
public void componentResized( ComponentEvent cev )
{
	JFrame jf = (JFrame) cev.getComponent( );
	Rectangle r = jf.getBounds( );
	setLocation( r.x, r.y + r.height );
	setSize( r.width, 50 );
}
 
Example 6
public void componentResized( ComponentEvent cev )
{
	JFrame jf = (JFrame) cev.getComponent( );
	Rectangle r = jf.getBounds( );
	setLocation( r.x, r.y + r.height );
	setSize( r.width, 50 );
}
 
Example 7
Source Project: birt   File: DataChartsViewer.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void componentResized( ComponentEvent cev )
{
	JFrame jf = (JFrame) cev.getComponent( );
	Rectangle r = jf.getBounds( );
	setLocation( r.x, r.y + r.height );
	setSize( r.width, 50 );
}
 
Example 8
public void componentResized( ComponentEvent cev )
{
	JFrame jf = (JFrame) cev.getComponent( );
	Rectangle r = jf.getBounds( );
	setLocation( r.x, r.y + r.height );
	setSize( r.width, 50 );
}
 
Example 9
public void componentShown( ComponentEvent cev )
{
	JFrame jf = (JFrame) cev.getComponent( );
	Rectangle r = jf.getBounds( );
	setLocation( r.x, r.y + r.height );
	setSize( r.width, 50 );
	setVisible( true );
}
 
Example 10
public void componentShown( ComponentEvent cev )
{
	JFrame jf = (JFrame) cev.getComponent( );
	Rectangle r = jf.getBounds( );
	setLocation( r.x, r.y + r.height );
	setSize( r.width, 50 );
	setVisible( true );
}
 
Example 11
Source Project: birt   File: FormatChartsViewer.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void componentShown( ComponentEvent cev )
{
	JFrame jf = (JFrame) cev.getComponent( );
	Rectangle r = jf.getBounds( );
	setLocation( r.x, r.y + r.height );
	setSize( r.width, 50 );
	setVisible( true );
}
 
Example 12
Source Project: birt   File: Regression_119808.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void componentResized( ComponentEvent cev )
{
	JFrame jf = (JFrame) cev.getComponent( );
	Rectangle r = jf.getBounds( );
	setLocation( r.x, r.y + r.height );
	setSize( r.width, 50 );
}
 
Example 13
public void componentShown( ComponentEvent cev )
{
	JFrame jf = (JFrame) cev.getComponent( );
	Rectangle r = jf.getBounds( );
	setLocation( r.x, r.y + r.height );
	setSize( r.width, 50 );
	setVisible( true );
}
 
Example 14
public void componentMoved( ComponentEvent cev )
{
	JFrame jf = (JFrame) cev.getComponent( );
	Rectangle r = jf.getBounds( );
	setLocation( r.x, r.y + r.height );
	setSize( r.width, 50 );
}
 
Example 15
public void componentMoved( ComponentEvent cev )
{
	JFrame jf = (JFrame) cev.getComponent( );
	Rectangle r = jf.getBounds( );
	setLocation( r.x, r.y + r.height );
	setSize( r.width, 50 );
}
 
Example 16
public void componentShown( ComponentEvent cev )
{
	JFrame jf = (JFrame) cev.getComponent( );
	Rectangle r = jf.getBounds( );
	setLocation( r.x, r.y + r.height );
	setSize( r.width, 50 );
	setVisible( true );
}
 
Example 17
public void componentShown( ComponentEvent cev )
{
	JFrame jf = (JFrame) cev.getComponent( );
	Rectangle r = jf.getBounds( );
	setLocation( r.x, r.y + r.height );
	setSize( r.width, 50 );
	setVisible( true );
}
 
Example 18
public void componentShown( ComponentEvent cev )
{
	JFrame jf = (JFrame) cev.getComponent( );
	Rectangle r = jf.getBounds( );
	setLocation( r.x, r.y + r.height );
	setSize( r.width, 50 );
	setVisible( true );
}
 
Example 19
public void componentResized( ComponentEvent cev )
{
	JFrame jf = (JFrame) cev.getComponent( );
	Rectangle r = jf.getBounds( );
	setLocation( r.x, r.y + r.height );
	setSize( r.width, 50 );
}
 
Example 20
public void componentMoved( ComponentEvent cev )
{
	JFrame jf = (JFrame) cev.getComponent( );
	Rectangle r = jf.getBounds( );
	setLocation( r.x, r.y + r.height );
	setSize( r.width, 50 );
}