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 33817 - Three dots in customizer button should be centered
Summary: Three dots in customizer button should be centered
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 3.x
Hardware: PC All
: P3 blocker (vote)
Assignee: _ tboudreau
Depends on:
Blocks: 29447
  Show dependency tree
Reported: 2003-05-22 01:41 UTC by _ tboudreau
Modified: 2008-12-22 23:40 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:

look of 3dots button in the PS (2.78 KB, image/png)
2003-05-26 10:20 UTC, dpavlica

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2003-05-22 01:41:17 UTC
Probably this will need custom painting code - a
idea than text anyway.
Comment 1 _ tboudreau 2003-05-25 00:55:09 UTC
Implemented.  Note that the buttons can only be centered if
the button width is an odd number.
Comment 2 dpavlica 2003-05-26 10:18:19 UTC
I see..looks, that spaces among black dots are more wide then before.
Is it possible to have design which is in following appendix?
Comment 3 dpavlica 2003-05-26 10:20:17 UTC
Created attachment 10442 [details]
look of 3dots button in the PS
Comment 4 _ tboudreau 2003-05-26 10:53:39 UTC
Since it was nearly impossible to get text to be properly centered,
I simply wrote an Icon subclass that paints 3 dots.

If the font size is > 13, it draws them larger, to simulate scaling
with font size.

Note that the size of the button is based on font size (if the user
wants a bigger font, they probably want a bigger button)
- the dots can only be perfectly centered if the button size is an odd