display size in Applet

Hi,

I am trying to use the "display.getComponent" to display in an applet.
I defined a "getComponent" in SimpleDisplay.java,

    public Component getComponent(){
          return display.getComponent();
      }

and use it in SimpleDisplayApplet.java,

        SimpleDisplay m_display = new SimpleDisplay(m_datafile);
        m_display.process();
        add(m_display.getComponent());
        showStatus("init ...");

However, I found the size of the display component in the applet is fixed
(about 270x270).
My question is how to change the display size in the applet to make it
propotional to the
applet size?

Thanks.

Muz


  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: