Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AWT Component render off screen?


  • From: dave.king@xxxxxxxxxxxxxx (Dave King)
  • Subject: AWT Component render off screen?
  • Date: Tue, 31 Oct 2000 12:40:51 -0700

Sorry Dave,

no I can't use Swing, yes I know it can be done.

I want to render components that are on a visible frame off screen, that
doesn't seem to be working.  I tried adding the call to pack, nothing.

-Peace
Dave


> -----Original Message-----
> From: David Risner [mailto:drisner@xxxxxxxxxx]
> Sent: Tuesday, October 31, 2000 12:24 PM
> To: 'advanced-java@xxxxxxxxxxxxxxxx'
> Subject: Re: AWT Component render off screen?
> 
> 
> On Tue, 31 Oct 2000 12:14:14 -0700, you wrote:
> 
> >I'm doing some work with 1.1 so I need to use AWT.
> 
> Swing works in 1.1, so you could use it if you like...
> 
> >it would be helpful if I could render AWT components off screen.
> >
> >Problem: it doesn't seem to work.  The following class 
> delegates painting to
> >the target component. Works fine with swing components but I 
> get the nothing
> >with AWT.  I've also included my test class.
> 
> Create a Frame, but don't show() it.  Add the heavyweight component to
> it (i.e., the Button).  Call pack() on the Frame.  That should do it.
> 
> Remember not to mix heavyweight components with lightweight
> components.  That is, don't subclass Component, use Canvas.  Don't
> subsclass Container, use Panel.
> 
> -- 
> David G. Risner
> http://david.risner.org/
> 
> ---
> To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
> To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx
> 

---
To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx