Java Performance. Importing javax.swing.*

Hi everyone,
I have heard several times that importing entire packages into an application (class) that only requires 1-2 classes from that package is a bad idea, most notably for performance reasons (as well as code engineering quality).
I'm wondering if someone can provide a concise and insightful reasons as to why this is the case. I'm currently moving a C++ application to Java (don't ask why!) and am looking at performance aspects.
Thanks

import statements tell the compiler where to look for the classes
so it is not a performance issue when the program is executing.
Also at compile time, the difference is insignificant compared to the
rest of the compilation.
As for code maintenance, I find that if I am using something from the
java.util package, then I specifically import it, like import
java.util.Vector. However, I genenerally import java.awt.event.*; and
javax.swing.* because it is easier.
I would worry about the architecture of your code more than import
statements!!

Similar Messages

  • Import javax.swing.*;

    I start my programm with:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import rechenwerk.Rechenwerk; import rechenwerk.RechenwerkFassade;
    import zahl.Zahl; import zahl.ZahlFassade;
    import oberflaeche.Oberflaeche;
    At "import javax.swing.*" i get the failure message from the compiler:
    Oktalrechner.java:8: Package javax.swing not found in import.
    import javax.swing.*;
    What is wrong? I don't know-please help me.
    I'm using JDK1.2BETA4

    Tell me when you execute java -version, what you are getting?
    Looks like you are suing old JDK.
    Download the latest public release JDK1.4 from http://java.sun.com
    /Sreenivasa Kumar Majji.
    Did somebody help you? I have a similar problem with
    javax.resource... :(
    I start my programm with:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import rechenwerk.Rechenwerk; import
    rechenwerk.RechenwerkFassade;
    import zahl.Zahl; import zahl.ZahlFassade;
    import oberflaeche.Oberflaeche;
    At "import javax.swing.*" i get the failure message
    from the compiler:
    Oktalrechner.java:8: Package javax.swing not foundin
    import.
    import javax.swing.*;
    What is wrong? I don't know-please help me.
    I'm using JDK1.2BETA4

  • Import javax.swing.JOptionPane

    hello
    i just installed j2sdk1.3.1 into my redhat linux7.3, during installation, everything's fine...
    but when i start to compile a program with some import classes...i face the problem :
    cannot find type "javax/swing/JOptionPane
    this is my program :
    import javax.swing.JOptionPane;
    public class Welcome{
    public static void main(String args[])
         JOptionPane.showMessageDialog(null,"Hello");
         System.exit(0);
    can anybody help me with this problem......?...thanks

    type
    java -versionto see which version of the JVM you are running
    you could also try
    which javato see the actuall executable that you are running.

  • Import javax.swing.* error

    Heya. I decided to learn java and i've been doing the tutorials, recently i started the swing tutorials and the learn by example page. However, whenever I try to import javax.swing.* it gives me an error. SO you know, i am using the J2SDK 1.4.2 and netbeans IDE 5.0. Here's the error text and what i type.
    import javax.swing.* ;
    the error is:
    illegal start of expression and then sometimes i get <identifier> expected.
    can anyone help me?

    To update. I figured out how to do this with a blank start file in netbeans, however it's awful to have to delete main and then make a new class file. So, is there anyway to get a blank template project or to import javax.swing.* without having to delete main and start with a blank file? SO, i guess my question has changed, but it's still about an import javax.swing.* error.
    thanks.

  • Cannot Import javax.swing.JOptionPane   Please HELP!!!

    import javax.swing.JOptionPane;
    this line of code returns the error:
    C:\Java Files\BankAccount\BankAccount_Test.java:1: Class javax.swing.JOptionPane not found in import.
    import javax.swing.JOptionPane;
    ^
    1 error
    Process completed.
    Please help, I don't know what the problem could be....

    Swing was not part of any JDK's earlier than 1.2. Swing (or anything with a J in front of it, ie. JFrame, JOptionPane, etc...) was probably the most dramatic (if not largest) modification/addition to the Java language, that's why versions later than, and including, 1.2 are known as "Java 2".

  • Importing javax.swing

    Im getting error while running script..
    The message :
    $ javac tablePane.java
    tablePane.java:3: Package javax.swing not found in import.
    import javax.swing.*;
    ^
    1 error
    $
    Can i have solution for this?
    Pani.G

    I am using metrowerks and i get the same problem with
    similiar code. I have J2sdk 1.4
    what do you think is wrong?I don't have worked with Metrowerks before, so are you sure that the compiler doesn't have an own
    JDK embedded (like JBuilder) ?
    If this is the case, I don't know if you can select in Metrowerks an other installed JDK.
    With kind regards
    F.-M. Jaeschke

  • Can't use import javax.swing.RowFilter; in javafx

    Dear all,
    I'm a question for you.
    I developed a javafx application in which I use also swing dialog and swingx libraries.
    The question is I can't use jtable filter of java jdf 1.6
    That is when I try to add in my netbeans javafx project
    import javax.swing.RowFilter;
    it says me it's not correct library
    If I create a java swing application I can add this include.
    Why it?
    I edited netbeans conf to set javafx sdk to javafx lib I downloaded (whole sdk), not that one with netbeans, but nothing.
    It seems like I can't use this import in javafx application.
    Is it posbbile?
    Please help me

    The reason you cannot use it is because javax.swing.RowFilter was introduced in Java 1.6 . Netbeans compiles JavaFX to work with Java 1.5, which does not have the class in question.
    I have gotten around this by going to the properties->Libraries->Add JAR/Folder menu and included the jre/lib/rt.jar file from the jre directly into my project.
    Someone else posted a similar solution and more detailed explanation here: http://steveonjava.com/hacking-javafx-10-to-use-java-16-features/

  • Importing  javax.swing.plaf.basic.BasicListUI.MouseInputHandler

    Hi!!
    I have totally no idea why I cannot import javax.swing.plaf.basic.BasicListUI.MouseInputHandler. The compiler says BasicListUI interface is expected.

    Agreed (maybe even so for 1.4.1 that I've just wiped out so I can't cehck my old rt.jar :o).
    For the moment I use my old translation of the basic.properties (and windods.properties) packed in a jar-file placed in
    jreXX/lib/ext/myLanguage.jar
    So far it works for the dialogs in my applications ...
    However, I don't find this a clean solution. I now find basic.class in rt.jar. Juged from all the other basic_xx.class files in rt.jar I guess this is where basic.properties went ... My next move will be to get hands on the source code of JAVA and check out how basic.java looks like ... perhaps this is a class filled with static fields and a simple method that sets properties in memeory or ? or ? ... In particular I need find out if some 'fields' have been added or removed compared to the old basic.properties. If so, the old translation would only be parial and my apps would be a mix of danish and english.
    I'm not really that much of a JAVA programmer and this is just to share some thoughts. Does anyone out there know a central reference on how those of us that speak minority languges easily get translations of core JAVA stuff (meaning Yes, No, Cancel and the like) take effect the easy way? Are there national boards that take care of such business?
    Maybe I haven't searched enough for information - my apologies if you found it waste of time reading this reply.
    With kind regards and thanks in advance, MJTJ

  • Import javax.swing problems

    hey
    I am new to java and have recently downloaded j2sdk1.4.2_04. I am trying to create a simple graphical application. However, It doesnt seem to import the javax.swing.* libraries. I understand that there is the src.zip in the directory, so I unzipped it but it still doesn't read the package. I read elsewhere on this forum that you should set the path to src.zip. I have tried that and it also doesnt work. My current path is:
    PATH=C:\j2sdk1.4.2_04\lib\src.zip;C:\j2sdk1.4.2_04\bin
    Is there an error in this, or what else should I try? All suggestions greatly appreciated.

    There's no need to set your classpath when importing any of the standard packages that are provided by the JDK. Perhaps you could post a (small) code sample and the compiler error you are getting.

  • Having problems compiling *.java with import javax.servlet.jsp......

    I've been trying to do the tutorials in a book titled Apache Jakarta-Tomcat as part of my introduction to JSP. I'm new to Java but do know the basics. I have on my machine Java 1.3, Java 1.4, Java FrameWorks 2.1 and Jython 2.1 on Win2000 Pro. So enough about my configuration. I have never worked with packages also.
    I downloaded the files from the books site due to the fact I make a lot of typos when hand coding Java (I've become a pretty good debugger of my own code). But everytime I go to compile the *.java I get error messages. So below you will find HelloTag.java and beneath that the error messages that are thrown when I try and compile it. I tested other bits of *.java and have had no problem compiling them. Is there a JSP module I'm missing?
    Am I doing something wrong or am I missing something from my configuration.
    Marijan Madunic
    package chapter2;
    import javax.servlet.jsp.JspException;
    import javax.servlet.jsp.JspTagException;
    import javax.servlet.jsp.tagext.TagSupport;
    public class HelloTag extends TagSupport
    public void HelloTag() {
    // Method called when the closing hello tag is encountered
    public int doEndTag() throws JspException {
    try {
    // We use the pageContext to get a Writer
    // We then print the text string Hello
    pageContext.getOut().print("Hello");
    catch (Exception e) {
    throw new JspTagException(e.getMessage());
    // We want to return SKIP_BODY because this Tag does not support
    // a Tag Body
    return SKIP_BODY;
    public void release() {
    // Call the parent's release to release any resources
    // used by the parent tag.
    // This is just good practice for when you start creating
    // hierarchies of tags.
    super.release();
    D:\Java\JDK 1.3\bin>javac HelloTag.java
    HelloTag.java:3: cannot resolve symbol
    symbol : class JspException
    location: package jsp
    import javax.servlet.jsp.JspException;
    ^
    HelloTag.java:4: cannot resolve symbol
    symbol : class JspTagException
    location: package jsp
    import javax.servlet.jsp.JspTagException;
    ^
    HelloTag.java:5: cannot resolve symbol
    symbol : class TagSupport
    location: package tagext
    import javax.servlet.jsp.tagext.TagSupport;
    ^
    HelloTag.java:7: cannot resolve symbol
    symbol : class TagSupport
    location: class chapter2.HelloTag
    public class HelloTag extends TagSupport
    ^
    HelloTag.java:14: cannot resolve symbol
    symbol : class JspException
    location: class chapter2.HelloTag
    public int doEndTag() throws JspException {
    ^
    HelloTag.java:20: cannot resolve symbol
    symbol : variable pageContext
    location: class chapter2.HelloTag
    pageContext.getOut().print("Hello");
    ^
    HelloTag.java:24: cannot resolve symbol
    symbol : class JspTagException
    location: class chapter2.HelloTag
    throw new JspTagException(e.getMessage());
    ^
    HelloTag.java:28: cannot resolve symbol
    symbol : variable SKIP_BODY
    location: class chapter2.HelloTag
    return SKIP_BODY;
    ^
    HelloTag.java:37: cannot resolve symbol
    symbol : variable super
    location: class chapter2.HelloTag
    super.release();
    ^
    9 errors

    Well, it looks like you've not got the servlet development kit JAR on your classpath. I think it'll probably be called servlet.jar on your system. Add that to the classpath if it's not already there.
    Incidentally, you've bumped into one of the areas Java's slightly lenient - declaring a method that looks like a constructor:
    public HelloTag() { }
    public void HelloTag() { }The first is a constructor, the second is a normal method. I'm assuming you intended to have the former instead of the latter.
    Anyway, hope this helps.

  • Java.lang.ClassNotFoundException: javax.swing.JFrame

    i have developed a program in java and it is working fine in windows xp, but when i try to execute it in redhat linux, the ff errors are generated:
    Exception in thread "main" java.lang.InternalError: Unexpected exception while defining class WESMOMP$1: java.lang.ClassNotFoundException: javax.net.ssl.HostnameVerifier
       at 0x00362ca3: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/./libgcj.so.3)
       at 0x00355b1e: java.lang.Error.Error(java.lang.String) (/usr/lib/./libgcj.so.3)
       at 0x00363086: java.lang.VirtualMachineError.VirtualMachineError(java.lang.String) (/usr/lib/./libgcj.so.3)
       at 0x003574be: java.lang.InternalError.InternalError(java.lang.String) (/usr/lib/./libgcj.so.3)
       at 0x00354abf: java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int, java.security.ProtectionDomain) (/usr/lib/./libgcj.so.3)
       at 0x003548a3: java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int) (/usr/lib/./libgcj.so.3)
       at 0x003ebd96: java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/./libgcj.so.3)
       at 0x003420f7: gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String) (/usr/lib/./libgcj.so.3)
       at 0x00354794: java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/./libgcj.so.3)
       at 0x003427fc: _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/./libgcj.so.3)
       at 0x0033ec6d: java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/./libgcj.so.3)
       at 0x0033549f: _Jv_BytecodeVerifier.verify_instructions_0() (/usr/lib/./libgcj.so.3)
       at 0x0032b7c7: _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/./libgcj.so.3)
       at 0x00323a64: _Jv_PrepareClass(java.lang.Class) (/usr/lib/./libgcj.so.3)
       at 0x00341f88: java.lang.ClassLoader.linkClass0(java.lang.Class) (/usr/lib/./libgcj.so.3)
       at 0x00354b43: java.lang.ClassLoader.resolveClass0(java.lang.Class) (/usr/lib/./libgcj.so.3)
       at 0x003403fc: java.lang.Class.initializeClass() (/usr/lib/./libgcj.so.3)
       at 0x0033ec94: java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/./libgcj.so.3)
       at 0x0033ed2f: java.lang.Class.forName(java.lang.String) (/usr/lib/./libgcj.so.3)
       at 0x003a6e81: gnu.gcj.runtime.FirstThread.run() (/usr/lib/./libgcj.so.3)
       at 0x00349aec: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/./libgcj.so.3)
       at 0x0031682c: _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/./libgcj.so.3)
       at 0x08048930: ?? (??:0)
       at 0x006f778a: __libc_start_main (/lib/tls/libc.so.6)
       at 0x080486e1: ?? (??:0)I think that java cannot see the javax package.
    also i tried to execute a java program that uses mysql connector, it generated this error:
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
       at 0x00362ca3: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/./libgcj.so.3)
       at 0x00355b62: java.lang.Exception.Exception(java.lang.String) (/usr/lib/./libgcj.so.3)
       at 0x00355218: java.lang.ClassNotFoundException.ClassNotFoundException(java.lang.String) (/usr/lib/./libgcj.so.3)
       at 0x003ebdb9: java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/./libgcj.so.3)
       at 0x003420f7: gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String) (/usr/lib/./libgcj.so.3)
       at 0x003547af: java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/./libgcj.so.3)
       at 0x00342839: _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/./libgcj.so.3)
       at 0x0033ec6d: java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/./libgcj.so.3)
       at 0x0033ed2f: java.lang.Class.forName(java.lang.String) (/usr/lib/./libgcj.so.3)
       at 0x0047d007: ffi_call_SYSV (/usr/lib/./libgcj.so.3)
       at 0x0047cfc7: ffi_raw_call (/usr/lib/./libgcj.so.3)
       at 0x0032a658: _Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation) (/usr/lib/./libgcj.so.3)
       at 0x0032af64: _Jv_InterpMethod.run(ffi_cif, void, ffi_raw, _Jv_InterpMethodInvocation) (/usr/lib/./libgcj.so.3)
       at 0x00328474: _Jv_InterpMethod.run_normal(ffi_cif, void, ffi_raw, void) (/usr/lib/./libgcj.so.3)
       at 0x0047ce7c: ?? (??:0)
       at 0x0033cd68: gnu.gcj.runtime.FirstThread.call_main() (/usr/lib/./libgcj.so.3)
       at 0x003a6e91: gnu.gcj.runtime.FirstThread.run() (/usr/lib/./libgcj.so.3)
       at 0x00349aec: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/./libgcj.so.3)
       at 0x0031682c: _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/./libgcj.so.3)
       at 0x08048930: ?? (??:0)
       at 0x0074c78a: __libc_start_main (/lib/tls/libc.so.6)
       at 0x080486e1: ?? (??:0)how to install the mysql jdbc connector?
    please help...thx

    First: Check java version
    $java -version
    Second: Run your program with explicit classpath declaration
    $java -cp yourjdbcdriver.jar;yourprogram.jar com.you.program.ClassContainingMainMethodI'm not sure what to use for jar's delimeter semicolon, or colon. Try both.

  • Java.lang.ClassCastException:javax.swing.JButton

    I get this error when I push a JButton which should do this:
    Read some values from some JTexField's (the values are doubles) add these together and write the sum to an other JTextField. It does everything but the writing to the last JTextField.
    Here follows some of my code:
    butLoginn.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    double sum = 0;
    try{
    int n = panLoggInn.getComponentCount();
    //     get the number of components have 50 now
    for (int i = 8; i < n;i = i+5){
    JTextField txfField =
    (JTextField)panLoggInn.getComponent(i);
    //get the right component
    JTextField txfSum =
    (JTextField)panLoggInn.getComponent(i+1);
    String and = new String(txfbeste.getText());
    txfsum.setText(and);
    System.out.println("Component" + (i+1) + "has value: " + txfSum.getText());
    sum = sum + Double.parseDouble(txfsum.getText());
    String valueSum = new String(String.valueOf(sum));
    txfSum.setText(valueSum);
    catch(Exception eb){
    System.out.println(eb);
    lblFeilmelding.setText("Not valid input");
    txfSum.setText("0");}
    I would be grateful if anyone could help me!!

    You must be using some components that are not JTextFields in that loop. Put some debugging statements in there to see what is the actual class of the components you are trying to cast to JTextField. (Use panLoggInn.getComponent(i).getClass().getName() and so on.)

  • Java 1.4.2 swing (setBounds) performance problem

    Hi,
    We were having performance problems with swing ever since we moved to java 1.4.2 and we finally switched back to 1.4.1. However, we have now traced the problem to JVM and the following simple code demonstrates it.
    I would like to hear from others who faced or solved this.
    When the setBounds is called, there is visible delay in checking/unchecking boxes.
    Without it, the performance is good. The performance is good with 1.4.1 as well.
    Code sample for JComponentTest :
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.JButton;
    import javax.swing.JCheckBox;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    public class JComponentTest extends JFrame {
    public final static int MAX_JLBL = 50;
    private static double _clicked = 0.0;
    // pop up window
    private JPanel _configPanel = new JPanel();
    private JCheckBox[] _configArray = new JCheckBox[MAX_JLBL];
    private JButton _toggle = new JButton("update");
    public JComponentTest() {
    setTitle("JLabelTest");
    // setBounds causes performance problems
    setBounds(1278, 4, 203, 361);
    getContentPane().add(_configPanel);
    for(int i=0; i<_configArray.length; i++){
    _configArray[i] = new JCheckBox("cb"+i);
    configPanel.add(configArray);
    _configArray[i].addActionListener(new ConfigListener());
    configPanel.add(toggle);
    _toggle.addActionListener(new ConfigListener());
    setVisible(true);
    // listenres
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(1);
    } // end constructor
    public static void main(String[] args) {
    new JComponentTest();
    /** This class implements the ActionListener and being used for configuration
    * fields.
    private class ConfigListener implements ActionListener {
    public void actionPerformed(ActionEvent ae) {
    boolean selected = (_clicked%2 ==0);
    if (selected)
    for(int i=0; i<_configArray.length; i++)
    ((JCheckBox)_configArray[i]).setSelected(true);
    else
    for(int i=0; i<_configArray.length; i++)
    ((JCheckBox)_configArray[i]).setSelected(false);
    _clicked++;

    weebib
    We are using Windows XP , Nvidia graphics card, with Multiview. I hope the problem is not specific to the platform.
    It is reproducible with 1.4.2 and absent in 1.4.1
    camickr
    I am new to this forum. didn't know about code blocks.

  • Package javax.swing.event not found in import.

    I'm receiving the above error message when compiling a Java application which begins with the following import statements:
    * 1.1+Swing version.
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    My Classpath System variables are as follows:
    C:\IBMCON~1\CICS\Classes\CTGCLI~1.JAR;.;C:\PROGRA~1\MQSeries\java\lib\COMIBM~2.JAR;C:\PROGRA~1\MQSeries\java\lib\COMIBM~1.JAR;C:\PROGRA~1\MQSeries\java\lib\COMIBM~3.JAR;C:\PROGRA~1\MQSeries\tools\javaclnt\samples\en_us;C:\Program Files\SQLLIB\java\db2java.zip;C:\Program Files\SQLLIB\java\runtime.zip;C:\Program Files\SQLLIB\bin;C:\Program Files\SQLLIB\java\SQLj.zip
    I have Java(TM) 2 SDK, Standard Edition, Version 1.4.0 installed and am running Windows 2000.
    I'd appreciate any ideas as to why this compiler error occurs. Thanks very much.

    What error message?
    As stated, looks like something's not where it's supposed to be.
    Here's the search order of your classpath:
    C:\IBMCON~1\CICS\Classes\CTGCLI~1.JAR
    C:\PROGRA~1\MQSeries\java\lib\COMIBM~2.JAR
    C:\PROGRA~1\MQSeries\java\lib\COMIBM~1.JAR
    C:\PROGRA~1\MQSeries\java\lib\COMIBM~3.JAR
    C:\PROGRA~1\MQSeries\tools\javaclnt\samples\en_us
    C:\Program Files\SQLLIB\java\db2java.zip
    C:\Program Files\SQLLIB\java\runtime.zip
    C:\Program Files\SQLLIB\bin
    C:\Program Files\SQLLIB\java\SQLj.zip

  • Exception at javax.swing.UIManager.setLookAndFeel(UIManager.java:435)

    Only in one machine (AIX 5.2 with J2RE 1.3.1 IBM) I got the following exception:
    "main" (TID:0x300C19D8, sys_thread_t:0x3003EF58, state:R, native ID:0x1) prio=5
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.java2d.SunGraphicsEnvironment.<init>(SunGraphicsEnvironment.java:105)
         at sun.awt.X11GraphicsEnvironment.<init>(X11GraphicsEnvironment.java:82)
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Class.java:262)
         at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:72)
         at java.awt.Font.initializeFont(Font.java:285)
         at java.awt.Font.<init>(Font.java:319)
         at javax.swing.plaf.FontUIResource.<init>(FontUIResource.java:51)
         at javax.swing.plaf.basic.BasicLookAndFeel.getFont(BasicLookAndFeel.java:252)
         at javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults(BasicLookAndFeel.java:271)
         at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:210)
         at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:80)
         at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1088)
         at javax.swing.UIManager.setLookAndFeel(UIManager.java:408)
         at javax.swing.UIManager.setLookAndFeel(UIManager.java:435)
    Other machine works fine.
    Any suggestion?
    Grazie

    So I can only assume that I have the the necessary resources installed correctly. Any thoughts on what might be causing my problem?
    com.sun.java.plat.windows.WindowsClassicLookAndFeel // the class you're trying to set
    com.sun.java.plaf.windows.WindowsClassicLookAndFeel // the class that is actually availableSee the difference?
    ~

Maybe you are looking for

  • Error 500--Internal Server Error.PLEASE   HELP .

    hi, I am using BEA weblogic server 9.0.i created a new domain named myproject.I have created directory mywebapp under applications dir. i.e C:\bea\user_projects\domains\myproject\applications\mywebapp I have placed my servlet class in : C:\bea\user_p

  • Item not relevant for billing - Batch Management

    Dear Experts, I'm testing the Batch Management with the configuration detalied on the Building Block - J19 from SAP. So I've created a new item position called YG05 which is working for the batch spliting. But now the problem is that when I'm billing

  • [SOLVED] Yet another time issue...

    Hi there, I'm having some crazy, hair pulling, head banging UTC time issues on both my dual boot (Arch & Windows 8) desktop and single boot laptop. I've been searching and following a mulitude of old threads and the official Wiki guide, however, I si

  • I saved quite a few .webloc files to share with a colleague

    now i realized that she cannot open the links because she uses a PC. i understand that i can use some tricks and convert those .webloc files to .url files. but is there a more native way for windows users to be able to read the .webloc files. either

  • Differentiate between DC and ADC

    Hi, How can I differentiate that which machine in my domain is DC and which one is ADC? Best Regards, Parveen Chauhan [email protected] Mobile: +91-9811629793