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.
Summary: | I18N - Property dialog doesn't resize to show its header entirely | ||
---|---|---|---|
Product: | platform | Reporter: | kaa <kaa> |
Component: | Explorer | Assignee: | Stanislav Aubrecht <saubrecht> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | CC: | jstola, kfrank |
Priority: | P2 | Keywords: | I18N |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
image
image |
Description
kaa
2008-09-05 17:05:17 UTC
Created attachment 69176 [details]
image
I followed your steps to reproduce and invoked that smaller dialog. I'm able to enlarge that window using mouse, window is resizable. So you want to add some automatic resize code for enlarging window according window title. It sound strange to me. Are there any title-resize dialogs inside IDE please? it's impossible to get the preferred size of a top-level window title. use can resize the window using either mouse or keyboard. There is a similar issue 145453. The fix is possible there. *** Issue 145453 has been marked as a duplicate of this issue. *** issue 145453 is a duplicate of this one. i don't know any native java API to get the preferred size of a top-level window title. if you know such API, please reopen both issues I don't know it also. Seems it is more general problem. I found the same issue for WSDL doc properties. Created attachment 69758 [details]
image
I found some stuff via google that talks about this, I don't know if it applies to nb or not, but here are the pointers. (andrey, if there are other such issues on this open or in future on dialog title itself and resize, could you add these pointers to those issues too ?) http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=33&t=025761 http://forums.java.net/jive/thread.jspa?threadID=25110 --------------------------- http://coding.derkeiler.com/Archive/Java/comp.lang.java.gui/2004-04/0485.html http://coding.derkeiler.com/Archive/Java/comp.lang.java.gui/2004-04/0591.html http://coding.derkeiler.com/Archive/Java/comp.lang.java.gui/2004-04/0635.html -------- http://www.java-forums.org/awt-swing/10614-how-can-i-set-frame-s-size-flexible-show-s-title-variable-length-full.html ken.frank@sun.com there's only one suggested solution in those links - using Dialog's font to calculate preferred title length. but it's just a hack that wouldn't work in most cases: - system window manager may set bigger/smaller font size for window titles - there are usually extra buttons (close/minimize/maximize etc) in window title, their count and size is os dependent and window manager dependent i'd suggest file RFE against jdk to add a method for preferred dialog title size I agree with saubrecht. We cannot fix that reliably without the support from JDK. In ideal case, java.awt.Window.pack() should be modified to take size of its title into account and change the width of the window accordingly. > i'd suggest file RFE against jdk In fact, there is one already. See http://bugs.sun.com/view_bug.do?bug_id=4804922 |