Pawel Poltorak

Ranch Hand
+ Follow
since Sep 21, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Pawel Poltorak

Hi Tanya,

I used the same table to show search results. After accepting search dialog, table updated and displayed search results. To show all records you had to search again with specific criteria. I guess 'Show all' option could be a better solution for that.

Best Regards,
Pawel
18 years ago
Hello Sergey,

Yes, they were.

Pawel
18 years ago
Hi Sergey,

I think it's no problem, my jar was also packed using ant with modified date of db file. I think contents should be identical.

Best Regards,
Pawel
Hi Alan,

Add Help menu with About option. It is a a standard GUI item and you can state some basic info about your application there. It will also make your menu more crowded

Best Regards,
Pawel

isn't that pretty much all the function available? So you have buttons on your panel and your toolbar has the same buttons?



No, I have only toolbar and menu. I don't have any buttons on panel, only table.

Pawel
18 years ago

Ok, so all my work and effort become a black box for the testers [pissed]



In my opinion this is not fair. I recently got 44 points for locking. I had some assumptions, which I documented, like only one lock per client, not taking care of the stalelocks. If locking is tested as black box, then these assumptions might be taken as errors, which is inappropriate, since they are mentioned in choices.txt.

Best Regards,
Pawel
Hi,

I put 'Book' and 'Search' options on the toolbar.

Best Regards,
Pawel
18 years ago
Hi,

My GUI was very standard, menu, toolbar and table. Searching criteria were entered in separate dialog window using combo-boxes (which also were initialized with values from database). For customer id I used JOptionPane. I made table with records sortable but I think this is not necessary. I tried to make my GUI complete, so I added mnemonics, accelerators etc.

I'm little disappointed with my locking score, I spent a lot of time implementing it. Well, I must have missed something.

Best Regards,
Pawel
18 years ago
Hi all,

Today I checked that I passed SCJD . It was very quick, it took less than a week to assess. The score is below:

The maximum possible score is 400; the minimum to pass is 320.
General Considerations (maximum = 100): 79
Documentation (maximum = 70): 70
O-O Design (maximum = 30): 30
GUI (maximum = 40): 37
Locking (maximum = 80): 44
Data store (maximum = 40): 40
Network server (maximum = 40): 40

I would like to thank you all for support and help, this certificate would be much harder without it.

Best wishes,
Pawel
18 years ago
Hi Ronald,

You may want to check BasicOptionPaneUI.addMessageComponents. This method, if message is String, calls itself recursively with substring from 0 to position of first new line character. This way you have multi line message.

Hope this helps,
Pawel

PS. You can break text on JLabel if you make it in html and use <br>.
Hello,

I would consider using actions anyway. Action extends ActionListener therefore in fact is a separate listener, not per button/menu item, but per functionality. The same action can be used for button and menu item which are an access point to some application functions. Additional advantage is that Action provides a common place to define ui component properties.

For example in my URLyBird I use menu and toolbar. I use one Action instance to handle 'Book' option from menu and tooolbar. This way I don't have to create separate listeners for menu and toolbar components.

Best Regards,
Pawel
Hi Mihai,

From what I have understood from your mail you want to use ActionListener instances. Have you considered using javax.swing.Action instances? This way you have single ActionListener, which you can (using setAction() method) apply to many ui components. You can also set action properties, such as mnemonic, accelerator, icon, tooltip etc. which will be used when setting ui component properties.

Best Regards,
Pawel
Howdy ranchers,

I decided to add more standard gui to my application: menu and toolbar. If I use toolbar then I must use the icons but I'm not a good at graphics myself. Do you think I can download already made, free icons (from Sun or Eclipse for instance), copy them into my jar file, and use them in my application? Or maybe I canot use icons which are not made by me?

Best Regards,
Pawel
Hi Ali,

From the instructions:
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.



My interpretation of this instructions is that user can enter both name AND location but search for records that match exacly name OR location. I think this way user has much flexible search engine.

Best Regards,
Pawel
Thanks for your answer Andrew,

I'll remove the connecting to existing rmiregistry then.

Best Regards,
Pawel