Org.jdesktop.application.ResourceMap$LookupException

Hi..
My gui application works fine if I dont jar the appln. If I jar it and invoke it like,D:\my_instal>java -Djava.library.path=.;.\lib -jar jaf.jar,I get the attached error..Any ideas?.ThanksSerialPort class loaded: jspWin
Aug 4, 2008 2:44:07 PM org.jdesktop.application.Application$1 run
SEVERE: Application class com.my.gui.my failed to launch
org.jdesktop.application.ResourceMap$LookupException: string conversion failed:
resource btnAddAllAction.Action.icon, type interface javax.swing.Icon
        at org.jdesktop.application.ResourceMap.getObject(ResourceMap.java:578)
        at org.jdesktop.application.ResourceMap.getIcon(ResourceMap.java:787)
        at org.jdesktop.application.ApplicationAction.initActionProperties(Appli
cationAction.java:449)
        at org.jdesktop.application.ApplicationAction.<init>(ApplicationAction.j
ava:252)
        at org.jdesktop.application.ApplicationActionMap.addAnnotationActions(Ap
plicationActionMap.java:147)
        at org.jdesktop.application.ApplicationActionMap.<init>(ApplicationActio
nMap.java:81)
        at org.jdesktop.application.ActionManager.createActionMapChain(ActionMan
ager.java:64)
        at org.jdesktop.application.ActionManager.getActionMap(ActionManager.jav
a:169)
        at org.jdesktop.application.ApplicationContext.getActionMap(ApplicationC
ontext.java:303)
        at com.my.gui.MidletSelectionPanel.initialize(MidletSelectionPanel.
java:96)
        at com.my.gui.MidletSelectionPanel.<init>(MidletSelectionPanel.java
:85)
        at com.my.gui.my.initialize(my.java:81)
        at org.jdesktop.application.Application$1.run(Application.java:170)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: org.jdesktop.application.ResourceConverter$ResourceConverterException
: couldn't find Icon resource "right_right.png" string: "right_right.png"
        at org.jdesktop.application.ResourceMap.loadImageIcon(ResourceMap.java:1
378)
        at org.jdesktop.application.ResourceMap.access$000(ResourceMap.java:93)
        at org.jdesktop.application.ResourceMap$IconStringConverter.parseString(
ResourceMap.java:1465)
        at org.jdesktop.application.ResourceMap.getObject(ResourceMap.java:573)
        ... 20 more
Exception in thread "AWT-EventQueue-0" java.lang.Error: Application class com.mo
t.jaf.gui.my failed to launch
        at org.jdesktop.application.Application$1.run(Application.java:177)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: org.jdesktop.application.ResourceMap$LookupException: string conversi
on failed: resource btnAddAllAction.Action.icon, type interface javax.swing.Icon
        at org.jdesktop.application.ResourceMap.getObject(ResourceMap.java:578)
        at org.jdesktop.application.ResourceMap.getIcon(ResourceMap.java:787)
        at org.jdesktop.application.ApplicationAction.initActionProperties(Appli
cationAction.java:449)
        at org.jdesktop.application.ApplicationAction.<init>(ApplicationAction.j
ava:252)
        at org.jdesktop.application.ApplicationActionMap.addAnnotationActions(Ap
plicationActionMap.java:147)
        at org.jdesktop.application.ApplicationActionMap.<init>(ApplicationActio
nMap.java:81)
        at org.jdesktop.application.ActionManager.createActionMapChain(ActionMan
ager.java:64)
        at org.jdesktop.application.ActionManager.getActionMap(ActionManager.jav
a:169)
        at org.jdesktop.application.ApplicationContext.getActionMap(ApplicationC
ontext.java:303)
        at com.my.gui.MidletSelectionPanel.initialize(MidletSelectionPanel.
java:96)
        at com.my.gui.MidletSelectionPanel.<init>(MidletSelectionPanel.java
:85)
        at com.my.gui.my.initialize(my.java:81)
        at org.jdesktop.application.Application$1.run(Application.java:170)
        ... 8 more
