Help With A Bug

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sahilsachdeva
    New Member
    • Nov 2006
    • 1

    Help With A Bug

    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.Illeg alArgumentExcep tion: canno
    t add to layout: constraint must be a string
    at java.awt.CardLa yout.addLayoutC omponent(Unknow n Source)
    at java.awt.Contai ner.addImpl(Unk nown Source)
    at java.awt.Contai ner.add(Unknown Source)
    at PCGUI.<init>(PC GUI.java:93)
    at PCGUI.createAnd ShowGUI(PCGUI.j ava:179)
    at PCGUI.access$00 0(PCGUI.java:6)
    at PCGUI$2.run(PCG UI.java:198)
    at java.awt.event. InvocationEvent .dispatch(Unkno wn Source)
    at java.awt.EventQ ueue.dispatchEv ent(Unknown Source)
    at java.awt.EventD ispatchThread.p umpOneEventForH ierarchy(Unknow n Source)

    at java.awt.EventD ispatchThread.p umpEventsForHie rarchy(Unknown Source)
    at java.awt.EventD ispatchThread.p umpEvents(Unkno wn Source)
    at java.awt.EventD ispatchThread.p umpEvents(Unkno wn Source)
    at java.awt.EventD ispatchThread.r un(Unknown Source)

    can sumbody plz help me understand the problem?
  • sivadhas2006
    New Member
    • Nov 2006
    • 142

    #2
    HI,

    Can you post your java code?

    Regards,
    M.Sivadhas.

    Comment

    • padmanabhanp
      New Member
      • Nov 2006
      • 14

      #3
      Hai,
      Please send your code.

      By,
      P.Padmanabhan

      Comment

      Working...