Results 1 to 1 of 1
- 03-03-2011, 08:45 PM #1
Member
- Join Date
- Mar 2011
- Posts
- 1
- Rep Power
- 0
New to import org.jdesktop.application.SingleFrameApplication
Hello,
I am trying a new way to do my java project, I'm trying to use SingleFrameApplication however i am stuck. I am unable to use .setVisible properties at all with this new way.
What's the way to hide and show forms using SingleFrameApplication? I haven't used this before and have always used the .setVisible property in the past to hide/show forms. I have a form that has a button with an actionperformed method however I am unable to figure out how to hide the current form and show the new one once the button is clicked.Java Code:if(username_1.equals(uname) && pass_1.equals(passw) && type1Int == 2){ [b]this.setVisible(false); userForm main = new userForm(); main.setVisible(true);[/b]
Any links, info, etc would be great!
Thanks in advance!
Similar Threads
-
How do you import?
By Gary20 in forum New To JavaReplies: 2Last Post: 01-28-2011, 06:12 PM -
Help with import
By eel in forum New To JavaReplies: 2Last Post: 09-19-2010, 10:51 AM -
Import
By gothrog in forum Java AppletsReplies: 2Last Post: 05-13-2010, 11:16 PM -
Can not import jxl.*
By AnnieDing in forum Java ServletReplies: 3Last Post: 01-22-2010, 03:52 PM -
Help in converting Java application to desktop application in Netbeans
By realahmed8 in forum AWT / SwingReplies: 3Last Post: 12-04-2009, 12:10 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks