By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,737 Members | 1,971 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,737 IT Pros & Developers. It's quick & easy.

Help With A Bug

P: 1
HI,
m a java newbie, trying to write a GUI in java. the code that i wrote complied sucessfully but when i run it i get certain exceptions that i dnt understand:-

Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: canno
t add to layout: constraint must be a string
at java.awt.CardLayout.addLayoutComponent(Unknown Source)
at java.awt.Container.addImpl(Unknown Source)
at java.awt.Container.add(Unknown Source)
at PCGUI.<init>(PCGUI.java:93)
at PCGUI.createAndShowGUI(PCGUI.java:179)
at PCGUI.access$000(PCGUI.java:6)
at PCGUI$2.run(PCGUI.java:198)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierar chy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

can sumbody plz help me understand the problem?
Nov 22 '06 #1
Share this Question
Share on Google+
2 Replies


sivadhas2006
100+
P: 142
HI,

Can you post your java code?

Regards,
M.Sivadhas.
Nov 23 '06 #2

P: 14
Hai,
Please send your code.

By,
P.Padmanabhan
Nov 23 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.