Results 1 to 5 of 5
  1. #1
    Psyclone is offline Member
    Join Date
    Jan 2010
    Posts
    81
    Rep Power
    0

    Default A very, very, very noobish question

    You've been warned about how noobish this question is!

    OK, I want to start learning Swing. I have NetBeans 6.8 and started doing the tutorials. The first one requires javax.swing and javax.swing.event.

    I get the error that the javax package does not exist. Is that part of Swing?

    If so, where do I download Swing? I couldn't find it at Developer Resources for Java Technology. Is it part of a bundle?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    You don't need to download anything as Swing is part of core Java. You just need to have the proper import statements on the top of your program.

  3. #3
    [RaIdEn] is offline Senior Member
    Join Date
    Oct 2009
    Location
    California,US
    Posts
    201
    Rep Power
    5

    Default

    as fudarable said, when you download java it has the swing packages. when you write the java program you just need to import them by calling

    Java Code:
    import ....;
    
    public class Tutorial
    {
    ....
    }
    on the 1st line of your program as shown

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Quote Originally Posted by [RaIdEn] View Post
    as fudarable said, when you download java it has the swing packages. when you write the java program you just need to import them by calling

    .....

    on the 1st line of your program as shown
    Not quite the first line as the package declaration comes first and then the import statements.

  5. #5
    [RaIdEn] is offline Senior Member
    Join Date
    Oct 2009
    Location
    California,US
    Posts
    201
    Rep Power
    5

    Default

    Quote Originally Posted by Fubarable View Post
    Not quite the first line as the package declaration comes first and then the import statements.
    yes but talking in a general point,

    thnx for the additional info that thing almost skipped my mind :)

Similar Threads

  1. Question mark colon operator question
    By orchid in forum Advanced Java
    Replies: 9
    Last Post: 12-19-2010, 08:49 AM
  2. JDO Question...
    By Kam in forum JDBC
    Replies: 0
    Last Post: 01-07-2010, 06:11 PM
  3. Question
    By Java_Fanatic in forum New To Java
    Replies: 10
    Last Post: 10-13-2009, 11:18 PM
  4. Question!
    By anjogomez in forum Java Applets
    Replies: 2
    Last Post: 02-21-2009, 03:24 AM
  5. a question
    By slytheman in forum Java Servlet
    Replies: 0
    Last Post: 03-12-2008, 04:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •