|
-
October 27th, 2005, 01:02 AM
#1
Dynamic GUI
hello
From the beginning of my programming life in java, all I learned is how to hard code the gui into the windows. But now I need to do soemthing that need the help of dynamic GUI. Let say I have 3 buttons that I need to put onto the interface, but the next time I run it program , I might only need 2 button...I tried searching but nothing is found....Is there some information on how to program this kind of GUI on the net that I can read?...
sorry for my poor grammer
-
October 28th, 2005, 01:10 PM
#2
Re: Dynamic GUI
Since buttons are created at runtime I'd guess this would be a pretty easy problem to solve. I'd have a loop that tested for some condition for how many buttons I needed to create. Then in the loop I'd create the button and add it to a linked list. Then add the button to the container for display.
This would be my best first guess.
I know how to build. What to build is a completely different story.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|