I want to create an applet with first form have multiple button, each button takes me to another form to perform a specific task.
How to do that using a Java applet?
I want to create an applet with first form have multiple button, each button takes me to another form to perform a specific task.
How to do that using a Java applet?
There are lots of different ways to do this. The details depend on what exact effect and feel you are after. For example:
CardLayout
in the CENTER
controlled by a JList
(the menu) in the LINE_START
of a BorderLayout
.JTabbedPane
, though that doesn't quite fit the use-case here.JDialog
or a JOptionPane
. This encourages the user to concentrate on one 'transaction' (e.g. new|edit|delete) at a time.