Caused by: org.jdesktop.application.ResourceConverter$ResourceConverterException
: couldn't find Icon resource "right_right.png" string: "right_right.png"
        at org.jdesktop.application.ResourceMap.loadImageIcon(ResourceMap.java:1
378)
        at org.jdesktop.application.ResourceMap.access$000(ResourceMap.java:93)
        at org.jdesktop.application.ResourceMap$IconStringConverter.parseString(
ResourceMap.java:1465)
        at org.jdesktop.application.ResourceMap.getObject(ResourceMap.java:573)
        ... 20 more
        ... 20 more

my application is modular.
algorithm java classes are added at runtime and all they got at construction time is org.jdesktop.application.Application.
how can i set a flag for my thread?
is there any way to "catch" running Task in app and do something like this: Task.cancel() ?

Similar Messages

  • GlassFish: java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout$

    Hi,
    I am new to java, liked the tool nebeans and want to shift to it.
    I created a desktop swing application containing one blank form only, set its property to run on JWS. It works fine, then I created a project for deploying the app on GlassFish. Verified it, it gave no error. But on launching the app from GlassFish V2 b58g, I get following error;
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at com.sun.enterprise.appclient.jws.boot.JWSACCMain.run(JWSACCMain.java:218)
         at com.sun.enterprise.appclient.jws.boot.JWSACCMain.main(JWSACCMain.java:177)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group
         at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:454)
         ... 15 more
    Caused by: java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group
         at java.lang.Class.getDeclaredMethods0(Native Method)
         at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
         at java.lang.Class.getMethod0(Unknown Source)
         at java.lang.Class.getMethod(Unknown Source)
         at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:236)
         at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:417)
         ... 15 more
    Please help me out.
    Thanks
    Krishnan

    krishnan wrote: I am new to java, liked the tool nebeans and want to shift to it.
    Since, at one post, it seems you are not just new to Netbeans, Java and JWS, but also the Sun forums, I will take this moment to point out that adding Dukes to a question encourages replies, and can be done at any point in a thread.
    krishnan wrote: Caused by: java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group ..
    This is usually caused by the lack of the Jar containing the named class, in the application classpath. The application classpath is specified in the JNLP file.
    GroupLayout is also a Netbeans specific class. I recommend coding most GUIs in core J2SE layouts, to avoid you having to supply the Jar, and the user to download it.
    If you try to add the jar without success, it would be helpful to know the basic 'layout' of the server (e.g. describe where all the resources, including the JNLP file(s) and jar(s) are located) and the content of the JNLP file.
    Note also that Netbeans makes horrid JNLP files. You are better off writing your own and ensuring Netbeans never gets the idea it is expected to edit it. You can do this by abandoning some of the 'click a button' ease that you apparently quite like, and using Ant to build and deploy the project.
    Ant adds a bit more learning, but is well worth the effort, as projects that can be worked on in Netbeans, can also be worked on using Eclipse (and every other IDE that supports Ant), or can be built from the command line.

  • Org.jdesktop.jdic.init.JdicInitException: java.io.IOException: The filename

    "org.jdesktop.jdic.init.JdicInitException: java.io.IOException: The filename, dir
    ectory name, or volume label syntax is incorrect"
    I'm getting the above error in my java application. How to solve tis.. Pl help me..

    Hello,
    Maybe a bit of context would help to help you, such as... which method are you calling when JDIC raises this exception, and which is the file path that you pass in argument?
    And please write fully-spelled words, abbreviating everyday words such as "please" is not comfortable nor polite for your readers.
    Regards,
    J.

  • Org.jdesktop.layout.GroupLayout Error..

    org.jdesktop.layout.GroupLayout is a class used in Netbeans ide and is used for specifying the layout of the controls on the form.. how do i use this when im building my application in notepad..
    Thanx in advance..

    http://java.sun.com/docs/books/tutorial/uiswing/layout/group.html

  • Package org.jdesktop.layout does not exist?

    I have created a project in Netbeans using the Java Project with Existing Ant Script and am trying to use the Netbeans GUI interface to develop my project, but even though I have created a folder that contains the swing-layout-1.0.3.jar and I no longer get the errors in my java file, I cannot built the project. I get the error: package org.jdesktop.layout does not exist.
    In my java code, I can make an import statement, and Netbeans gives no errors. I can start typing "org. " and Netbeans suggests the classes, so clearly the org.jdesktop.layout does exist and is available to the code. So why am I getting this error, and how can I correct it?
    Thanks in advance,
    Chris Coulon

    i could compile it properly by givin the path to the swing-layout-1.0.3.jar file in classpath. but i'm not able to run it now. i get the following error.
    Exception in thread "main" java.lang.NoClassDefFoundError: CMSUI (wrong name: my
    /cmsui/CMSUI)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    4)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    thanks

  • Netbeans 5.0 beta: package org.jdesktop.layout does not exist

    This is a newbie question. I'm running netbeans 5.0 beta and put together a UI with the nice UI builder in netbeans. When I go to compile I get "package org.jdesktop.layout does not exist". I've updated my class path via the netbeans libaryar manager to include the jars swing-layout-0.7.jar and org-jdesktop-layout.jar but it is still not finding the class. What am I missing? Thanks!

    Do you get this error when selecting "run" from within NetBeans?
    When I create a project using Netbeans 5.0 beta using the form designer NetBeans automatically adds swing-layout-0.7.jar to the list of libraries in the libraries node in the project window. I didn't do anything fancy.
    Do you get this error if you create another project?
    it works fine for me.

  • Import  Package org.jdesktop.swingx.autocomplete  ??

    how to import Package org.jdesktop.swingx.autocomplete in my code
    its Giving error ,,,
    i am using Auto Complete Supprt For my Combo Box .......but i am unable to import the package containg nesseary classes like
    AutoCompleteSupport support = AutoCompleteSupport.install(
    this.comboBox, GlazedLists.eventListOf(elements));
    AutoCompleteDecorator.decorate(this.comboBox);
    how to import package for the above calsses ,,,or i have to add any Jar File ,,plzz suggest

    You have to add the appropriate JAR files to your library to allow use of the features you want, then you do a:
    import org.jdesktop.swingx.autocomplete; //in your project.

  • Java.io.NotSerializableException: org.jdesktop.layout.GroupLayout

    Hi All,
    I have a JTree which has re-arrangable nodes. On selection of every node I populate a JTable. Data in JTable is specific to every node. I can add, update and delete rows in JTable. I need to maintain the latest state of the JTable specific to every node. As a result I maintain the TableModel specific to every node in the UserObject related to the node.
    When I set the reference of a model in the UserObject of the tree node and then try to re-arrange the tree nodes I get the following error message:
    java.io.NotSerializableException: org.jdesktop.layout.GroupLayout
    Please help me to solve this problem.
    Thanks in advance.

    shreenivasa wrote:
    swing-layout-1.0.jar added this jar file. Are there any other jar files needs to be in classpath?That's the correct Jar to add, I take it you got in from the Netbeans install directory?
    I would guess the problem is your Manifest file, you have probably exported this from
    Netbeans but don't have the Jar on your classpath or it cant be found in the place you
    specified in your Manifest
    GroupLayout was added to J2SE 6 as a standard class so this might be better to change to this
    than your current approach if your clients use this Java version. It's one less jar to bundle with your app.

  • Package  org.jdesktop.swingx.autocomplete    ??? (import problem )

    how to import Package org.jdesktop.swingx.autocomplete in my code
    its Giving error ,,,
    i am using Auto Complete Supprt For my Combo Box .......but i am unable to import the package containg nesseary classes like
    AutoCompleteSupport support = AutoCompleteSupport.install(
    this.comboBox, GlazedLists.eventListOf(elements));
    AutoCompleteDecorator.decorate(this.comboBox);
    how to import package for the above calsses ,,,or i have to add any Jar File ,,plzz suggest

    I should say download swingx.jar?

  • Java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout

    Hello,
    what is this error?
    I imported
    import org.jdesktop.layout.*;
    any suggestions?

    shreenivasa wrote:
    swing-layout-1.0.jar added this jar file. Are there any other jar files needs to be in classpath?That's the correct Jar to add, I take it you got in from the Netbeans install directory?
    I would guess the problem is your Manifest file, you have probably exported this from
    Netbeans but don't have the Jar on your classpath or it cant be found in the place you
    specified in your Manifest
    GroupLayout was added to J2SE 6 as a standard class so this might be better to change to this
    than your current approach if your clients use this Java version. It's one less jar to bundle with your app.

  • Package org.jdesktop.jdic.browser does not exists

    I am geting error
    'package org.jdesktop.jdic.browser does not exists' after moving to JDK 1.6_27 from 1.5_06
    Which jar file do i have to add for this error to go away?
    Can anyone helpme with the file name and path to download from?
    Thanks

    Thanks for the reply.I have moved to java 6 now and I dont want to use JDIC as no documentaion or download is available .
    Is there any alternative for jdic web browser in Java 6.
    Earlier in Java 5 I was using the below code to embedd the browser in the jpanel
    org.jdesktop.jdic.Webbrowser webbrowser=new WebBrowser
    webBrowser.seturl(pdfUrl)
    Jpanel testPanel=new jPanel();
    jpanel.add(webBrowser,BorderLayout.CENTER)
    here pdfURl is the url of a pdf file which I want to open in browser which is embed in jpanel.
    How can I do the same thing without the webbrowser.
    I read the java.awt.desktop browse method but it opens in a new window ,how can I embedd it in the jpanel?
    Please help.

  • Package Not Found - org.jdesktop - Java 3D 1.3.1

    I am trying to import the following package:
    import org.jdesktop.j3d.loaders.vrml97.*;
    My compiler returns an error: import org.jdesktop.j3d.loaders.vrml97.*;
    This package is part of Java 3D - 1.3.1, found at http://java.sun.com/products/java-media/3D/
    I installed the API and I am running Windows. Does anyone have an idae why my compiler cannot find this package? Do I need to add an additional classpath? I assumed that the Java 3D installer would have taken care of this for me.

    Under NetBeans -> Project Properities -> Libraries, there is a compile library and a run library. I added the package to the run library, but I forgot to add it to the compile library. I know, typical newbie error.

  • Org.jdesktop.layout?

    when Netbeans auto generates it, there are many referances to that package and i want to know how to get the actual package because I dont have it and it wont let me compile.

    and for NetBeans 6.1?
    The reason i ask is that i've added
    C:\Program Files\NetBeans 6.1\platform8\modules\ext\swing-layout-1.0.3.jar
    to my class path but still get this error when setting the Layout to Free Design.
    Please help.
    Thanks SteveHutch

  • Org and javax packages

    hello,
    where should I look for documentation on org and javax packages?
    I mean, if I see a function from the java package, I can google it and find out which are it's constructors, methods, what it implements or extends etc.
    But if I see for instance import org.jdesktop.application.ResourceMap where can I find out anything about this one? Just try to google it, nothing useful comes up. Or try FrameView, which is quite important- the same problem.
    Are this packages documented somewhere, like java package is?

    Javax packages are standard Java eXtensions (y'see?) and the docs tend to be in the standard Sun documentation. As for "org", you need to look a bit further. For instance if you're talking about packages starting with org.apache, that points you to apache.org. So for org.jdesktop, guess where you go? It's the recommended way to name your packages, from your domain name that way.

  • Returning index of selected comp... jComboBox that is editing a jTable cell

    so, i'm using an array to populate the choices of a combobox
        public String[] progCodes = new String[]{"Standard","Restricted","Combined","Special"};which i'm using to edit a cell in a jtable
    baseCatTable.getColumnModel().getColumn(4).setCellEditor(new DefaultCellEditor(new JComboBox(progCodes)));and when i get the value
    System.out.println(baseCatTable.getValueAt(0, 4))i'd like to return the index of the selected item in the combo box instead of the text:
    Standard
    any suggestions?
    Edited by: hansbig on Jan 24, 2008 5:04 PM

    sorry, but i'm using an IDE and it generates a lot of fluffy code.
    * ProblemView.java
    package problem;
    import org.jdesktop.application.Action;
    import org.jdesktop.application.ResourceMap;
    import org.jdesktop.application.SingleFrameApplication;
    import org.jdesktop.application.FrameView;
    import org.jdesktop.application.TaskMonitor;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.DefaultCellEditor;
    import javax.swing.Timer;
    import javax.swing.Icon;
    import javax.swing.JComboBox;
    import javax.swing.JDialog;
    import javax.swing.JFrame;
    * The application's main frame.
    public class ProblemView extends FrameView {
        public ProblemView(SingleFrameApplication app) {
            super(app);
            initComponents();
            edit = new JComboBox(words);
            // status bar initialization - message timeout, idle icon and busy animation, etc
            ResourceMap resourceMap = getResourceMap();
            int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout");
            messageTimer = new Timer(messageTimeout, new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    statusMessageLabel.setText("");
            messageTimer.setRepeats(false);
            int busyAnimationRate = resourceMap.getInteger("StatusBar.busyAnimationRate");
            for (int i = 0; i < busyIcons.length; i++) {
                busyIcons[i] = resourceMap.getIcon("StatusBar.busyIcons[" + i + "]");
            busyIconTimer = new Timer(busyAnimationRate, new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    busyIconIndex = (busyIconIndex + 1) % busyIcons.length;
                    statusAnimationLabel.setIcon(busyIcons[busyIconIndex]);
            idleIcon = resourceMap.getIcon("StatusBar.idleIcon");
            statusAnimationLabel.setIcon(idleIcon);
            progressBar.setVisible(false);
            // connecting action tasks to status bar via TaskMonitor
            TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
            taskMonitor.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
                public void propertyChange(java.beans.PropertyChangeEvent evt) {
                    String propertyName = evt.getPropertyName();
                    if ("started".equals(propertyName)) {
                        if (!busyIconTimer.isRunning()) {
                            statusAnimationLabel.setIcon(busyIcons[0]);
                            busyIconIndex = 0;
                            busyIconTimer.start();
                        progressBar.setVisible(true);
                        progressBar.setIndeterminate(true);
                    } else if ("done".equals(propertyName)) {
                        busyIconTimer.stop();
                        statusAnimationLabel.setIcon(idleIcon);
                        progressBar.setVisible(false);
                        progressBar.setValue(0);
                    } else if ("message".equals(propertyName)) {
                        String text = (String)(evt.getNewValue());
                        statusMessageLabel.setText((text == null) ? "" : text);
                        messageTimer.restart();
                    } else if ("progress".equals(propertyName)) {
                        int value = (Integer)(evt.getNewValue());
                        progressBar.setVisible(true);
                        progressBar.setIndeterminate(false);
                        progressBar.setValue(value);
        @Action
        public void showAboutBox() {
            if (aboutBox == null) {
                JFrame mainFrame = ProblemApp.getApplication().getMainFrame();
                aboutBox = new ProblemAboutBox(mainFrame);
                aboutBox.setLocationRelativeTo(mainFrame);
            ProblemApp.getApplication().show(aboutBox);
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() {
            mainPanel = new javax.swing.JPanel();
            jScrollPane1 = new javax.swing.JScrollPane();
            jTable1 = new javax.swing.JTable();
            jButton1 = new javax.swing.JButton();
            menuBar = new javax.swing.JMenuBar();
            javax.swing.JMenu fileMenu = new javax.swing.JMenu();
            javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
            javax.swing.JMenu helpMenu = new javax.swing.JMenu();
            javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
            statusPanel = new javax.swing.JPanel();
            javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator();
            statusMessageLabel = new javax.swing.JLabel();
            statusAnimationLabel = new javax.swing.JLabel();
            progressBar = new javax.swing.JProgressBar();
            mainPanel.setName("mainPanel"); // NOI18N
            jScrollPane1.setName("jScrollPane1"); // NOI18N
            jTable1.setModel(new javax.swing.table.DefaultTableModel(
                new Object [][] {
                    {null}
                new String [] {
                    "Title 1"
            jTable1.setColumnSelectionAllowed(true);
            jTable1.setName("jTable1"); // NOI18N
            jScrollPane1.setViewportView(jTable1);
            jTable1.getColumnModel().getSelectionModel().setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
            jTable1.getColumnModel().getColumn(0).setCellEditor(new DefaultCellEditor(edit));
            org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(problem.ProblemApp.class).getContext().getResourceMap(ProblemView.class);
            jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N
            jButton1.setName("jButton1"); // NOI18N
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
            javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
            mainPanel.setLayout(mainPanelLayout);
            mainPanelLayout.setHorizontalGroup(
                mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(mainPanelLayout.createSequentialGroup()
                    .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(mainPanelLayout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(mainPanelLayout.createSequentialGroup()
                            .addGap(46, 46, 46)
                            .addComponent(jButton1)))
                    .addContainerGap(12, Short.MAX_VALUE))
            mainPanelLayout.setVerticalGroup(
                mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(mainPanelLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addComponent(jButton1)
                    .addContainerGap(18, Short.MAX_VALUE))
            menuBar.setName("menuBar"); // NOI18N
            fileMenu.setText(resourceMap.getString("fileMenu.text")); // NOI18N
            fileMenu.setName("fileMenu"); // NOI18N
            javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(problem.ProblemApp.class).getContext().getActionMap(ProblemView.class, this);
            exitMenuItem.setAction(actionMap.get("quit")); // NOI18N
            exitMenuItem.setName("exitMenuItem"); // NOI18N
            fileMenu.add(exitMenuItem);
            menuBar.add(fileMenu);
            helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N
            helpMenu.setName("helpMenu"); // NOI18N
            aboutMenuItem.setAction(actionMap.get("showAboutBox")); // NOI18N
            aboutMenuItem.setName("aboutMenuItem"); // NOI18N
            helpMenu.add(aboutMenuItem);
            menuBar.add(helpMenu);
            statusPanel.setName("statusPanel"); // NOI18N
            statusPanelSeparator.setName("statusPanelSeparator"); // NOI18N
            statusMessageLabel.setName("statusMessageLabel"); // NOI18N
            statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
            statusAnimationLabel.setName("statusAnimationLabel"); // NOI18N
            progressBar.setName("progressBar"); // NOI18N
            javax.swing.GroupLayout statusPanelLayout = new javax.swing.GroupLayout(statusPanel);
            statusPanel.setLayout(statusPanelLayout);
            statusPanelLayout.setHorizontalGroup(
                statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(statusPanelSeparator, javax.swing.GroupLayout.DEFAULT_SIZE, 188, Short.MAX_VALUE)
                .addGroup(statusPanelLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(statusMessageLabel)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 14, Short.MAX_VALUE)
                    .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(statusAnimationLabel)
                    .addContainerGap())
            statusPanelLayout.setVerticalGroup(
                statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(statusPanelLayout.createSequentialGroup()
                    .addComponent(statusPanelSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(statusMessageLabel)
                        .addComponent(statusAnimationLabel)
                        .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(3, 3, 3))
            setComponent(mainPanel);
            setMenuBar(menuBar);
            setStatusBar(statusPanel);
        }// </editor-fold>
        private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
            System.out.println(jTable1.getValueAt(0, 0));
            System.out.println(edit.getSelectedIndex());
        // Variables declaration - do not modify
        private javax.swing.JButton jButton1;
        private javax.swing.JScrollPane jScrollPane1;
        private javax.swing.JTable jTable1;
        private javax.swing.JPanel mainPanel;
        private javax.swing.JMenuBar menuBar;
        private javax.swing.JProgressBar progressBar;
        private javax.swing.JLabel statusAnimationLabel;
        private javax.swing.JLabel statusMessageLabel;
        private javax.swing.JPanel statusPanel;
        // End of variables declaration
        public String[] words = new String[]{"one","two"};
        public JComboBox edit;
        private final Timer messageTimer;
        private final Timer busyIconTimer;
        private final Icon idleIcon;
        private final Icon[] busyIcons = new Icon[15];
        private int busyIconIndex = 0;
        private JDialog aboutBox;
    * ProblemApp.java
    package problem;
    import org.jdesktop.application.Application;
    import org.jdesktop.application.SingleFrameApplication;
    * The main class of the application.
    public class ProblemApp extends SingleFrameApplication {
         * At startup create and show the main frame of the application.
        @Override protected void startup() {
            show(new ProblemView(this));
         * This method is to initialize the specified window by injecting resources.
         * Windows shown in our application come fully initialized from the GUI
         * builder, so this additional configuration is not needed.
        @Override protected void configureWindow(java.awt.Window root) {
         * A convenient static getter for the application instance.
         * @return the instance of ProblemApp
        public static ProblemApp getApplication() {
            return Application.getInstance(ProblemApp.class);
         * Main method launching the application.
        public static void main(String[] args) {
            launch(ProblemApp.class, args);
    }i'm getting:
    init:
    deps-jar:
    Compiling 1 source file to C:\Documents and Settings\1\My Documents\NetBeansProjects\problem\build\classes
    compile:
    run:
    Jan 24, 2008 7:58:36 PM org.jdesktop.application.Application$1 run
    SEVERE: Application class problem.ProblemApp failed to launch
    java.lang.NullPointerException
    at javax.swing.DefaultCellEditor.<init>(DefaultCellEditor.java:117)
    at problem.ProblemView.initComponents(ProblemView.java:136)
    at problem.ProblemView.<init>(ProblemView.java:29)
    at problem.ProblemApp.startup(ProblemApp.java:19)
    at org.jdesktop.application.Application$1.run(Application.java:171)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Exception in thread "AWT-EventQueue-0" java.lang.Error: Application class problem.ProblemApp failed to launch
    at org.jdesktop.application.Application$1.run(Application.java:177)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Caused by: java.lang.NullPointerException
    at javax.swing.DefaultCellEditor.<init>(DefaultCellEditor.java:117)
    at problem.ProblemView.initComponents(ProblemView.java:136)
    at problem.ProblemView.<init>(ProblemView.java:29)
    at problem.ProblemApp.startup(ProblemApp.java:19)
    at org.jdesktop.application.Application$1.run(Application.java:171)
    ... 8 more
    BUILD SUCCESSFUL (total time: 2 seconds)
    also, I made a zip file of the project and put it up here:
    http://www.geocities.com/hansbigtree/problem.zip
    thanks.

Maybe you are looking for

  • Settlement of Sale Order issue.

    Dear friends I am getting the following error while settling the Sale Order in VA88. Please guide me in this issue, how to handle? There are no accrued amounts; settlement is not possible. Message no. KD256 Diagnosis The sender has a results analysis

  • Data Loader API Calls x Webservices

    Hi, I'm trying to use the Data Loader calls by the webservices. I've downloaded the OracleDataLoaderOnDemandImportServices.wsdl and I've been tested it in a C# project, but I don't know to use exactly the methods BulkOpImportCreateRequest and BulkOpI

  • Problems installing CS4

    Okay so, whenever I try and install (In Vista 64bit) CS4 I get the error: Adobe Photoshop CS4 English Language Pack Error: Error 2. Adobe Photoshop CS4 English Language Pack_x64 Error: Error 2. LangPack (English) for DeviceCentral Error: Error 2. Doe

  • New to MM

    hi, everybody...this is my first thread in this forum so a very very basic question for all u experts here. I have right now  5  & a half years of automobile industry exp and am working for a MNC. i have worked in Production and the Research and deve

  • Getting non supported commercial app to run on Arch?

    Hi Everyone, I'm in the process of converting my server from OpenSuse 10.3 to Arch.  The rolling disto is the most significant thing for me as I do a lot of customisation and don't want to lose it between format/install cycles of new release ditros.