Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Forums
Register
Login
Java
»
Java in General
Invoking a java application from another application
Harpreet Hira
,
Ranch Hand
Jun 18, 2002 14:51:00
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
I need to invoke a
java
application (frame) from within another application. The application invocation should result after some event.
Kindly post your views and suggestions urgently
Dirk Schreckmann
,
Sheriff
staff
Jun 18, 2002 15:09:00
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
This strategy would seem to work just fine:
public class OtherApp extends javax.swing.JFrame { public OtherApp() { setSize( 300 , 300 ); setVisible( true ); } public static void main( String[] args ) { System.out.println( "OtherApp" ); new OtherApp() ; } public void paint( java.awt.Graphics g ) { g.drawString( "OtherApp" , 100 , 100 ); } }
public class Whatever { public static void main( String[] args ) { System.out.println( "Whatever" ); OtherApp.main( null ); } }
Gregg Bolinger
,
Ranch Hand
Jun 18, 2002 15:33:00
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
I would use the relfection class. Check out the API and there is a tutorial on Sun's web site.
Dirk Schreckmann
,
Sheriff
staff
Jun 19, 2002 11:30:00
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
One of JavaWorld's Java Q & A articles addresses this issue:
http://www.javaworld.com/javaworld/javaqa/1999-06/01-outside.html?
Post by:
autobot
Do the next thing next. That’s a pretty good rule. Read the tiny ad, that’s a pretty good rule, too.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
This thread has been viewed 642 times.
Similar Threads
How does Java Web Start handle the cross domain issue
Copy Protection
distributavility in a chat application.
Dynamic Compilation
applications communication
More...
All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:30:20
.