The following code snippet taken directly from chapter 13 of JIA displays an *empty* JFrame. If I resize the window (JFrame), the text magically appears. Could this be a java version problem? I am using java version "1.4.1_01" on Windows 2000.
(import javax.swing.*) (import java.awt.*) (import java.awt.event.*) (defglobal ?*frame* = (new JFrame "Diagnostic Assistant")) (defglobal ?*qfield* = (new JTextArea 5 40)) (?*frame* setSize 520 140) (?*frame* setVisible TRUE) (bind ?scroll (new JScrollPane ?*qfield*)) ((?*frame* getContentPane) add ?scroll) (?*qfield* setText "Please wait...") (?*frame* repaint) Does anybody see anything wrong here? Thanks, -Mitch -------------------------------------------------------------------- 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] --------------------------------------------------------------------
