| ta = | new JTextArea(rows, cols); | Creates textarea with specifed number of rows and columns. | |
| s = | ta.getText(); | Returns string in text area. | |
| ta.setText(s); | Sets text to s. | ||
| ta.append(s); | Adds s to end of existing text. | ||
| ta.insert(s, pos); | Inserts s at position pos. | ||
| ta.setEditable(bool); | Don't allow user to edit textarea if used for output. | ||
| ta.setLineWrap(bool); | Allow/disallow long lines to wrap. | ||
| ta.setWrapStyleWord(bool); | Call setLineWrap(true) first. true wraps at word boundaries, false (default) at characters. | ||
| ta.setBorder(brdr); | Add space between text and edge. Eg, to add 4 pixels use brdr BorderFactory.createEmptyBorder(4,4,4,4) |
Monday, November 19, 2007
declaration of JTextArea in java - Box containing multiple lines of text separated by '\n'.
Labels:
GUI Components
Subscribe to:
Post Comments (Atom)
Archives
-
▼
2007
(178)
-
▼
November
(178)
- java Font
- explain java.awt.Polygon in java
- Drawing an image using ImageIcon in java
- java.awt.Color Class
- explain java.awt.Graphics Class - Basic drawing me...
- Graphics methods and related classes in java
- define java GridBagLayout
- CardLayout in java
- define java BoxLayout, Box
- define and declaration of BoxLayout, CardLayout, G...
- FlowLayout, BorderLayout, GridLayout in java
- Low-level java gui Containers - special purpose - ...
- Low-level Container supporting layouts in java - J...
- java JFrame - window, typically subclassed
- short notes on Java GUI Containers
- declaration of JCheckBox - Check box followed by t...
- declaration of JTextArea in java - Box containing ...
- declaration of java JButton - Standard clickable b...
- about JTextField in java gui components - Box cont...
- about JLabel in java gui component - For fixed text.
- java Basic GUI Components
- java 3d arrays Initial values
- usage of static in java array sizes
- Visualizing java two-dimensional arrays
- define java 2-dimensional Arrays
- Shuffling (randomizing) an array in java
- Use of java Arrays.asList(...) for Collections vie...
- java.util.Arrays.toString(...) for debugging
- java arrays library methods
- Iterating over an array in java
- java array Subscripts - Accessing elements of the ...
- java Array initial values
- Array Declaration in java
- short notes on java summary
- explain javastringbuffer - java.util.StringBuilde...
- ANSI/ASCII and Extended Latin Sections of Unicode
- character data types in java
- example program on java Inner class listener (xicl)
- example program on Add anonymous action listener (...
- example programs on Graphics class (xgraphics)
- java Applet - Application (xappapp)
- example program on java Generic GUI program (xgui)
- java Comment header (xheader)
- java NetBeans Code Snippets
- java String Concatenation
- java String methods
- Java: Summary - String
- java Object Operators
- java Casts
- java Bitwise Operators
- java Assignment Operators
- java Conditional Operator
- java Logical Operators
- java Arithmetic Operators
- Java: Summary - Expressions
- java Character, String, ... classes
- java Boolean class
- java Floating-point classes
- java Integer classes
- java Classes
- Java: Summary - Data
- Software Engineering: Function Point Analysis: Tra...
- Software Engineering: Function Point Analysis: Dat...
- Counting function points in java
- Software Engineering: Function Point Analysis: Int...
- Java: Method Cyclomatic Complexity
- Java: Complexity Measurement
- Java: Complexity is your enemy
- Examples in Java
- Usefulness of java frameworks
- What is a java framework?
- Java: Frameworks
- JOptionPane.showMessageDialog
- Java: Debugging Output
- java Programmer errors - throw an exception
- java Debugging error checking - assert
- Java: Error processing
- java Rigorous testing
- java Catch runtime errors early if possible
- java Compile-time errors are the best
- Java: Fail Early, Fail Often
- java working program
- java Iterative/Incremental Development
- Java: Development Process
- Java: Design By Contract
- Java: Cohesion
- Java: Coding Guidelines v2 - Summary
- java applet HTML tag
- Converting java Applets to Applications
- java Applets
- how to Compiling a Java program
- java Applications - text example
- JAVA Class libraries
- Java support for large programming projects
- Object Oriented Programming - OOP
- Java Strings are not Arrays of char
- Java and C Arrays
- Java is harder because ...
- Java: Java vs. C
- Java portability
- define Java Virtual Machine
- Java: Java Virtual Machine
- Java: History of Java
- Java: Weaknesses
- Java: Strengths
- java AWT advantages
- java Swing advantages
- Must choose between java Swing and AWT
- Java: GUI - Swing vs. AWT
- java JLint
- java Jalopy
- Java Coding Standard Checker
- java FindBugs
- java Checkstyle
- java PMD
- Style and Correctness of java Checkers
- Usage of java ant
- Simple build.xml file
- java Ant
- java TextPad Problems?
- 3. Entering, compiling, and executing your Java pr...
- 2. Download and install java TextPad
- java TextPad Editor + JDK
- java GUI editor - Connecting components to code (l...
- java GUI editor - Toggle between Source and Design...
- Starting a new java GUI project (covered in the ww...
- Packaging resources (eg images, data, ...) with yo...
- Settings in java NetBeans you might want to change
-
▼
November
(178)
No comments:
Post a Comment