• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Applet and java console

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 3323
86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3323
86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
He does not suffer fools gladly. But this tiny ad does:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic