Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swing Custom GUI Component

I need to create a custom GUI Component about same like shown in the following image. it has some buttons and labels on this.

How can i create like this

Custom java Swing image like this

like image 442
Asghar Avatar asked Aug 08 '11 11:08

Asghar


People also ask

Is Swing good for GUI?

Swing in Java is a lightweight GUI toolkit which has a wide variety of widgets for building optimized window based applications. It is a part of the JFC( Java Foundation Classes). It is build on top of the AWT API and entirely written in java. It is platform independent unlike AWT and has lightweight components.

Is JOptionPane a GUI?

JOptionPane is a nice way to throw together a few dialog boxes and get a GUI, but it doesn't give us the flexibility we really want. But with power and flexibility come complexity. The basic class we start with is a JFrame. A JFrame is a top level window with a title and a border.

What is Swing GUI components in Java JFC features?

Swing GUI Components. Includes everything from buttons to split panes to tables. Many components are capable of sorting, printing, and drag and drop, to name a few of the supported features. Pluggable Look-and-Feel Support. The look and feel of Swing applications is pluggable, allowing a choice of look and feel.


1 Answers

You could use a JWindow, with an Image for the background picture. For the buttons, use a JButton with an ImageIcon.

like image 143
S.L. Barth Avatar answered Nov 15 '22 00:11

S.L. Barth