Re: scrolling an image
On Feb 14, 3:42 am, LC's No-Spam Newsreading account
<nos...@mi.iasf.cnr.it> wrote:
In free time I'm slowly progressing with my applet displaying
astronomical images. Now I would like to implement scroll bars around an
image.
The HTML defines so far <APPLET CODE=... WIDTH=512 HEIGHT=712>. Of
course if I run in the appletviewer I can freely resize it.
It should be possible to resize this applet's width,
<http://www.physci.org/test/resize/>
and here, full browser window.
<http://www.physci.org/test/resize/fullwnd5.html>
But why not make it a JFrame (launched using web-start)
that is automatically resizable? Check this applet/application
combo. to see the differences.
<http://www.physci.org/jws/#jtest>
The applet itself is so far a JPanel divided horizontally in 3 equal
parts (a tabbed pane, a message text area, and a JTable). I plan to move
to a grid bag layout to make the tabbed pane somewhat taller.
Have you considered using nested layouts? Often
it is much simpler to achieve the effect required,
using nested layouts, than any other single layout.
That is especially tru of GBL, which is devilish.
..Knute probably answered the substantive question,
so I'll leave it at those few comments.
--
Andrew T.
PhySci.org