Solved

applet size in Netscape

Posted on 2001-06-18
6
259 Views
Last Modified: 2010-03-31
Hi,

I try to put my applet in a table for avoiding frames. In IE5 works fine but in Netscape 4.7 or NS6 there are problems.
I used frames earlier and it was working fine. Now I removed frames and I put tables instead. My applets are using the 100% for with and height. It's fine in IE because it takes the whole space in the table.
In NS4.7 it displays in a 2x2cm sized window any idea why? Might be that the 100% parameter is not allowed..
In NS6 the size of the applet is the window size and not the size of the table.
I would appreciate any solution. I know that NS has problems with the tables and to put the right size I should use a 1x1 pixel size point.
So how can I put 100% width and height for my applet?
0
Comment
Question by:kapitany
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 3

Expert Comment

by:shyamkumarreddy
ID: 6206076
Hi Kapitany

I want to say few things to you.
may be this will be helpful to you.

Allways HTML tags takes up the space of the applet rather than table one.

If u define the size of the applet width tag then table size is not taken.

What do u want ur final output to be
Shyam
0
 

Author Comment

by:kapitany
ID: 6209526
I have a table on the full screen. The applet is running on the right side table. The applet parameter are:
<applet
  CODEBASE      = "."
  CODE          = "application.applet.class"
  NAME          = "myvocwords"
  ARCHIVE      = "/common/applet.jar"
  WIDTH        = 100%
  HEIGHT       = 100%
  HSPACE       = 0
  VSPACE       = 0
  ALIGN        = top
  MAYSCRIPT VIEWASTEXT
>
</applet>
So I would like that my applet takes the whole space in the right table. In 4.7 it's just a tigny 1cm x 1cm applet and on N6 it puts the scrollbars because the applet size will be the full screen and therefore if the left side table is added the size is bigger than the window.
0
 
LVL 3

Expert Comment

by:shyamkumarreddy
ID: 6209568
Hey Kapitancy

Did u try with exact size rather than 100%

Shyam
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Accepted Solution

by:
happynut earned 100 total points
ID: 6250331
You might try use javascript to work around this bug.

<SCRIPT ID=AutoSizingScript LANGUAGE=JavaScript>
<!--
function window_OnResize()
{
    document.myvocwords.setHTMLSize( innerWidth, innerHeight );
}

function window_OnLoad()
{
    if (navigator.appName == "Netscape" && navigator.appVersion[0] == "4")
       {
           captureEvents(Event.RESIZE);
           onresize=window_OnResize;
       }
}

In your html file,

<BODY BGCOLOR="003668" LANGUAGE="JavaScript" ONLOAD="return window_OnLoad();">

In your applet define a following method.

public void setHTMLSize( String strWidth, String strHeight )
{
         int nWidth  = Integer.parseInt( strWidth  );
         int nHeight = Integer.parseInt( strHeight );
         
         Container container = getParent();
         
         container.setBounds( 0, 0, nWidth, nHeight );
         container.validate();        
}

Hope this helps.
happynut

0
 
LVL 5

Expert Comment

by:Netminder
ID: 6788357
0
 
LVL 5

Expert Comment

by:Netminder
ID: 6822017
Force/accepted by

Netminder
Community Support Moderator
Experts Exchange
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
by zero exception 10 69
jsp insert to database example 2 59
maven disable workspace resolution 1 37
Glassfish admin console not working 1 56
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

761 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question