This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Beginner JAVA - Want to put GUI and JAVA into webpage HTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Beginner JAVA - Want to put GUI and JAVA into webpage HTML" Watch "Beginner JAVA - Want to put GUI and JAVA into webpage HTML" New topic
Author

Beginner JAVA - Want to put GUI and JAVA into webpage HTML

Carrie Wiley
Greenhorn

Joined: Dec 04, 2010
Posts: 1
I was wondering if anyone could tell me how to simply implement my JAVA code which is a GUI that calls events onto an active webpage.

I have a class project that I would like to present on an HTML webpage. Is this possible?
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3068
    
  33

You might want to try using Applets.


Mohamed Sanaulla | My Blog
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10170
    
    8

Welcome to the Ranch.

GUI, events, HTML. hmmm.... Sounds similar to this technology!


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Paul Okeke
Ranch Hand

Joined: May 16, 2009
Posts: 58
Carrie Wiley wrote:I was wondering if anyone could tell me how to simply implement my JAVA code which is a GUI that calls events onto an active webpage.

I have a class project that I would like to present on an HTML webpage. Is this possible?
nk


"Onto an active webpage" I think this is only possible with Ajax but NOT from Java.
But, if you want such from Java then think of Applet


OCJP 1.6
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
"Onto an active webpage" I think this is only possible with Ajax but NOT from Java.

It is possible. Applets can access both the page DOM and Javascript methods on the web page they're on. The terms to search for are "Common DOM API" and "LiveConnect", respectively.
Paul Okeke
Ranch Hand

Joined: May 16, 2009
Posts: 58
Lester Burnham thanks for correction I confirmed it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Beginner JAVA - Want to put GUI and JAVA into webpage HTML
 
Similar Threads
jsp to swing
Msg from applet to browser
Java applications on the website
Use Servlet to read a webpage.
Saving HTML of a webpage