Java UI does not come up using txtContent.setLineWrap(true) API


 
Thread Tools Search this Thread
Top Forums Programming Java UI does not come up using txtContent.setLineWrap(true) API
# 1  
Old 09-23-2008
Java UI does not come up using txtContent.setLineWrap(true) API

Hello ,

I have code which runs on solaris using java 1.2.2 .. UI will not come up when i use the command "txtContent.setLineWrap(true);".. UI gets displayed if do not use it...
______________________________________________________
txtContent = new JTextArea(20,30);
//txtContent.setRows(20);
txtContent.setEditable(false);
txtContent.setLineWrap(true);
txtContent.setWrapStyleWord(true);

JScrollPane scrlStatus = new JScrollPane(txtContent);
_________________________________________________________

Please let me the ways in which i could display using setLineWrap .. Or suggest some alternate with LineWrap functionality..
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. Solaris

Java api/sample code for sftp

I'm trying to find an api for Java to send/receive files via sftp. There are some available for purchase out there such as JScape, but I was hoping to find a free one. Does anyone know of one? I would also like to find an open source java example application that can send files via sftp. ... (2 Replies)
Discussion started by: JohnRodey
2 Replies
Login or Register to Ask a Question
serialver(1)						      General Commands Manual						      serialver(1)

NAME
serialver - serial version command SYNOPSIS
serialver [ options ] [ classnames ] options Command-line options, as specified in this document. classnames One or more class names. DESCRIPTION
serialver returns the serialVersionUID for one or more classes in a form suitable for copying into an evolving class. When invoked with no arguments, it prints a usage line. OPTIONS
-classpath <directories and zip/jar files separated by:> Set search path for application classes and resources. -show Displays a simple user interface. Enter the full class name and press either the Enter key or the Show button to display the serialVersionUID. -Joption Pass option to the Java virtual machine, where option is one of the options described on the man page for the java applica- tion launcher, java(1). For example, -J-Xms48m sets the startup memory to 48 megabytes. It is a common convention for -J to pass options to the underlying virtual machine. SEE ALSO
See (or search java.sun.com) for the following: java.io.ObjectStreamClass @ http://java.sun.com/j2se/1.5/docs/api/java/io/ObjectStreamClass.html 24 June 2004 serialver(1)