tags:

views:

118

answers:

1

Dear Friends, I'm facing a simple challenge in applet. I'm writing an applet application consider some navigation aid in applet. When I'm minimizing or maximimizing the applet, resizing i.e size of the navigation-aid does not change when I maximimize the applet. How can I avail that ? Any opinions?

Regards

+1  A: 

It is quite hard to tell what you are asking, however I'll guess. You are probably just adding a swing component to an applet without using a LayoutManager, or maybe not even using swing.

I'd recommend reading This tutorial to learn more about layout managers. However, (using my psychic debugging techniques) you probably want to change some code like this:

applet.add(navigatioComponent);

to look like this:

applet.setLayout(new BorderLayout());
applet.add(navigationComponent, BorderLayout.CENTER);
Nick Fortescue