Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Swing 1.1(URgent)

 
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
can anybody give very simple code of Swing 1.1 which have either TextBox or Label?
Also, do I need HTML Converter & Java Plugins to run applet of Swing 1.1?
Thanks in advance,
Angela
 
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Angela
Following is a simple Swing code with Text boxes and buttons.

Hope you can understand.
For your second query....
You only need to write the same applet code tag for even a
JApplet and as usual can view it in appletviewer.
Regards
Suneel
 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks Suneel,
Angela
 
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Angela,
i agree with suneel that you can view your swing applet in appletrviewer .
but to run it in a browser u'll need to convert your html code using html converter. this coverted html will download the plugin required to view the swing applet in a browser.
and downloading this plugin can be quite time consuming so in case u r going for some live project then think twice before using swing applet.

regards
deekasha

[This message has been edited by deekasha gunwant (edited January 24, 2001).]
 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks deekasha and suneel,
Angela
 
Anything worth doing well is worth doing poorly first. Just look at this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic