Tag: java swing

Java Essential Tips: Display JFrame in Center of the Screen

Target Audience: Java Beginners, Java Swing Developers What should you know already? Basics of Java Swing The beginners of Java might query “How do I display JFrame in center of screen?” on Google quite frequently. JFrame is the top level container in Swing API to show your GUI application. Commonly, there are 2 methods available …

Continue reading

Permanent link to this article: https://blog.openshell.in/2011/05/java-essential-tip-display-jframe-in-center-of-the-screen/

Java Essestial Tips: ArrayIndexOutOfBoundsException when Delete Elements From JList

Target Audience: Java Beginners, Java UI Developers, Swing Developers What should you know already? Java Swing API When you work around Java Swing UI components, especially JList, JTable or JComboBox, you should give your attention more than the attention you are giving for other components. Because these components are not just a single control, it …

Continue reading

Permanent link to this article: https://blog.openshell.in/2011/05/java-essestial-tips-arrayindexoutofboundsexception-when-delete-elements-from-jlist/

JLayer component

The JLayer class is a flexible and powerful decorator for Swing components, which enables you to implement various advanced painting effects as well as receive notifications of all AWTEvents generated within its borders. It enables you to draw on components and respond to component events without modifying the underlying component directly. JLayer is a good solution if …

Continue reading

Permanent link to this article: https://blog.openshell.in/2011/04/jlayer-component/