Can't use Swing in my java application

I installed J2SE 5 Update 4 on my machine and was trying my hands on creating GUI using swing. I kept getting the error message: "Package javax,swing not found in import".
I have the statement: import javax.swing.*; in my code so I don't what to do again.
Thanks

I think your best bet is to try uninstalling and installing Java again. Your problem could be something small, however you wull eaist less time to re-install everything, then to try searching for the problem.
btw-What Development tool do you use? Just in case you may try to check whether it could be a problem of the ide (It should not be however), just check with another Ide, and see if the same happens. If yes, then follow my first advise, I think it would take you less time.

Similar Messages

  • Can I use Streaming Video in Java Application?

    Will i be able to use Streaming Video in Java Application, if yes can anyhow out there pls teach me how to do it... thanks...

    read up on the Java Medai Framework http://java.sun.com/products/java-media/jmf/index.html

  • How to use Swing in a web Application

    Can you suggest me some good PDF/tutorial or some good site for reading about using SWING in a Web Application.
    In our web application we plan to use JSP/Struts for the presentation layer. However there are a few screens that require some advanced UI like color coded assets and a graphical version of Outstanding Vs Available limit. We are wondering whether we should use SWING for these screens. Do you think this is a good idea or is there a better apprach to deal with this
    What are the disadvantages of using SWING VS JSP/Servlet in a Web environment. Is there a site or pdf where i can get information about this.

    I'd say the biggest disadvantage is that your client machines have to download and install the bloody java plug in.
    What you write about your UI ain't half vague. What the deuce is a "color coded asset"? Is it
    interactive? If not, could it be represented by an image? If so, even if it is a non-static image, it is a simple
    matter for your webapp to generate the image on the fly. Many web app tutorials demonstrate that.

  • How can i use C/Javascript/php/Java in flex?

    can i embed these language into my flex project?
    since i have to check harddisk space, free memory remain. Also, i need to check the pixel of photos before the photos becoming bitmapdata
    please help~

    saipanBETTY0509 wrote:
    Subject: How can i use C/Javascript/php/Java in flex?
    can i embed these language into my flex project?
    You can't.  Why do you want to do this?
    saipanBETTY0509 wrote:
    since i have to check harddisk space, free memory remain. Also, i need to check the pixel of photos before the photos becoming bitmapdata
    I think what this means is "I want to check to see how much hard disk space is available.  Also, I need to check the pixel dimensions of an image."
    Is that right?
    There is no way in the Flash Player (as far as I know) that you can determine the amount of free disk space.  However, in AIR you can use air.File.applicationStorageDirectory.spaceAvailable to determine the storage space available in the application storage directory.
    As far as determining the dimensions of an image, there are plenty of good resources out there on that.  Maybe this one will be helpful to you?
    http://www.yswfblog.com/blog/2008/12/22/flash-10-experiments-the-warholizer-loading-and-pr ocessing-local-images/
      -Josh

  • How to use " toFront() " method in java application and in which package or

    How to use " toFront() " method in java application and in which package or class having this toFront() method.if anybody know pl. send example.

    The API documentation has a link at the top of every page that says "Index". If you follow that and look for toFront(), you will find it exists in java.awt.Window and javax.swing.JInternalFrame.
    To use it in a Java application, create an object x of either of those two classes and write "x.toFront();".

  • How can I use the open in " My application" option to open image attachments.?

    How can I use the open in " My application" option to open image attachments.?
    I am trying to use the uti's given in the apple docs but just unable to do it however its working perfect for pdf and rtf files.
    please help needed urgent.   

    Perhaps you should Contact the iTunes Store Customer Service:
    Apple - Support - iTunes Store - Contact Us

  • When I try to install Lion it tell's me "You can't use this version of the application install mac os x Lion with this version of Mac os x" even though I have the latest update 10.5.8 of Mac os X?

    When I try to install Lion it tell's me "You can't use this version of the application install mac os x Lion with this version of Mac os X" even though I have the latest update 10.5.8 of Mac os X?
    The install icon has this sign on it 

    moose0422 wrote:
    You can't install Lion over Leopard. To install Lion, a requirement is Snow Leopard. So you can either upgrade to Snow Leopard first or you can make a bootable Lion install disc and use that to wipe your hard drive and install a fresh copy of Lion.
    So to make a disk would require you to purchase Snow Leopard and upgrade to 10.6.8 so you can use the App Store, unless you have access to another computer to download it from with your Apple ID. Remember it is about a 3.4GB download.
    Good Luck

  • How can i use Unix database in java?

    How can i use Unix database in Java?
    Message was edited by:
    JPro

    I have not a clue about FoxPro, but the db then is FoxPro and not Unix. The better question would be "How do I connect to FoxPro DB running on Unix with JDBC?".
    My answer to that would be, search the Internet for a JDBC driver.

  • I have updated to OS X 10.9 and now can't open Aperture, message reads You can't use this version of the application "Aperture" with this version of OS X. You have "Aperture" 3.2.3... all i need to know is how to get Aperture to work again..help !

    I have just updated to OS X 10.9 and now find that I can't open Aperture to access photos etc, message reads : You can't use this version of the application "Aperture" with this version of OS X. You have "Aperture" 3.2.3... whichj is not a lot of help, i have limited technical ability and all i need to know is how to get Aperture to work again...help !

    Software Update?

  • II  downloaded the OS X version 10.9 and my iPhoto version 9.2.3 will n.ot open.  I get a message that I can't use this version of the application I photo with this version of OSX.  What do I do now and how do I get the photos out of the old version?

    I downloaded the OS X version 10.9 and my Iphoto version 9.2.3 will not open.  I get a message that I can't use this version of the application I photo with this version of OS X.  How do I upgrade to a i photo that will run on 10.9.  Do I purchase a new program or can I do just an download?

    Check the "Purchases" page in the Mac App Store and see if there is a more recent version there already waiting for you.

  • Can I Use Swing Components in a JSP Page

    Hi,
    Can I use Swing Componnents in a JSP Page.If so,Can anybody provide with a sample code.
    Thanks.

    hi,
    I wanted to use the JTabbedPane for tab buttons in my
    Jsp Page.Is that possible?I am afraid that you can't.
    As for GUI (graphics) in the HTML page you can use only the html form elements (but you should simulate other behaviours by dynamically reloading the page).-
    Ionel.

  • Using JDBC in multithreaded Java application?

    Hello everyone
    Is it supported to use JDBC in multiple concurrent threads of a single Java application?
    I intend to use Java 7 (or even Java 8?) from standard Java multi-threaded library to access the following: Oracle 11g/12c and Microsoft SQL Server 2012-2014 and also PostgreSQL 9.4+.
    The Java dababase client application will run on Linux and on Windows (64-bit).
    If its supported to use JDBC in multi-threaded way - will it scale up well or am I better off using mutiple single-threaded Java applications instead?
    Are there any rules to follow when using JDBC from multiple-concurrent threads (such as: do not share any JDBC objects among threads, etc).
    Thank you
    Yuri Budilov

    Is it supported to use JDBC in multiple concurrent threads of a single Java application?
    Of course.
    I intend to use Java 7 (or even Java 8?) from standard Java multi-threaded library to access the following: Oracle 11g/12c and Microsoft SQL Server 2012-2014 and also PostgreSQL 9.4+.
    You should use a separate connection pool for each database.
    See the JDBC Dev Guide and use the latest Oracle driver and the latest connection methods shown in that doc
    http://docs.oracle.com/cd/E11882_01/java.112/e16548/toc.htm

  • I have just bought a 2011 iMac (2.5 ghz, 4gb) and logic express 9, and when i installed logic and tried to run it i had a message saying 'you can't use this version of the application logic express with this version of Mac OS X. How do i sort this out!?

    I have just bought a 2011 iMac (2.5 ghz, 4gb) and logic express 9, and when i installed logic and tried to run it i had a message saying 'you can't use this version of the application logic express with this version of Mac OS X. How do i sort this out!? It is very frustrating as the main reason i have bought  a mac is to use logic! Any help would be great as i am a complete novice when it comes to Macs!

    You're probably on OS X Lion?
    I had the same problem as you. I used Software Update to update Logic Express to the latest version, and then it ran without any problems.

  • Got message... you can't use this version of the application mail with this version of Max OS X, after i upgraded operating system to MAC OSA X Snow leopard.  How do I get my Mail?

    Hi ...just upgraded my Macbook pro to Mac OSX snow leopard and when I tried to look at my mail, I got this message "You can't use this version of the application mail with this version of MAC OS X".  What do I do now to look at my mail and receive new mail?

    After updating make sure you repair permissions and restart your computer.

  • You can't use this version of the application "logic pro" with this version of os x

    After installing all of Logic Studio (i.e. install dvd, audio content 1-3, jam packs 1-3), my laptop concludes that everything is installed successfully, however, when going to open to Logic, error icon appears and says:
    'you can't use this version of the application "logic pro" with this version of os x'

    Thank you! I found that just after I entered the question. I reinstalled everything two times, updated software, but was still having issues. But, I specifically updated the 9.1.8 (which was supposedly included in my standard software update). Guess I needed to give it some extra attention and affection.
    P.S. - Why do I feel like the more I upgrade versions of OS X, the worse off I am getting or am? Isn't it supposed to be opposite...isn't it supposed to make things better...come on, mac...where you at? mt. lion or mavericks. I'm downloading Snow Leopard to make some programs run. (um, yeah).

Maybe you are looking for

  • IPhone 4 will not show up in iTunes

    My new iPhone 4G is NOT showing up in iTunes when I plug it into my computer.I've updated my operating system and I have the current edition of iTunes. I just did a software update and now my computer is installing an airport base station update but

  • Interface with multiple msg.PM

    Hi, Experts, I'm considering the parallel migration to FS-PM from legacy system using migration solution. As far as I know, FS-PM has the business validation step (check data, recalculation the premium) after finishing the technical validation. To de

  • FileDialog

    How do use the FileDialog class to open a FileDialog box in your Java Program or is there something better to use?

  • BlackBerry Desktop Manager for Mac won't remember my sync preferences

    Each time I close BlackBerry Desktop Manager for Mac I and reopen it, I have to set all of my preferences for syncing my Calendar and Contacts again.  The software remembers my selections as long as I don't quit the application, but once I quit it an

  • How to enable ibus in console?(finished)

    When I open the terminal console, I just want to use ibus to type.But after I use Ctrl+Space , I found that the ibus program didn't work.How can I use ibus in console? Last edited by metaphor (2012-02-22 17:33:32)