Created
December 15, 2014 11:37
-
-
Save anugrahbsoe/3c570722a0d695cb65be to your computer and use it in GitHub Desktop.
membuat textarea dan scrollpane resizable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//membuat textarea dan scrollpane resizable | |
scrollPane = new JScrollPane(); | |
scrollPane.setAutoscrolls(true); | |
scrollPane.setBounds(120, 330, 524, 72); | |
scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); | |
scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); | |
contentPane.add(scrollPane); | |
txtSolusi = new JTextArea(); | |
txtSolusi.setLineWrap(true); | |
txtSolusi.setEditable(false); | |
txtSolusi.setEnabled(false); | |
scrollPane.setViewportView(txtSolusi); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment