The Artima Developer Community
Sponsored Link

Java Answers Forum
Help! Creating a user-customizable GUI

3 replies on 1 page. Most recent reply: Apr 22, 2002 2:42 PM by Hiran

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
Shawn Anderson

Posts: 2
Nickname: andy29
Registered: Apr, 2002

Help! Creating a user-customizable GUI Posted: Apr 15, 2002 4:02 PM
Reply to this message Reply
Advertisement
First off I am fairly new to Java - with about 6 months experience. I was wondering if it was possible to create a page (in JBuilder 6) within an application where the user could customize their own GUI. The user would be able to add/delete: buttons, radio buttons, combo boxes, labels and a title which could be saved and the source code would be automatically generated. Any connectivity would be the users responsibility. Essentially, the page would simply be act as a portal to another program (whatever program) from within the product application. I'm not sure if I've given enough info but it's pretty much all I've got myself. I would really like to know if it's ever been done before. Thanks for any direction or help you can offer, I hope this made sense.

Shawn Anderson
anderson_sa@hotmail.com


Hiran

Posts: 41
Nickname: jclu
Registered: Mar, 2002

Re: Help! Creating a user-customizable GUI Posted: Apr 18, 2002 11:57 AM
Reply to this message Reply
Go to http://foundries.sourceforge.net/java/. They have a few projects that contain other GUI interfaces people have created besides the Swing interface. In terms of creating your own, it shouldn't be too hard to do. Have a way (possibly a drop down list) for the user to select the type of component they want. Then you could either ask the user for a variable name, or automatically generate one. You could even have a properties-type panel where the user can specify what constructor to use (if there are more than one constructors), the variable name (so they can change it), etc. You could also allow the user to drag and drop it onto a frame to specify the location. From a code standpoint, you could create a class that represents a user selected component. In that class would be variables that hold the properties specified in the properties panel (including the type of component). Then, when the user saves the file, your app would save the contents of each object that's representing a user selected component. It'll be a lot of work, but it's doable. Hope this helps.
Hiran

Shawn Anderson

Posts: 2
Nickname: andy29
Registered: Apr, 2002

Re: Help! Creating a user-customizable GUI Posted: Apr 22, 2002 12:42 PM
Reply to this message Reply
Thanks so much Hiran. I'm slowly making progress with this project - although I think it may be a little over my head. Your direction is very useful and again, thanks.

Shawn Anderson

Hiran

Posts: 41
Nickname: jclu
Registered: Mar, 2002

Re: Help! Creating a user-customizable GUI Posted: Apr 22, 2002 2:42 PM
Reply to this message Reply
No problem. If you ever are stuck, or need help, post your code and question. Good luck.
Hiran

Flat View: This topic has 3 replies on 1 page
Topic: Counting Different Characters Previous Topic   Next Topic Topic: problem in imageFilter

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use