Results 1 to 2 of 2
Thread: JInternalFrame Help
- 03-15-2010, 12:03 AM #1
Senior Member
- Join Date
- Nov 2009
- Posts
- 235
- Rep Power
- 4
JInternalFrame Help
I'm trying to make a java program(Windows.java) that can start a JInternalFrame and have its contents to be a different program(Calc.java). I could say:
where Life returns a JPanel. However, I don't want to hard code the name Life in because I want it to be able to run any java program I have. Right now, I store the Program I want displayed in a .txt file. Then I extract the names from each line and turn them into buttons. Before, I just ran "cmd.exe /c start java -cp \"C:\\J\" " + choices[choice-1]", But I dont want to start a new window, just an internal Frame. Is there any way to do this? Maybe some way to have the program name stored in to string choice and say choice a = new choice() where choice is any program name?Java Code:JInternalFrame frame = new JInternalFrame("Life", true, true, true, false); frame.setSize(800, 600); frame.setContentPane(new Life());
Double post to "New to Java" JInternalFrame Help
- 03-15-2010, 09:24 PM #2
Similar Threads
-
JInternalFrame Help
By collin389 in forum New To JavaReplies: 2Last Post: 03-16-2010, 12:23 AM -
Control JInternalFrame ?
By h9h in forum AWT / SwingReplies: 1Last Post: 10-11-2009, 03:58 AM -
Repositioning An unwanted JInternalFrame
By marco.c84 in forum AWT / SwingReplies: 8Last Post: 03-18-2009, 09:42 PM -
Problem with JInternalFrame
By hameem in forum AWT / SwingReplies: 1Last Post: 12-11-2008, 04:23 PM -
[SOLVED] jScrool in JInternalFrame
By gustio in forum New To JavaReplies: 2Last Post: 07-22-2008, 10:05 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks