G
Guest
Gast
Nabend zusammen
Könnt ihr mir helfen? wieso wird meine Scrollbar nicht angezeigt?
Könnt ihr mir helfen? wieso wird meine Scrollbar nicht angezeigt?
Code:
public class LizenzWindow
{
public void addInternalToDesktop(JDesktopPane desktop,Languages languages)
{
JPanel bipanel= new JPanel();
bipanel.setLayout(new BorderLayout());
bipanel.setBorder(new TitledBorder("license agreement"));
JTextPane pane = new JTextPane();
pane.setSize(100,100);
JCheckBox accept = new JCheckBox();
pane.setEditable(false);
String license = "if you agree to this license, please "
+ "choose 'I agree'\n"
+ "if you don't agree, then you won't be able to continue"
+ "choose 'I agree'\n"
+ "if you don't agree, then you won't be able to continue";
pane.setText(license);
bipanel.add(new JScrollPane(pane), BorderLayout.CENTER);
JPanel panel = new JPanel();
panel.add(new JLabel("I agree"));
panel.add(accept);
bipanel.add(panel, BorderLayout.SOUTH);
new StandartWindow(desktop,languages,bipanel);
}
}