Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
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]
 
Rancher
Posts: 43016
76
  • 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: 43016
76
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic