Java Virtal Machine.net

[ News ] rss

February 01, 2011

Mark Wielaard: New GPG key. Finally created a new GPG key using gnupg. The old one was a DSA/1024 bits one and 8 years old. The new one is a RSA/2048 bits one. I will use the new one in the future to sign any release tarballs I might create. pub 2048R/57816A6A 2011-01-29 Key f...

More »

February 01, 2011

Andrew Hughes: [SECURITY] IcedTea6 1.7.8, 1.8.5, 1.9.5 Released!. We are pleased to announce a new set of security releases, IcedTea6 1.7.8, IcedTea6 1.8.5 and IcedTea6 1.9.5. This update contains the following security updates: The IcedTea project provides a harness to build the source code from OpenJDK6 u...

More »

December/2024
SunMonTueWedThuFriSat
1234567
891011121314
15161718192021
2223 2425262728
293031    

[ Archives News
for 'Java Technology' ]

home > news > java technology > "transparent" panel - mixing heavyweight and lightweight components

"Transparent" Panel - Mixing Heavyweight and Lightweight Components

Marina Kamahele provides instruction on overlaying lightweight Swing widgets on top of heavyweight AWT components using a TransparentPanel. "Transparent" Panel Mon, 2009-11-02 Marina Kamahele This Java Tech Column provides instruction on overlaying lightweight Swing widgets on top of heavyweight AWT components using a TransparentPanel. When overlaying lightweight Swing widgets on top of heavyweight AWT components, it is convenient to group the Swing widgets on a transparent (non-opaque) JPanel so that one can use Swing layout managers and/or Swing utilities on a group of related Swing widgets. For example, all widgets added to the transparent JPanel can be made visible or invisible simultaneously with one setVisible() call on the JPanel. Unfortunately, a lightweight JPanel overlaid on top of a heavyweight AWT component cannot be transparent. To overcome this problem, one can implement a TransparentPanel as shown below. public class TransparentPanel extends JPanel { /** * Default constructor. Sets the layout manager to JPanel's * default layout manager: FlowLayout. */ public ...


Date: November, 02 2009
Url: http://www.java.net/article/2009/11/02/transparent-panel-mixing-heavyweight-and-lightweight-components


Others News

©2002-2019Java-Virtual-Machine.net website designing software | static website generator | Mobirise Templates | bootstrap navbar template | css menu