Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

can we use swing in web app  RSS feed

 
pradip thite
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey friends, can we create web applications using swings??? if yes how to create web app using swing??
 
Claude Moore
Ranch Hand
Posts: 862
8
IBM DB2 Java Netbeans IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swing is Java core library for building desktop graphical UI. You cannot use it to build web apps.
 
pradip thite
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you very much.. i want to drag and drop all html controls in jsp page ?? i dont want to write all html code..so how can i do??
 
Stephan van Hulst
Saloon Keeper
Posts: 6980
110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think most IDEs have a graphical designer for HTML, or at least a plugin. Do a Google search for HTML or JSP designing for you perferred IDE.
 
pradip thite
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok ..thank you..
 
pradip thite
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using net beans IDE7.4 ?? can i do it in net beans??
 
Stephan van Hulst
Saloon Keeper
Posts: 6980
110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's going to be difficult, because NetBeans discontinued visual web module.

http://wiki.netbeans.org/VisualWebSupport
 
Chris Barrett
Bartender
Posts: 317
24
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pradip,

You may also want to check out the JApplet Class. JApplet is a top-level container you can use in lieu of a JFrame to create web applications using Swing components.

For more information, please review: http://docs.oracle.com/javase/tutorial/uiswing/components/applet.html

And for "Integrating an Applet in a Web Application" in NetBeans, please review: https://netbeans.org/kb/docs/web/applets.html

Cheers!
Chris
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chris R Barrett wrote:You may also want to check out the JApplet Class. JApplet is a top-level container you can use in lieu of a JFrame to create web applications using Swing components.

An applet is not considered a "web application" per se. I'd also advise against this path as applets are now disabled by default in most browsers due to security issues with them. Applets are an idea whose time is long past; the OP would be best served to learn how to create modern web applications using web technologies.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!