This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 38145 - Cannot set font for JMenuBar
Summary: Cannot set font for JMenuBar
Status: CLOSED WONTFIX
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 40359 41315 53796 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-16 10:33 UTC by Milan Kubec
Modified: 2008-06-23 09:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2003-12-16 10:33:59 UTC
I've opened Ted example and there was font 'Tahoma
14 Plain' set for JMenuBar. But this font is not
set in code and application starts with default font.
Comment 1 Tomas Pavek 2004-02-22 15:15:55 UTC
Looks like the known issue - form is designed in different look&feel 
than executed - then the default font "in the IDE" maz be different 
from the default font of the form running standalone. Is this the 
case?
Comment 2 Tomas Pavek 2004-02-24 08:23:09 UTC
*** Issue 40359 has been marked as a duplicate of this issue. ***
Comment 3 Tomas Pavek 2004-03-25 09:35:09 UTC
*** Issue 41315 has been marked as a duplicate of this issue. ***
Comment 4 Jan Stola 2004-06-02 09:24:14 UTC
The font is not set in the code because it is the defult
JMenuBar font for the look and feel of the IDE. When you
execute Ted it can happen that it uses a different look and feel
and therefore a different default font.
It would be nice to allow user to set the look and feel
of the designed form, but this is not possible. UIManager
(responsible for the current look and feel) has only static
methods => the look and feel must be the same for the whole
application (the form designer and the rest of the IDE).
Comment 5 Jan Stola 2005-01-27 11:21:40 UTC
*** Issue 53796 has been marked as a duplicate of this issue. ***
Comment 6 Milan Kubec 2005-07-07 13:03:16 UTC
v/c
Comment 7 Jan Stola 2008-06-23 09:35:10 UTC
*** Issue 137919 has been marked as a duplicate of this issue. ***