Results 1 to 3 of 3
Thread: JFrame questions
- 02-26-2013, 03:52 PM #1
Member
- Join Date
- Feb 2013
- Location
- The Netherlands
- Posts
- 17
- Rep Power
- 0
JFrame questions
Hi i am very very new to Java so bare with me
I'm trying to make a very simple app as my first project but it's not going to good.
I have a button in my app and I want it to close ALL opened windows on the persons computer if thats possible (Button name = close all windows)
Also when i am done with my app and i like the way it is. How do i make it like an actual program? (.EXE or something like that)
Thanks!
- 02-26-2013, 04:03 PM #2
Re: JFrame questions
You can't close other windows from Java. At best you'll have to write native code.
Creating an executable from Java is a separate issue, and the short answer is: are you sure you want to? There are ways to do it (and a google search will show you many options), but there are better ways to deploy Java.How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
-
Re: JFrame questions
If you really want to do this and aren't afraid of pissing off the users of your program, you can download and use the JNA library for this.
Look into creating a jar file. There are many tutorials that you can find on this, or if you're using an IDE, most will walk you through creating this.How do i make it like an actual program? (.EXE or something like that)
Similar Threads
-
Click in JFrame Titlebar sets the JFrame Opaque
By tim8w in forum AWT / SwingReplies: 1Last Post: 02-02-2013, 07:29 AM -
Calling another JFrame from a JFrame through a JButton...(Help Reqired)
By nish.singha20 in forum AWT / SwingReplies: 3Last Post: 11-27-2011, 05:18 AM -
to pass a parameter from a jframe children to its jframe mother
By anix in forum NetBeansReplies: 5Last Post: 06-14-2010, 06:10 PM -
Passing data from one JFrame to another JFrame. - need help.
By Unsub in forum New To JavaReplies: 6Last Post: 04-12-2010, 11:33 AM -
How to make a Jframe un-focusable when another Jframe is active?
By Robert_85 in forum Advanced JavaReplies: 4Last Post: 04-22-2009, 11:02 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks