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 9 of 9

Thread: Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not supported yet.

  1. #1
    Junior Member
    Join Date
    Mar 2014
    Location
    Denmark, Albertslund
    Posts
    15
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not supported yet.

    Hey guys, i try to get my program to open a new GUI window with click on the button.

        private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                         
     
                    ServerGUI s = new ServerGUI();
                           s.setVisible(true);
    I think this is the problem. But i don't know how to fix it.

    Plzzz help anyone.

    Im sorry if i do something wrong with the post (my first time i post).

    --- Update ---

    Sorry guys forgot rest of the Exception:

    Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not supported yet.
    at socialnetværksprogrammet.ServerGUI.<init>(ServerGU I.java:62)
    at socialnetværksprogrammet.Home.jButton2ActionPerfor med(Home.java:499)
    at socialnetværksprogrammet.Home.access$300(Home.java :13)
    at socialnetværksprogrammet.Home$4.actionPerformed(Ho me.java:388)
    at javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:2022)
    at javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.java:2346)
    at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:402)
    at javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:259)
    at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonListener.java:252)
    at java.awt.Component.processMouseEvent(Component.jav a:6527)
    at javax.swing.JComponent.processMouseEvent(JComponen t.java:3321)
    at java.awt.Component.processEvent(Component.java:629 2)
    at java.awt.Container.processEvent(Container.java:223 4)
    at java.awt.Component.dispatchEventImpl(Component.jav a:4883)
    at java.awt.Container.dispatchEventImpl(Container.jav a:2292)
    at java.awt.Component.dispatchEvent(Component.java:47 05)
    at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4898)
    at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:4533)
    at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:4462)
    at java.awt.Container.dispatchEventImpl(Container.jav a:2278)
    at java.awt.Window.dispatchEventImpl(Window.java:2739 )
    at java.awt.Component.dispatchEvent(Component.java:47 05)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:746)
    at java.awt.EventQueue.access$400(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:697)
    at java.awt.EventQueue$3.run(EventQueue.java:691)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPri vilege(ProtectionDomain.java:75)
    at java.security.ProtectionDomain$1.doIntersectionPri vilege(ProtectionDomain.java:86)
    at java.awt.EventQueue$4.run(EventQueue.java:719)
    at java.awt.EventQueue$4.run(EventQueue.java:717)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPri vilege(ProtectionDomain.java:75)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java: 716)
    at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:82)


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not supported yet.

    What library is this?

    It looks like whatever library you're using has a method that throws an Exception to tell you that the method isn't supported yet. This isn't a Java question; it's a question for whoever develops that library.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    Mar 2014
    Location
    Denmark, Albertslund
    Posts
    15
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default Re: Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not supported yet.

    But i have use the method before. My library? You mean Netbeans?

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not supported yet.

    I mean wherever you're getting the ServerGUI class. That's what's throwing the error.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    Junior Member
    Join Date
    Mar 2014
    Location
    Denmark, Albertslund
    Posts
    15
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default Re: Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not supported yet.

    Okay, i just don't understand when i have used this method before, and it works how it cant work now

    Here is a picture there watch the library file:
    Skærmbillede 2014-08-26 kl. 17.44.45.jpg

    Here is a example there working:
      private void button5ActionPerformed(java.awt.event.ActionEvent evt) {                                        
     
            Medlemmer_home s = new Medlemmer_home();
             s.setVisible(true);

    But i understand what you say, but is just fun it dont work now.....

  6. #6
    Junior Member
    Join Date
    Mar 2014
    Location
    Denmark, Albertslund
    Posts
    15
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default Re: Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not supported yet.

    Ohh sorry forgot to say; "maybe it could be a fail with the ServerGUI.class, because the example i gave before is in the same program".

  7. #7
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not supported yet.

    The working code you posted does not use the ServerGUI class. The ServerGUI class is the one throwing the Exception. You should contact whoever created the ServerGUI class to see why it throws that Exception.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  8. The Following User Says Thank You to KevinWorkman For This Useful Post:

    magnus110498 (August 26th, 2014)

  9. #8
    Junior Member
    Join Date
    Mar 2014
    Location
    Denmark, Albertslund
    Posts
    15
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default Re: Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not supported yet.

    Okay i will do thank you for you time [COLOR="Silver"]

    --- Update ---

    I still have the problem but after i look in the code i get this.... But i dont understand it i think.

        ServerGUI() {
            throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        }
    Last edited by magnus110498; August 26th, 2014 at 12:49 PM.

  10. #9
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not supported yet.

    That code is generated by the IDE to inform you that the method serverGUI() requires code written by you to provide the desired functionality. There's even a comment to tell you what to do. This is an example that illustrates why some advise new programmers to not use an IDE, or to not use all of the bells and whistles some offer.

  11. The Following User Says Thank You to GregBrannon For This Useful Post:

    magnus110498 (August 27th, 2014)

Similar Threads

  1. Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    By jimbo62 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 19th, 2013, 06:33 AM
  2. Replies: 2
    Last Post: June 22nd, 2013, 10:30 AM
  3. Replies: 6
    Last Post: March 21st, 2013, 06:43 AM
  4. Replies: 2
    Last Post: November 24th, 2012, 09:18 AM
  5. Replies: 7
    Last Post: August 13th, 2011, 01:22 AM