aspose file tools*
The moose likes Applets and the fly likes Label fonts of embedded in HTML applet are not the same as in applet viewer in Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Label fonts of embedded in HTML applet are not the same as in applet viewer in Eclipse" Watch "Label fonts of embedded in HTML applet are not the same as in applet viewer in Eclipse" New topic
Author

Label fonts of embedded in HTML applet are not the same as in applet viewer in Eclipse

Jonas Kazlauskas
Greenhorn

Joined: Jun 19, 2014
Posts: 8
Hi there! I have an applet which I want to embed into HTML. In applet viewer in Eclipse IDE the view is this(see pict01), and when I access my index.php on local server I get this view(see pict02). I don't know what I am doing wrong. I checked it with Firefox, IE and chrome. No changes. Here is source code:


index.php:


I have these files in my local servers folder where I am trying to access it from(see pict03). Any ideas?


[Thumbnail for pict01.png]

[Thumbnail for Pict02.png]

[Thumbnail for pict03.png]

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42264
    
  64
So the problem is twofold - fewer text is read, and the font is not being applied... ?

The algorithm that decides when to apply the bigger font is not immediately obvious to me, but it does seem to depend on the text being read - make sure the shorter text does not influence that.

Have you tried adding lots of logging so you can see what's happening at runtime?


Ping & DNS - my free Android networking tools app
Jonas Kazlauskas
Greenhorn

Joined: Jun 19, 2014
Posts: 8
To tell you the truth, I didn't even notice that the text output was different ;) As advised, I did log checking and thats how I found a problem.


But strangely it didn't solve the problem straight away or I was too dumb to notice it. I changed my php file and then I got everything working properly.

I changed jpi-version = 7 instead of jpi-version=6 before. I wonder had this something to do with fix of second part of the problem(font changing)?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42264
    
  64
I don't see how that change should have much of an effect. The "type" attribute isn't even required, I think you should be able to just remove it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Label fonts of embedded in HTML applet are not the same as in applet viewer in Eclipse