Department of Mathematics and Computer Science

www.univ-soukahras.dz/en/dept/mi

Module: Techniques objet avancées

  1. Information
  2. Questions

java awt exception

3 votes

what the following java awt exception means and what is the solution ?

Exception in thread "AWT-EventQueue-1" java.lang.IllegalStateException: javax.swing.JButton[,0,0,0x0,invalid,disabled,alignmentX=0.0,alignmentY=0.5,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@cc7f9e,flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=Modifier l'arbre original...,defaultCapable=true] is not attached to a vertical group
at javax.swing.GroupLayout.checkComponents(Unknown Source)
at javax.swing.GroupLayout.prepare(Unknown Source)
at javax.swing.GroupLayout.layoutContainer(Unknown Source)
at java.awt.Container.layout(Unknown Source)
at java.awt.Container.doLayout(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validate(Unknown Source)
at javax.swing.RepaintManager$2.run(Unknown Source)
at javax.swing.RepaintManager$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at javax.swing.RepaintManager.validateInvalidComponents(Unknown Source)
at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(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)

 

thank you in advance...

Asked on 19:04, Thursday 12 May 2016 By Hanen Rouainia (322 points)
In Techniques objet avancées


answers (8)




Answer (1)

1 votes

Puis-je avoir une idée concernant l'objectif de l'application ?

Answered on 20:23, Thursday 12 May 2016 by Houdhaifa Habib (9 points)
In Techniques objet avancées



Answer (2)

3 votes

hi hanen, honestly i hardly learn your question ,it's overloaded 

i think that  these kind of stack traces are caused by you not creating  AWT components 

Answered on 20:46, Thursday 12 May 2016 by radia gherras (68 points)
In Techniques objet avancées



Answer (3)

0 votes

no Radia, I do the graphic interface with netbeans then I copy the source code in eclipse and add some code lines and when I try run the the class I obtained this exception 

and this exception shows time and does not appear another time 

 

Answered on 23:51, Thursday 12 May 2016 by Hanen Rouainia (322 points)
In Techniques objet avancées



Answer (4)

1 votes

tu sais que code source de netbeans marche pas sur eclipse par fois ... 

Answered on 23:55, Thursday 12 May 2016 by amirat abdallah (256 points)
In Techniques objet avancées



Answer (5)

1 votes

oui houdaifa, j'essayer de faire une fenêtre contenant un jLabel qui contenant une image 

et 7 buttons, chaque boutton crée un objet d'une ature classe qui est aussi héritée de la classe JFrame

c'est tout, et quand j'essayé exécute ce code là j'obtenu cet exception, et le problème pas ça, le problème c'est le fait que des fois j'obtenu cet exception et des fois non !!!  

 

Answered on 23:58, Thursday 12 May 2016 by Hanen Rouainia (322 points)
In Techniques objet avancées



Answer (6)

1 votes

abdallah c'est juste une fenêtre contien un label et 7 bouttons c'est tout 

Answered on 23:59, Thursday 12 May 2016 by Hanen Rouainia (322 points)
In Techniques objet avancées



Answer (7)

-1 votes

Oui c'est le souci avec netbeans, il y'a des bib dans netbeans qui exsite pas dans eclipse .... c'est pour ça, il est préfère de utilise soit eclipse soit netbeans et pas les deux en meme temps pour meme programme 

 

Answered on 00:04, Friday 13 May 2016 by amirat abdallah (256 points)
In Techniques objet avancées



Answer (8)

0 votes

try the window builder for eclipse ( https://eclipse.org/windowbuilder/)

Answered on 17:05, Friday 20 May 2016 by Mouadh Bekhouche (17 points)
In Techniques objet avancées



Do you have an answer ?