Java

Creating a status bar In Java

Java does not have a Status Bar class in Swing. You need to create your own status bar. The following class creates a trouble-free status bar using JLabel. You can improve it based on your requirements: Code: public class StatusBar extends JLabel { /** Creates a new instance of StatusBar */ public StatusBar() { super(); super.setPreferredSize(new Dimension(150, 35)); setMessage("hi"); } public void setMessage(String message) { setText(" "+message); } } You can use this...

How to “flush your Java”

The term “flush your Java” essentially means to clear your cache in your Java or it is like deleting your history on your web browser. 1) Go to Start and then Control Panel. 2) Double click on the Java icon. This will open the Java options menu. 3) Locate the Temporary Internet files section and click on the “delete files.” This will bring up another window and just leave all three options check marked and click on “ok.” This will “flush your Java” and next time you...