1. JTextArea with strange behaviour when resizing the JFrame stackoverflow.comI'm using some
|
2. How to stop wordwrapped-JTextArea from resizing to fit large content? stackoverflow.comI currently have a wordwrapped-JTextArea as a user input window for a chat program. How do I make it so the JTextArea doesn't resize to automatically fit large text? I have ... |
3. allowing users to "draw" and resize JTextArea stackoverflow.comI want to allow users to be able to "draw" with their mouse (click and drag) to create and size a JTextArea. As well, I would like to have the text ... |
4. Resizable JTextArea coderanch.com |
5. Resizing TextArea() coderanch.comHi this what you want is not so easy. Two days ago we had the same discussion. There I told the guy, that he should better take the null layout. Then it is possible to resize components. In case of GridBagLayout, all the available space is provided by the LayoutManager. Only the manager can set the size. So the thing you ... |
6. Problems Resizing TextArea coderanch.comI cant seem to resize a text area box. I tried resizing the text area and the panel that I put it in. What am I doing wrong? method public JPanel createTextAreaPanel() { textArea = new TextArea(); textArea.setSize(TEXT_AREA_FRAME_WIDTH, TEXT_AREA_FRAME_HEIGHT); JPanel panel = new JPanel(); panel.add(textArea); panel.setSize(TEXT_AREA_FRAME_WIDTH, TEXT_AREA_FRAME_HEIGHT); return panel; } whole class /* * To change this template, choose Tools | ... |
7. Help with JTextArea, resize windows java-forums.orgimport javax.swing.*; import java.awt.*; import java.util.Random; public class Oval extends JPanel { public void paintComponent( Graphics g ) { super.paintComponent( g ); Random randomNumbers = new Random(); int width = 1 + randomNumbers.nextInt( 200 ); int height = 1 + randomNumbers.nextInt( 200 ); double area = Math.PI * (width/2) * (height/2); String text = "Area = " + area + "\n"; ... |
8. JTextArea resizing problem java-forums.orgI am using GridLayout. I have added different components on different panels, and then added the panels on a single panel. here is the code for panels private void createComponent() { this.createLabel(); this.createTextField(); this.createTextArea(); this.createRadioButton(); this.createComboBox(); this.createButton(); JPanel p1=new JPanel(new GridLayout(2,2,5,5)); p1.add(l1); p1.add(t1); p1.add(blank1); p1.setBorder(BorderFactory.createEtchedBorder()); JPanel p2=new JPanel(new GridLayout(1,2,5,5)); p2.add(l2); p2.add(t2); JPanel p3=new JPanel(new GridLayout(1,3,5,5)); p3.add(l3); p3.add(r1); p3.add(r2); JPanel p4=new JPanel(new ... |