glenn mason

Greenhorn
+ Follow
since Sep 30, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by glenn mason


main is the starting point for an application; applets have a couple of automatically called methods: init, start, stop, destroy. You could put the PLAF code in a method and call it from both main and init.

getSystemLookAndFeelClassName() returns the Metal classname if it can't find a System one. Whether a system LAF is available depends on your Java install, maybe. Try UIManager.getAuxiliaryLookAndFeels() (returns an array), then getName on each of the LookAndFeel objects in the array. Just to see what LAFs you are getting back?

18 years ago
What do you mean by "distorted"? Which version of Java? Which platform (OS)? Exactly what happens when you use the mouse?
18 years ago

Hey, didn't we decide that it was impossible??

From your post, I think you're looking in the wrong place -- it's not the canvas that has to be careful with it's <code>update()</code>, it's the <code>ScrollPane</code>. Subclass that and override <code>update()</code> there.

<code>update()</code> forwards the call to any children, so you probably actually need new updates for both the <code>Canvas</code> and the <code>ScrollPane</code>. Hope it helps, man.
18 years ago