• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

can we use swing in web app

 
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??
 
Bartender
Posts: 1146
38
IBM DB2 Netbeans IDE Spring Java
  • 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??
 
Saloon Keeper
Posts: 10302
217
  • 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: 10302
217
  • 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
 
Bartender
Posts: 322
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
 
Sheriff
Posts: 67265
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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!