Originally posted by Paul W Lee:
I've been away for several days, and just read your message.Thank you for your reply.
Now i am going to buy a PDA, and run some application developed by Personal Profile. would you give me some advices?
Thank you very much.
Originally posted by Wayne L Johnson:
A couple of things. First, look at what Jose said. In the class "MyButtonPanel" your constructor has a return type of "void". Constructors DO NOT have return types:
Second, just before your call to "setSize()" you probably want to call "pack()". This lets the layout manager (BorderManager in your case) go actually place and size all of it's components.
If you call "pack()" before the the call to "setSize()", you'll get a full-screen frame. If you call "pack()" after the call to "setSize()", you'll get a small frame only large enough to fit the three buttons.
There is no need to call "setVisible()" in the "MyButtonPanel" class.