Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet and java console

 
Nermin Ziric
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I'm new here and I have a question:
I have an applet and I use Java console to view my log from applet. So my question is:why java console shows me a bigger font size and sometime a smaller. Well,usually that is not a problem but in my case it is,because I have a formatted output log.
Sorry on my bad english.
abnormal.png
[Thumbnail for abnormal.png]
This is a bigger font size which I don't want
normal.png
[Thumbnail for normal.png]
This is a "normal" font size,which is accepted for me
 
Tony Docherty
Bartender
Posts: 3054
59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

I suspect your formatting problem is not because the font size different but because the actual font is different and one of those fonts (the one you want) is monospaced and the other one is proportional. Note: It's virtually impossible to show correctly aligned tabular style data using a proportional font.

Are these screen shots taken on the same computer when running the applet in the same browser ie does the font randomly change? If so I've no idea what's causing the problem or how to solve it. On the other hand if they are different browsers/computers it's a case of setting the Java console to use a monospaced font - mind you I'm not sure how you would do that either but google may help.
 
Nermin Ziric
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tony Docherty wrote:Welcome to the Ranch.

I suspect your formatting problem is not because the font size different but because the actual font is different and one of those fonts (the one you want) is monospaced and the other one is proportional. Note: It's virtually impossible to show correctly aligned tabular style data using a proportional font.

Are these screen shots taken on the same computer when running the applet in the same browser ie does the font randomly change? If so I've no idea what's causing the problem or how to solve it. On the other hand if they are different browsers/computers it's a case of setting the Java console to use a monospaced font - mind you I'm not sure how you would do that either but google may help.


Hello,
Thanks for your reply.Yes of course, screenshots are taken on the same computer and using a same browser and fonts are changed randomly on after open/close,sometimes as first screen shot and sometimes ad other one.Already googled but no help.Well, I'm here also using a google.
 
Tony Docherty
Bartender
Posts: 3054
59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry but I've no idea why it would be doing that.
You might want to post some additional information such as the OS and browser you are using in case someone else can help.
 
Nermin Ziric
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tony Docherty wrote:Sorry but I've no idea why it would be doing that.
You might want to post some additional information such as the OS and browser you are using in case someone else can help.


Windows 7, firefox 45.02 , Java 8 (update 91)

Thank you very much. I decided to write my own console which is started on applet init() and it works just perfect. Thanks again!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic