Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-04-2007, 11:10 PM
Member
 
Join Date: Jul 2007
Posts: 8
java_newbie is on a distinguished road
Suggestion needed
Hi
I am a complete newbie to JAVA. I am basically a C#.Net programmer.
Now to get started with java. I am trying to re-write one application written in Net beans 5.0 or jcreater.

Now the problem is there is one parent form. now with in this parent form there are 3 menu buttons and each buttons got sub buttons which are not vissible during design time...(i dont like this feature)..now when i run this program i can go to the sub buttons and after pressing any button it gives me a new form to do the task.....now this guy has written code for creating this new form...so basically there is one form and all the rest 4 forms are coded and which looks really bad. I prefer drag and drop functionality instead of coding the form. So any suggestion how could i change it to the drag and drop form and how to connect it with parent form...

at the moment the function is called from the parent form button to execute new form...so i am not getting it...like if i create a new form by drag n drop then how am going to connect it with the press on the parent form...

pls help this newbie ..

Thanks
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-08-2007, 12:47 AM
Senior Member
 
Join Date: Jun 2007
Posts: 164
Heather is on a distinguished road
Do you want a drag and drop tool to do more easier the buttons and menus?
Please download this plugin
Cloud Garden - Jigloo GUI Builder (SWT and Swing) for Eclipse

and then when you download it I'll send you an example if you want.
Anyway is easy to learn it
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-08-2007, 01:39 PM
Member
 
Join Date: Jul 2007
Posts: 8
java_newbie is on a distinguished road
hey but m using Netbeans 5.0 and it support GUI builder...what i wanted to know is that i am unable to create subforms.... the application which i am trying to recreate ...it consist of 1 parent form and then after pressing any button it opens up another form..but they hv written code for the 2nd form..n i want to create it using GUI builder and want to connect the sub form with parent...and i cant see any example to do this...do you have any example which show how to create a sub form frms with a button click in parent form..
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 08-10-2007, 03:03 PM
Member
 
Join Date: Jul 2007
Posts: 51
mary is on a distinguished road
hmmm
let me see
here is an example:
Code:
public class SwingApplication { public static void main(String[] args) { JFrame frame = new JFrame("SwingApplication"); //...create the components to go into the frame... //...stick them in a container named contents... frame.getContentPane().add(contents, BorderLayout.CENTER); //Finish setting up the frame, and show it. frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } }); frame.pack(); frame.setVisible(true); } } JButton button = new JButton("call other frame"); button.addActionListener(this); JPanel pane = new JPanel(); pane.setBorder(BorderFactory.createEmptyBorder(30, 30, 10, 30)); pane.setLayout(new GridLayout(0, 1)); pane.add(button); //when somebody clicks in jbutton it calls the subforms button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Secondform 2form= new Secondform (); 2form.pack(); 2form.setVisible(true); } });
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 09-29-2007, 10:43 AM
Member
 
Join Date: Jul 2007
Location: bangalore,india
Posts: 19
varunthecool is on a distinguished road
well
why not use JInternalFrame if u want to create a MDI like form...create three internalframes for 3 menu buttons and on click each to get the desired internal frame....at the start sset the visible property of the internal frames to false...and on each action set it to true..
using netbeans 5.0 u can do this...in the design mode...and if u go check the properties the AccessibleParent property wud ve been set to the main frame
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
help needed!!! :S mark-mlt Networking 1 04-14-2008 10:27 AM
Help needed. necro-1000 AWT / Swing 2 01-12-2008 12:37 PM
Give me some suggestion on wedding story book roots Forum Lobby 1 01-10-2008 05:17 PM
Help Needed pks New To Java 1 01-09-2008 01:07 AM
help needed. dirtycash New To Java 3 12-03-2007 10:17 PM


All times are GMT +3. The time now is 06:29 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org