Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

two very simple question!

 
kevin chang
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Must I use data class in suncertify package, may i modify the data class?
2 i am making gui class now, and i use a Jframe contains a container, and the container contains three panel. how should resize the container when the jframe change the size?
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kevin, I have not yet started SCJD (I'm still waiting for SUN education to respond to the order), but these are the principles I would apply:
1. Can you make your modifications by extending the Data class and overriding its methods, overloading its methods or providing additional methods? If you can, then I would go ahead.
2. What does it look like when you resize the GUI?
Making the GUI bigger or smaller should just reflect in increasing or decreasing the amount of visible data in the table. The relative positions and relative sizes of the control elements should remain the same.
I'm very interested in hearing further opinons from other SCJD takers.
[ March 23, 2003: Message edited by: Barry Gaunt ]
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

1. Must I use data class in suncertify package, may i modify the data class?

The instructions are very clear, -- you can do either. In your design choices document, you are expected to defend your decision.

2 i am making gui class now, and i use a Jframe contains a container, and the container contains three panel. how should resize the container when the jframe change the size?

In addition to what Barry commented, take a look at the resizing behaviour of a well-designed Java application, such as JBuilder. The resizing of your elements is controlled by your layout manager.
Eugene.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic