• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Jonas Kazlauskas
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
pict01.png
[Thumbnail for pict01.png]
Pict02.png
[Thumbnail for Pict02.png]
pict03.png
[Thumbnail for pict03.png]
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Jonas Kazlauskas
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic