This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Applets and the fly likes Applet is open properly in appplet viewer but show half page only on browser ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet is open properly in appplet viewer but show half page only on browser ?" Watch "Applet is open properly in appplet viewer but show half page only on browser ?" New topic
Author

Applet is open properly in appplet viewer but show half page only on browser ?

parveen sadyal
Greenhorn

Joined: Apr 09, 2010
Posts: 6

Hi All,

I have created a applet page . The page is open properly in Applet viewer , But sadly its show half contents of page when i run it on web browser. Please see the two different images from attachment.

1>In applet viewer ---- name of image is "screenshot-2"
2)browser ------name of image is"screenshot-1"

Thanks in advance.


[Thumbnail for Screenshot-1.png]

[Thumbnail for Screenshot-2.png]

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

Welcome to the Ranch.
Can you show us your html code where you embedded your applet? Have you specified sufficient height/width for the applet?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
parveen sadyal
Greenhorn

Joined: Apr 09, 2010
Posts: 6

Thanks godbole ,butI have already set the height and width 100% in my html page....
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

Ok. If you don't show us the code, then I don't see how we can be of any assistance.
parveen sadyal
Greenhorn

Joined: Apr 09, 2010
Posts: 6

Dear Godbole, Please see the code :


Please Sir resolve it fast....Actually my task is pending with this bullshit problem.
parveen sadyal
Greenhorn

Joined: Apr 09, 2010
Posts: 6

, Still waiting for my answer.....
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

parveen sadyal wrote:Please Sir resolve it fast....Actually my task is pending with this bullshit problem
Still waiting for my answer.....

PatienceIsAVirtue
EaseUp

The HTML you shared, is it the only page or are you using frames?
If it is the only page, please post your SSCCE
parveen sadyal
Greenhorn

Joined: Apr 09, 2010
Posts: 6

Dear Godbole ,
I think you are not getting my point.I already sent you The Html code as per your requirement , But i got no positive response regarding my problem ,Which can help me . The problem is only in Html not in my Java code . If you have any knowledge of applet then please suggest me some Idea except asking for SCCE. I just ask for how my whole page display in web-browser as per my screen shot.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

Maneesh asked you a very pertinent question which you haven't answered.
Maneesh Godbole wrote:The HTML you shared, is it the only page or are you using frames?

So, are you using frames?

He then went on to say
Maneesh Godbole wrote:If it is the only page, please post your SSCCE

Instead of responding positively, you choose to question his knowledge?
parveen sadyal wrote:If you have any knowledge of applet then please suggest me some Idea except asking for SCCE.


His questions were based on his knowledge of Applets. And what's your problem with posting an SSCCE anyways?


luck, db
There are no new questions, but there may be new answers.
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 860

Don't know why I'm responding to such an impatient OP.

Anyway, why not create a single cell <table> width/height=100%
Put the applet in the <td> and see what happens.
(Better yet, use more modern divs/css)

tip: set the border="1" to ensure the table fills the screen.

What browser is this?

WP
parveen sadyal
Greenhorn

Joined: Apr 09, 2010
Posts: 6

Dear Darryl Burke ,

I am not checking the knowledge of any buddy , I am nave user and i am just asking the question regarding my problem .

Thanks "William P O'Sullivan" for your answer ,but I the problem is same , I follow your guidelines but same issue pending , I am sending my SSCCE


and Html code is
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

parveen sadyal wrote:I am sending my SSCCE

That's not an SSCCE. Did you read the linked page to find out what the acronym signifies?
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
using your originally posted html code (no table), worked fine for me when I swapped lines 1 and 2
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 860

Which lines 1 and 2?

I was going to recreate this today, but won't if the fix is already found.

WP
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
the html code

[edit]
or remove the DOCTYPE line
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 860

Cool. TY.

WP
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet is open properly in appplet viewer but show half page only on browser ?
 
Similar Threads
Refresh problem in applet
How to print an RenderedImage?
Image loading very slow from URL
Image in Applet
images