GridBagLayout « JTextArea « Java Swing Q&A





1. JTextArea and GridBagLayout ??    coderanch.com

2. JTextArea problems in GridbagLayout    coderanch.com

import java.awt.Component; import java.awt.Container; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JRadioButton; import javax.swing.JTextArea; import javax.swing.JTextField; import java.awt.Dimension; import javax.swing.JScrollPane; public class CBG extends JFrame implements ActionListener { JRadioButton privateRadio = new JRadioButton("Private"); JRadioButton protectedRadio = new JRadioButton("Protect"); JRadioButton publicRadio = new JRadioButton("Public"); JButton methodButton = new JButton("Methods"); JButton fieldButton = ...