Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: JApplet containing JButton and a JLabel

  1. #1
    Junior Member
    Join Date
    Feb 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile JApplet containing JButton and a JLabel

    Hello members!

    I just registered here and I am new in Java and in the site too. So I need some help here please. Any answers are appreciated.

    If you can provide me with some tutorials or sites that help me start with this here or codes suggestions

    Now here is what I have to do:

    create applet that contains a jlabel and button label when the user clicks the j button change the font typeface style and size on the label save the file as jchangefont.javayou'll creat s jbutton that will automatically change font type face tyle and the size on the jlabel also create html document to host the applet set the with 450 and the hight to 200 save as testfont.html save the file as jchangefont.java

    now the html file I know how to make it, it shows me in the book. But, the .java file is a little bit confusing. I will be posting what I have so far for this project. but, I am just confused of how to start this?

    Any help please?

    I appreciate it

    Thanks


  2. #2
    Java kindergarten chronoz13's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    659
    Thanks
    177
    Thanked 30 Times in 28 Posts

  3. The Following User Says Thank You to chronoz13 For This Useful Post:

    Json (February 4th, 2010)

  4. #3
    Junior Member
    Join Date
    Mar 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: JApplet containing JButton and a JLabel

    Quote Originally Posted by JuneM View Post
    Hello members!

    I just registered here and I am new in Java and in the site too. So I need some help here please. Any answers are appreciated.

    If you can provide me with some tutorials or sites that help me start with this here or codes suggestions

    Now here is what I have to do:

    create applet that contains a jlabel and button label when the user clicks the j button change the font typeface style and size on the label save the file as jchangefont.javayou'll creat s jbutton that will automatically change font type face tyle and the size on the jlabel also create html document to host the applet set the with 450 and the hight to 200 save as testfont.html save the file as jchangefont.java

    now the html file I know how to make it, it shows me in the book. But, the .java file is a little bit confusing. I will be posting what I have so far for this project. but, I am just confused of how to start this?

    Any help please?

    I appreciate it

    Thanks

    Hi

    You should get the text book if you are new one to java.If Only regarding swings get

    HERBERT SCHILDT's SWING A BEGINNERS GUIDE
    Surely it will help you

  5. #4
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: JApplet containing JButton and a JLabel

    I have moved this thread to the correct forum. Thank you.

    AWT / Java Swing - Java Programming Forums
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

Similar Threads

  1. JButton event handling.
    By Prof in forum AWT / Java Swing
    Replies: 6
    Last Post: February 3rd, 2010, 10:29 AM
  2. JButton Help
    By ravjot28 in forum AWT / Java Swing
    Replies: 3
    Last Post: January 17th, 2010, 11:38 AM
  3. Again Interesting JButton query
    By ravjot28 in forum AWT / Java Swing
    Replies: 0
    Last Post: January 14th, 2010, 11:22 AM
  4. JButton...
    By chronoz13 in forum AWT / Java Swing
    Replies: 1
    Last Post: November 27th, 2009, 11:39 AM
  5. how to output using JLabel?
    By qaromi in forum AWT / Java Swing
    Replies: 1
    Last Post: August 30th, 2009, 02:09 PM