Janak

Thanks, that fixed the problem.

Joe

----- Original Message ----
From: Janak Mulani <[EMAIL PROTECTED]>
To: Joe L <[EMAIL PROTECTED]>
Cc: [email protected]
Sent: Tuesday, January 2, 2007 11:48:51 PM
Subject: RE: [ULC-developer] ULCTextArea bug?



 
DIV {
MARGIN:0px;}



Hi 
Joe,

 

Please 
see http://lists.canoo.com/mailman/private/ulc-developer/2006/004564.html

 

Thanks 
and regards,

 

Janak


  -----Original Message-----
From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] Behalf Of Joe 
  L
Sent: Wednesday, January 03, 2007 12:27 AM
To: 
  [email protected]
Subject: [ULC-developer] ULCTextArea 
  bug?



  
  I was using the text area and found a weird bug.  If you append to a 
  ULCTextArea that is not visible, and then make it visible and append to it 
  again.  The first text appended to the ULCTextArea does not 
  appear.

I've written a small application showing the error.  When 
  the window is displayed it doesn't show the first text appended.  If you 
  comment out the second append "text.append("You only see me!!!\n");" then the 
  first line does appear.  Am I doing something wrong?  Is there a way 
  to fix this, or should I just make the window visible before adding 
  text?

package emst.launchers;

import 
  com.ulcjava.base.application.*;
import 
  com.ulcjava.base.development.DevelopmentRunner;

public class 
  AppendProblem extends AbstractApplication {

    public 
  void start() {
        ULCFrame frame = new 
  ULCFrame("Title");
        
  frame.setDefaultCloseOperation(ULCFrame.TERMINATE_ON_CLOSE);
    
      frame.setSize(300,300);
    
      
        ULCBoxPane 
  rootPane = new ULCBoxPane();
        
  
        ULCTextArea text = new 
  ULCTextArea();
        
    
      rootPane.add(new ULCScrollPane(text), 
  ULCBoxPane.BOX_EXPAND_EXPAND);
        
  
        
  frame.setContentPane(rootPane);
        
  
        text.append("You don't see 
  me!!!\n");
        
    
      frame.setVisible(true);
    
      
        text.append("You 
  only see me!!!\n");
    }
    
  
    public static void main(String[] 
  args)
    {
        
  DevelopmentRunner.setApplicationClass(AppendProblem.class);
        
  DevelopmentRunner.setUseGui(false);
        
  DevelopmentRunner.main(args);
    
  }

}



__________________________________________________
Do 
  You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
  
http://mail.yahoo.com 




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to