i' m not sure. either i don't understand what's happening or there is a bug.
to make it easy i have a jframe, a scrollpane and a panel.
i add the scrollpane and the panel to the jframe.
now i set in the properties editor for the scrollpane the viewportView to the panel.
In the designer nothing happens but the source gets changed like this :
protected JPanel getPanel() {
if (panel == null) {
panel = new JPanel();
scrollPane.setViewportView(getPanel());
panel.setLayout(null);
panel.add(getLabel());
}
What i expected is something like this:
protected JScrollPane getScrollPane() {
if (scrollPane == null) {
...
scrollPane.setViewportView(getPanel());
}
return scrollPane;
}
Do i handle the designer in a wrong way?