Can I use a swing Component (e.g. JTextField) in a Java Applet

Discussion in 'Java' started by Prashanth Ravi, Oct 7, 2004.

  1. Hi ,

    Need help in Java - Can I use a swing Component (e.g. JTextField) in a Java Applet?

    Would I have any problems if I use a swing component in a java applet?
     
    Prashanth Ravi, Oct 7, 2004
    #1
    1. Advertising

  2. Prashanth Ravi wrote:
    > Hi ,
    >
    > Need help in Java - Can I use a swing Component (e.g. JTextField) in a Java Applet?
    >
    > Would I have any problems if I use a swing component in a java applet?


    You can use all the swing components in Applets.
     
    Peter Ashford, Oct 7, 2004
    #2
    1. Advertising

  3. On Thu, 07 Oct 2004 22:26:46 +1300, Peter Ashford wrote:

    > You can use all the swing components in Applets.


    You can use Swing components in JApplets in browsers
    with a 1.2+ JRE (or the fabled pre-1.2 add-in jar).
    Some Swing components require a JRE 1.3 or 1.4.

    Or in other words ..'not so simple'.

    --
    Andrew Thompson
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.PhySci.org/ Open-source software suite
    http://www.1point1C.org/ Science & Technology
    http://www.lensescapes.com/ Images that escape the mundane
     
    Andrew Thompson, Oct 7, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?ISO-8859-1?Q?Peter_Valdemar_M=F8rch?=
    Replies:
    2
    Views:
    884
    =?ISO-8859-1?Q?Peter_Valdemar_M=F8rch?=
    Jul 23, 2003
  2. Prashanth Ravi
    Replies:
    1
    Views:
    430
    Andrew Thompson
    Oct 7, 2004
  3. Replies:
    5
    Views:
    3,047
    Andrew Thompson
    Dec 26, 2005
  4. brf
    Replies:
    2
    Views:
    915
    Knute Johnson
    Dec 4, 2006
  5. Pedro Pinto

    Java applet break line in JTextField

    Pedro Pinto, Apr 1, 2007, in forum: Java
    Replies:
    2
    Views:
    785
    Andrew Thompson via JavaKB.com
    Apr 2, 2007
Loading...

Share This Page