13 Apr 2008 @ 6:01 PM 
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 4 out of 5)
Loading ... Loading ...
779 views

This code below demonstrates how to set a tooltip for a JLabel, this can be done for JButtons and many other components aswell. To see the tooltip text you need to hover the black text with your mouse.

JAVA:
  1. JLabel status = new JLabel("This is a statusBar example");
  2. status.setToolTipText("This is a tooltip text");

Your Ad Here
Tags Tags: , ,
Categories: Java
Posted By: HappyFace
Last Edit: 24 Aug 2008 @ 06 34 PM

EmailPermalinkComments (0)
 13 Apr 2008 @ 1:15 PM 
1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 4.67 out of 5)
Loading ... Loading ...
1,645 views

This is an example how to create a statusbar in a JFrame using Java

First create a JLabel component like this:
JLabel status = new JLabel("This is a statusBar example");

And add the following code below in your program:
status.setPreferredSize(new Dimension(100, 16));
getContentPane().add(status, BorderLayout.SOUTH);

Your Ad Here
Tags Tags: , , , , , ,
Categories: Java
Posted By: HappyFace
Last Edit: 13 Apr 2008 @ 01 15 PM

EmailPermalinkComments (0)
\/ More Options ...
Change Theme...
  • Users » 888
  • Posts/Pages » 1,444
  • Comments » 506
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

Online Users



    No Child Pages.

Forum



    No Child Pages.