I seek some swing example/demo, which would show me data from simple database table in JTable interconnected with editable form (preferably on the same panel). Form should browse rows by First/Prev/Next/Last buttons. Form or (and) JTable should be able to insert a new record and delete one.
I found many JTable examples, but I didn't found any with form.
I still dont really understand what you mean by Form. From what I gathered of your requirement, what you require is
1) Paginated table
2) Data to be loaded from the DB
3) Currently displayed data should be editable
4) New data creation.
That helps clarify the requirement.
So what have you got so far and where are you stuck?
Jiri Nejedly
Ranch Hand
Joined: Oct 22, 2002
Posts: 75
posted
0
I am able to code all what I need. But I feel, that I dont't need to define every button's event etc... That I can save some time and work, that some basic behaviour can be generated automatically by few clicks in my development environment (JDeveloper).
Some years ago we did something similar with Struts/ADF. The difference was, that web application was made and table and form were separated on their own respecive pages.
So I seek some tutorial/demo/example which shows me, how to generate simple swing aplication from database table.
Hauke Ingmar Schmidt
Rancher
Joined: Nov 18, 2008
Posts: 371
posted
0
ADF/JDeveloper can be used with Swing: http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/ADF_Swing_Overview/SwingOverview.htm . The other GUI builders (Windowbuilder, Netbeans) do support bindings so the work is not that hard, you don't need to write event listeners by hand (at least for the edit fields) - in fact, I think with the customization needed nearly every time it easier to build this from scratch.
Asking for JTable is a little too low level in your case; JTable is only the base component for the table part. If you are searching, try "swing master detail view".
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.