Thank you to those who unknowingly helped me to get focused on doing this project and to make it a learning experience. Following is my report card.
This report shows the total points that could have been awarded in each section and the actual number of points you were awarded. This is provided to give you per-section feedback on your strengths. The maximum possible # of points is 155; the minimum to pass is 124. General Considerations(maximum = 58): 56 Documentation(maximum = 20): 20 GUI(maximum = 24): 24 Server(maximum = 53): 49
Originally posted by Kalichar Rangantittu: Congratulations Sir. Great job! I was wondering if you could provide some tips on how you designed the gui as you scored perfect on that?
1. I have a base panel that extends JPanel. It includes implementation to track listeners. 2. I have a panel that extends the base panel and holds the JTable. It generates an actions for listeners whenever the user double clicks on a row. It has a setFilter method, which takes a criteriaFind-compatible string. Whenever this method is called, it requeries the model for data. My table model is an anonymous inner class extending DefaultTableModel. I override isCellEditable to return true. I override the CellRenderer for the seat column to be left justified. Of course, the whole thing goes in a JScrollPane, which I set the initial size large enough to display all column headings. 3. I have another panel that extends the base panel and displays a combo box for origin, destination, and a submit button. Clicking the submit button generates an action for listeners that the "filter" has changed. It also has a method getFilter() which builds the criteriaFind-compatible string. 4. I have a controller that listens for actions from both these panels. It also sets up a JFrame in which these two panels go. I also have a menu for bringing up the Reservation Dialog and an Exit option. Shortcut keys such as Alt-A to bring up the menu were used. That's about it. Nothing fancy, but I had all the appropriate stuff for doing everything with the mouse or keyboard, it all resizes properly on the screen, and I believe I made a good use of MVC. Oh yes, local vs. remote, the database location, codebase, etc. were all taken care of on the command line. [ January 29, 2002: Message edited by: Len White ]
posted 18 years ago
Originally posted by Mark Spritzler: Way To Go Len. What's next for you? Mark
I figure SCEA, then SCWCD. This is a great way to hone skills, isn't it?
I am actually going the other way doing the SCWCD then SCEA. I figure the SCWCD being an exam like SCJP with 59 questions only and no assignment would take me less time, and for now less money, then I will go for SCEA, and know I have lots of time to complete it. Good Luck, and we will meet again Mark
Originally posted by Shivaji Bhosale: What are questions asked for essay exam.
There were five, each one asking you to explain one of your choices. For example, did you extend or modify Data and why, explain your locking mechanism. If you do the assignment yourself, you'll be able to answer the questions.
Congratulation!!! I am a fresher of Java GUI, now I met a problem of GUI. Have you done some treatment for your window because user can change the size of it. My labels and combobox size will change together with the window, this is because I use gridbogLayout, I think all Java program using layout will meet this problem, but I have never seen some program's GUI as this. I only know the null layout can avoid it, but I am afraid of that this is not good because layout is a feature of Java. How can you reserve this problem? Or all the java program can act as this way because we use layout, is this OK? Thank you! [ January 30, 2002: Message edited by: AutinHorse ]
posted 18 years ago
Originally posted by AutinHorse: Congratulation!!! I am a fresher of Java GUI, now I met a problem of GUI. Have you done some treatment for your window because user can change the size of it.
I only used a GrigBagLayout for my Reservation dialog. I made extensive use of constraints to get the widgets to be positioned the way I wanted. The widgets themselves don't change size, only the spacing between them changes. I used a FlowLayout for my Filter panel so all the widgets to align across the top of the window,to leave as much vertical space as possible for the JTable. My JTable, which was in a panel, and my Filter panel both went into a Frame. I used a BorderLayout, with the Filter panel at North and the JTable panel at Center. This makes the table fill the balance of the window as it resizes. I had no experience with java GUIs before this, and I found the swing tutorials at javasoft.com to be what I needed. It seems evident that the best approach is to conceptualize both how you want widgets to be positioned and what behavior you want when the window is resized, then figure out what panels and layouts will give you what you want. It really does appear that virtually anything is possible.
We can walk to school together. And we can both read this tiny ad: