Forums Register Login

Status display

+Pie Number of slices to send: Send
Hi all,
I am implementing a GUI interface using swing. One of the requirements is to provide the status in the status bar.
For example, when the program is pinging all the IP addresses within the domain, the status bar should display something like "Pinging IP addresses...". Another example would be when opening a file, the status bar should display "Opening file..." etc.
Any example codes/help will be greatly appreciated.
Thanx for the help...0=)
------------------
0=),
Crystal
+Pie Number of slices to send: Send
Unless you are doing this in an applet, you aren't going to get text to show up in the 'status bar' of the application frame. However, you can basically do the same thing by just adding a Textfield at the bottom of the frame and sending messages to it instead of the status bar...
+Pie Number of slices to send: Send
Hi,
I do not quite understand. Do you mind to explain more specifically?
Thanx..
------------------
0=),
Crystal
+Pie Number of slices to send: Send
OK... here's how you would normally do it in an Applet ( or JApplet, since you said you were using Swing... ). You would just call showStatus() with the string you want to display. This only works because the showStatus() method is defined in Applet to display text in the status bar.



But, if you are not using an Applet derivitive, you do not have the showStatus() method... so you have to find a workaround... I proposed just adding a JTextField at the bottom of the screen to take the place of the status bar...



HTH,
-Nate
We can walk to school together. And we can both read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 3391 times.
Similar Threads
setting onmouseover javascript
NIC Card Problem
Display of file status in status bar
how to get ip address
hiding status bar
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:27:30.