Book GUI - URLyBird
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
What do you have done about book GUI ? Could you ranchers give me some sugestions ?
I've thought in put one button with label "Book" below room list. The user must select one record in the jtable and click in this button. So, system will open another modal GUI where user must type customer onwer number.
Someone did diferent ? or have another approach ?
Regards.
Fernando Franzini - Java Blog
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
SCJP, SCJD
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I hope I answered it, though!SCJP, SCJD
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Let me see if I understood correctly:
In your jtable gui, you have the first jpanel, with titledborder showing "Seach Stuff". Inside it, you put finders widget.
Below this, you have your JTable with scroolpane.
Below jtable, you have another jpanel with titledborder showing "Book stuff" whith one input to type owner number and button to call book operation.
Regard.
Fernando Franzini - Java Blog
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
SCJP, SCJD
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
and thanks for help. But....I feel that your "Reserve Panel" maybe.....could be below Jtable....not next to.
I dont know but, following user's workflow....first he should select one line that indicating what record and after put CSR and click in the reserve button.
Why did you do in this way ?
Fernando Franzini - Java Blog
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
SCJP, SCJD
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
my GUI is more or less similar to Fernando one. I have a borderlayout with three parts, NORTH, CENTER and SOUTH.
In the north part I have my search panel including two textfields and next to it a search button, of course on the right side. So nothing else there. I try to keep similar things together.
In the center part I have my jtable and in the south part I have my book button (If new function will be added like delete or update I can put them together with the book button.)
If I want to book a room, I have to select a row. If the selected room is bookable my book button is enabled (like my book menu item). After pressing the book button a modal jdialog comes up asking for the customer id. Again, if the update functionality is implemented I would bring a JDialog (or similar) up.
I tried to keep it very easy. Nothing special. I guess the user just want to search something by typing words not reading some manual.
Last, to exit my application, I have a menu with File (->Exit), Edit(->Book, -> Search) and Help (->Help, ->About) like every application.
cheers
Bob
SCJP 6 - SCJD - SCWCD 5 - SCBCD 5
JavaEnterpriseEditionFaq - TomcatFaq
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Fernando Franzini wrote:Hi Bob
Thanks for the tips![]()
And what did you do when user click in "about" menu ?
Well, you got me
I didn't implement it right now. I sort of feel (you know stomach feeling) that an application needs an about menu item. If I leave it there, a window would pop up with information about the application (version number, year etc.) But maybe that is too much and against the KISS principle. On the other side nearly every application has this menu item and it wouldn't be that much work. So still open for discussion in my brain.
cheers
Bob
SCJP 6 - SCJD - SCWCD 5 - SCBCD 5
JavaEnterpriseEditionFaq - TomcatFaq
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Fernando Franzini wrote:I've thought the same about it.....
![]()
KISS principle ? I never heard about...Would you mind to explain ?
KISS = Keep it simple stupid.
I think that is self explaining
cheers
Bob
SCJP 6 - SCJD - SCWCD 5 - SCBCD 5
JavaEnterpriseEditionFaq - TomcatFaq
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
SCJP, SCJD
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I've spending my brain on it and I found 2 possibilities:
1. Use setToolTipText(String) metod for all widgets.
2. Put some bar at GUI botton and when user pass mouse over widget, the system show some tip text inside this bar.
Any other ideias or sugestion ?
Regards.
Fernando Franzini - Java Blog
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I use setTooltipText for my widgets.
SCJP, SCJD
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Anne Crace wrote:I use setTooltipText for my widgets.
That's what i did too, just keep it easy and simple (and nothing is easier than that, beside not using tool-tips of course
) Kind regards,
Roel
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
From some post don't really whose gui it was, if you are trying to repaint the jpanel with say the book panel ... I personally think it will be much complicated for SCJD. A modal dialog popup would just do fine. But if you managed to do the repaint dynamically for book then do the same thing for search and whatever other functions/buttons you have to make the whole gui consistent.
K. Tsang CEng MBCS PMP PMI-ACP OCMJEA OCPJP
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
SCJP, SCJD
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Fernando Franzini wrote:What do you guys set in main GUI tittle ?
I used "URLyBird x.y.z Client Application" and "URLyBird x.y.z Server Application". Don't spend to much time thinking about this one ;)
Kind regards,
Roel
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Don't spend to much time thinking about this one ;)
I agree!!
SCJP, SCJD
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
K. Tsang CEng MBCS PMP PMI-ACP OCMJEA OCPJP
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
K. Tsang wrote:No title for server because no GUI.
I agree with you that for a server application a GUI might be a ad idea. But:
So how do you specify the port and the location of the database file when running in server mode?
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
K. Tsang CEng MBCS PMP PMI-ACP OCMJEA OCPJP
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
If I want to book a room, I have to select a row. If the selected room is bookable my book button is enabled (like my book menu item). After pressing the book button a modal jdialog comes up asking for the customer id. Again, if the update functionality is implemented I would bring a JDialog (or similar) up
Hi Bob Wheeler
. Would you mind to answer some questions ?
1. Which jtable event did you use to enable book button ?
2. About your jdialog...did you put jmenu options inside it or just textfield and buttons to user type owner number ?
Regards
Fernando Franzini - Java Blog
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I'm not Bob Wheeler
, but I can tell you how I did both things. To make my book-button enable/disable depending on the selected room in the JTable, I used following code:
My room detail dialog contained only text fields and 2 radio buttons (for smoke property). Most of these text fields and radio buttons were disabled when user wanted to book room, because only the customer id matters in this case.
Kind regards,
Roel
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
sorry for the late reply.
Fernando Franzini wrote:
1. Which jtable event did you use to enable book button ?
Like Roes said, I used a ListSelectionListener. There I checked if the owner field is empty (disable book button/menu item) or not (enable book button/menu item).
Fernando Franzini wrote:
2. About your jdialog...did you put jmenu options inside it or just textfield and buttons to user type owner number ?
Regards
I don't use menu items there. I have some labels and textfields about the room properties (name , location, etc.). In a separate line I ask for the customer ID in bold and bigger font.
I could reuse with small changes this dialog for the create or delete operations.
cheers
Bob
SCJP 6 - SCJD - SCWCD 5 - SCBCD 5
JavaEnterpriseEditionFaq - TomcatFaq
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Continuing this thread....another questions (Bob, Roel and anoother ranchers.....
) Did you update the jtable after book room ? I mean...the user need to see that room in the grid have changed !!!....the customer id must appear there !
Wich approach did you guys used or sugest ?
Regard.
Fernando Franzini - Java Blog
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I overrode AbstractTableModel for my custom table model. You need to override the method for starters. I hardcoded the column index because you are only required to write to one field for this version (at least as far as the GUI goes. I also called with the same row for first and last .
SCJP, SCJD
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Don't know if you have Andrew's SCJD book, but I followed a similar approach as used in the book: when a room is booked, I search again for the records (reusing the criteria the user entered before making the booking).
For me the advantages beat the disadvantages, so I followed that approach and I think the accessor liked it
Kind regards,
Roel
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Thanks again...your explanations are always clear
My question is "how do it"
Cause my ListWindow open an jdialog (where user type customer id and room is updated)...and how this jdialog will update jtable in another Jframe ? invoke 'call back' method passing 'this' as reference ?
How did you do ?...or do you have another sugestions ?
Regard.
Fernando Franzini - Java Blog
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
This is how it works (in english/pseudo-code of course). In my main window I have a method that has the following
To summarize: all this happens in my main window, so I always have access to jtable. And my room details dialog has a method which will return the room-object with the values entered by the user.
Hope you got it!
Kind regards,
Roel
| Get off me! Here, read this tiny ad: Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing |








lollllll
...the user really need it ! 