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
rmiregistry(1)						      General Commands Manual						    rmiregistry(1)

NAME
rmiregistry - Java remote object registry SYNOPSIS
rmiregistry [ port ] DESCRIPTION
The rmiregistry command creates and starts a remote object registry on the specified port on the current host. If port number is omitted, the registry is started on port 1099. The rmiregistry command produces no output and is typically run in the background. For example: example% rmiregistry & A remote object registry is a bootstrap naming service that is used by RMI servers on a host to bind remote objects to names. Clients can then look up remote objects and make remote method invocations. The registry is typically used to locate the first remote object on which an application needs to invoke methods. That object in turn pro- vides application-specific support for finding other objects. The methods of the java.rmi.registry.LocateRegistry class are used to get a registry operating on a particular host or host and port. The URL-based methods of the java.rmi.Naming class operate on a registry and can be used to look up a remote object, bind a simple (string) name to a remote object, rebind a new name to a remote object (overriding the old binding), unbind a remote object, and list the URLs bound in the registry. OPTIONS
The following option is supported: -Joption Used in conjunction with any java option, this option passes option (no spaces between -J and option) on to the java inter- preter. SEE ALSO
See (or search java.sun.com) for the following: java.rmi.Naming @ http://java.sun.com/j2se/1.5/docs/api/java/rmi/Naming.html java.rmi.registry.LocateRegistry @ http://java.sun.com/j2se/1.5/docs/api/java/rmi/registry/LocateRegistry.html 23 Apr 2001 rmiregistry(1)