Forums Register Login

how to create new screen instead of dialog for GUI

+Pie Number of slices to send: Send
Hi Everyone,

I have some quesiton about the GUI.

If the buttons "search", "book", "showall" are placed below the JTable (JTable show all records). When the "search" button is clicked, instead of popup a dialog or place "search" button in the same screen of JTable, is that possible to generate a screen which replace JTable and show the combo box to ask user to input the "location" or/and "name" and "submit", then show the result? I hate to popup dialogs for every clicks anyway.

Could anyone help me? I am looking forward to hearing from you ASAP. Thanks.
+Pie Number of slices to send: Send
You should be able to add and remove components dynamically without too much trouble (although your GUI sounds weird to me).
To remove components from your JPanel, just use getContentPane().remove(itemToRemove).
+Pie Number of slices to send: Send
Hallo,

You can use the CardLayout to change you display page.
But normaly you display it and then enable/disable the components.
Can you provide some more details (about the reasons, which component you remove/add.etc)

Regards M
[ July 24, 2006: Message edited by: Mihai Radulescu ]
I was her plaything! And so was this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 716 times.
Similar Threads
JTable
jtable
JTable
JTable
Jtable dialog box
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:42:46.