1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
TextArea textArea=new TextArea();
textArea.setText("jTextField1");
textArea.setBounds(100,100,100,100);
JPanel contentPane=new JPanel();
contentPane.add(textArea);
contentPane.setPreferredSize(new Dimension(100,100));
contentPane.setBackground(Color.WHITE);
contentPane.setForeground(Color.black);
contentPane.setSize(new Dimension(200,50));
JScrollPane support=new JScrollPane();
support.add(contentPane);
support.setPreferredSize(new Dimension(300,300));
support.setBackground(new Color(10,0,0,220)); |
Partager