Small sample application:
import javax.swing.JFrame; import javax.swing.JLabel;
/** * @author Johannes Schneider (<a href="mailto:<email address hidden>"><email address hidden></a>) */ public class Tester { public static void main( String[] args ) { JFrame frame = new JFrame("da Title"); frame.setSize( 600, 100 ); frame.setVisible( true ); frame.setLocationRelativeTo( null );
JLabel daLabel = new JLabel(); daLabel.setText( daLabel.getFont().toString() ); frame.getContentPane().add( daLabel ); } }
Small sample application:
import javax.swing.JFrame;
import javax.swing.JLabel;
/** setVisible( true ); setLocationRela tiveTo( null );
* @author Johannes Schneider (<a href="mailto:<email address hidden>"><email address hidden></a>)
*/
public class Tester {
public static void main( String[] args ) {
JFrame frame = new JFrame("da Title");
frame.setSize( 600, 100 );
frame.
frame.
JLabel daLabel = new JLabel(); setText( daLabel. getFont( ).toString( ) ); getContentPane( ).add( daLabel );
daLabel.
frame.
}
}