Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old September 10th, 2007, 02:48 PM
patrick4623 patrick4623 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 86 patrick4623 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 20 h 41 m 50 sec
Reputation Power: 2
Linking the gui???

i m totally new in java
now i using netbean to make the gui
is very easy jus drag n drop...
but i don know how to link to anyther interface
example i clicking on button register then anythor interface came out.....
how can i make the button register in that gui working to llink with another????
thanks for the help.........

Reply With Quote
  #2  
Old November 18th, 2007, 05:40 AM
middaycrisis middaycrisis is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 2 middaycrisis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 31 m 39 sec
Reputation Power: 0
If you need for it to popup a Dialog (or a new frame), you write the following in the class with the button:


public Example exampleDialog;
//Example is the name of the new class, where the dialog configuration would be placed

exampleDialog = new Example();

//Creating a new Dialog

private class Controller implements ActionListener {

public void actionPerformed(ActionEvent e) {

if (e.getSource() == yourbutton ){
exampleDialog.setVisible(true);
}
//When the button is clicked, it will open a new Dialog.

//In the Example we class, you just create a new frame, with necessary options.

public class Example extends JDialog {

public ConferenceDialog(){

this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CL OSE);
this.setModal(true);
this.setTitle("title");
this.setLocation(150, 150);
this.setSize(465, 405);
this.setResizable(false);

//..and so on

So when you click on the button, it will open a new Dialog frame. Hope it helps.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > Linking the gui???


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT