Hi,
I am building a small GUI using JESS. I have a JPanel with BorderLayout.
Now i want to add a label to it in the NORTH. I thought this piece of code
should do it, yet i get an exception thrown...

(defglobal ?*panel* = (new javax.swing.JPanel))
(call ?*panel* setLayout (new java.awt.BorderLayout))
(defglobal ?*label* = (new javax.swing.JLabel "Help Window"))
(?*panel* add ?*label* java.awt.BorderLayout.NORTH)

Is there something wrong with the way i have used the static variable
BorderLayout.NORTH?

Do reply,
Regards,
Raj.



---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to