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.
Created attachment 163883 [details] panel not top align please see attachment first <folder name="Editors"> <folder name="SideBar"> <file name="com-pdk-sidebar-AddressSideBarFactory.instance"> <attr name="position" intvalue="0"/> <attr name="location" stringvalue="West"/> <attr name="scrollable" boolvalue="true"/> </file> </folder> </folder> public class AddressSideBarFactory implements org.netbeans.spi.editor.SideBarFactory { public static AddressPanel addressPanel; @Override public JComponent createSideBar(JTextComponent jtc) { AddressSideBarFactory.addressPanel = new AddressPanel(jtc); int width = jtc.getFontMetrics(jtc.getFont()).stringWidth("00000000"); addressPanel.setPreferredSize(new Dimension(width, 100)); return addressPanel; } }
Anyone can help out?
Nobody can help out. You're going to have to create a small example that reproduces this problem, put that small example on GitHub.
i fixed this by adding "addressPanel.setAlignmentY(Component.BOTTOM_ALIGNMENT);"