Morgan
SCJP (1.4), SCJD (1.4), SCWCD (1.3), SCBCD (1.3)
Jacques<br />*******<br />MCP, SCJP, SCJD, SCWCD
At a minimum, you should have a menu bar, mnemonics, default GUI controls, logical tab ordering, and frame resizing.
Jacques<br />*******<br />MCP, SCJP, SCJD, SCWCD
Originally posted by Eugene Kononov:
At a minimum, you should have a menu bar, mnemonics, default GUI controls, logical tab ordering, and frame resizing. Fortunately, you don't have to go much beyond the minimum to pass the certification. But neglecting the minimum can easily be viewed as contempt by your grader, and there is no reason for you to risk it.
Morgan
SCJP (1.4), SCJD (1.4), SCWCD (1.3), SCBCD (1.3)
Originally posted by morgan bath:
Ive been slashing buttons and options from my gui because after a few runs through I realised id had added things basically to try and prove I know swing. After a few hours Im left with a very very bare GUI, and yet its what I would want to use myself. My worry is it looks like I have been lazy.
Basically I have A JTable at the top of the window and underneath it is the search panel. And thats it! The search panel is two text fields, a search button and a clear button.
I totally stripped the Booking panel out after I ran the client and my first instinct was to double click a row to alter it. Now The user double clicks a record and if its free he gets a JOptionPane asking him for a client ID, or if its already booked he gets a "Customer xxxx has this contractor reserved. Do you wish to delete this reservation" type of thing.
I used the default JOptionPanes rather than design my own wizzy looking ones to start with. But to be honest whilst they are plain they seem oddly appropriate.
Anyone submit a really bare GUI and get good marks for it? For that matter has anyone submitted a solution with no buttons for booking or unbooking? That bit especially makes me nervous, but the gui looks ten times better without them, and double clicking is so instinctive for most users I think.
ljk
Regards, George
SCJP, SCJD, SCWCD, SCBCD
At a minimum, you should have a menu bar, mnemonics, default GUI controls, logical tab ordering, and frame resizing.
At a minimum, you should have a menu bar, mnemonics, default GUI controls, logical tab ordering, and frame resizing.
kktec<br />SCJP, SCWCD, SCJD<br />"What we observe is not nature itself, but nature exposed to our method of questioning." - Werner Heisenberg
Morgan
SCJP (1.4), SCJD (1.4), SCWCD (1.3), SCBCD (1.3)
I believe it will pay to play safely here. I remember a rancher reporting a certification failure accompanied by the grader explanation that the app didn't have a menu bar.
kktec<br />SCJP, SCWCD, SCJD<br />"What we observe is not nature itself, but nature exposed to our method of questioning." - Werner Heisenberg
Originally posted by Ken Krebs:
Eugene,
The double-clicking thing is a little questionable in that the user may be forced to read the instructions. A book button to bring up the dialog may be more natural.
Morgan
SCJP (1.4), SCJD (1.4), SCWCD (1.3), SCBCD (1.3)
Morgan
SCJP (1.4), SCJD (1.4), SCWCD (1.3), SCBCD (1.3)
On the resize issue is it acceptable to simply not allow the user to make the width smaller than a certain minimum. It makes little sense to have a jtable smaller than about 350 pixels anyway.
Originally posted by Ulrich Heeger:
Do you think it's acceptable to just disable the resizability of the GUI with setResizable(false)? The table itself of course remains resizable.
Comments?
Regards, George
SCJP, SCJD, SCWCD, SCBCD
Regards, George
SCJP, SCJD, SCWCD, SCBCD
kktec<br />SCJP, SCWCD, SCJD<br />"What we observe is not nature itself, but nature exposed to our method of questioning." - Werner Heisenberg
I have only non-editable ComboBoxes for the search-function. I mean, the User can choose the exact value of location and hotel name or "any", but can't do any special search about for example "s" within a TextField.
Do you think, that's enough?
My interface had 2 JComboBoxes (with name & location JLabels), 2 JCheckBoxes (for exact & case-sensitive), 2 JButtons (book & exit), 1 JTextField (with Jlabel) for booking, and of course, 1 JTable.
Jacques<br />*******<br />MCP, SCJP, SCJD, SCWCD
Jacques<br />*******<br />MCP, SCJP, SCJD, SCWCD
Jacques<br />*******<br />MCP, SCJP, SCJD, SCWCD
Jacques<br />*******<br />MCP, SCJP, SCJD, SCWCD
Morgan
SCJP (1.4), SCJD (1.4), SCWCD (1.3), SCBCD (1.3)
Originally posted by Morgan Bath:
Why the EXACT checkbox? Am I the only lucky one who got a specific description stating that the gui should supply an exact match?
The user interface for this assignment must satisfy the following criteria:
It must be composed exclusively with components from the Java Foundation Classes (Swing components).
It must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values specified by the user.
It must present search results in a JTable.
It must allow the user to book a selected record, updating the database file accordingly.
Regards, George
SCJP, SCJD, SCWCD, SCBCD
Originally posted by George Marinkovich:
Hi Morgan,
If one can resist the temptation of adding these extras maybe one can complete the project in 20 hours to 2 weeks.
Hope this helps,
George
Morgan
SCJP (1.4), SCJD (1.4), SCWCD (1.3), SCBCD (1.3)
Originally posted by Morgan Bath:
Aparantly NIO isnt allowed and I may have to rip the guts out of my database!
Regards, George
SCJP, SCJD, SCWCD, SCBCD
I think you should make your ComboBox editable.
So the people (including me, I'm guilty) providing the ability to do wildcard matching are doing something extra that is not required and is beyond the scope of the project.
Originally posted by Ulrich Heeger:
So I suppose that I don't have to make my ComboBoxes editable.
Comments?
Regards, George
SCJP, SCJD, SCWCD, SCBCD
Why the EXACT checkbox?
Also, your advice pointed me to the necessarity to provide also a refresh for the comboboxes.
when your children are suffering from your punishment, tell your them it will help them write good poetry when they are older. Like this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|