Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / JavaBeans / January 2005

Tip: Looking for answers? Try searching our database.

Swing inside Visual Basic ??

Thread view: 
Tuncay Altun - 11 Jan 2005 20:00 GMT
Hi,

I've been asking for wheter it's possible to run a Swing inside Visual Basic
and that is my question.

Does anybody know how I can incorporate a button in a Visual Basic that can
popup a Swing application ?

Thank in advance...
Yanick - 11 Jan 2005 21:32 GMT
You could do

Private Sub Button_Click()
   Shell "javaw -classpath {program home dir} package.classLoader,
vbNormalFocus
End Sub

and use the Windows API to handle the program (the value return by Shell has
something to do with the program status), or there might even be such
function in VB, but it's been too long since I've touch that language :)
look that UP in MSDN.

-Yanick

> Hi,
>
[quoted text clipped - 7 lines]
>
> Thank in advance...


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.