User Name
Remember Me?
Password
Register
FAQ
Social Groups
Calendar
Search
Today's Posts
Mark Forums Read
Java Forums
»
Java SE
»
AWT / Swing
»
is this possible?
LinkBack
Thread Tools
Display Modes
#
1
(
permalink
)
11-17-2008, 06:07 PM
wanw84
Member
Join Date: Oct 2008
Posts: 2
Rep Power:
0
is this possible?
Hi, im still a newbie in Java programming. I want to ask something.
I made a java class for example 'Train.java'.
Now i want to make a gui. Is it possble when i click a button (already made) will execute the 'Train.java' file?
#
2
(
permalink
)
11-17-2008, 09:21 PM
zoomix
Member
Join Date: Oct 2008
Location: Sweden, Gothenburg
Posts: 21
Rep Power:
0
Well, yes. Sure. But that's generally not the way you want to do things. It's sort of like buying a ferrari but only ever driving it in reverse gear.
Anyway. Add a listener to your button and have it run Train.main(null);
#
3
(
permalink
)
11-17-2008, 11:53 PM
hazem.mohamed
Member
Join Date: Nov 2008
Posts: 2
Rep Power:
0
can you attach the contents of your files to know how to help you? or just tell us what do you want to do?
---------------------------------------------------------------
My First Post
Bookmarks
Digg
del.icio.us
StumbleUpon
Google
«
Paging in swing when using MS-SQL
|
XTerm window appearing in full screen swing app
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
On
Pingbacks
are
On
Refbacks
are
On
Forum Rules
All times are GMT +2. The time now is
05:07 PM
.
Java Tips
|
Linux Archive
Contact Us
-
Java Forums
-
Sitemap
-
Top
VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Bookmark in Technorati