large text from database in textarea

user3013767

I have the synopsis from a list of films saved in a database, I want to show that text in a TextArea when the user clicks in the table a specific film. When it happens, the text appears all in one line and destroys the structure of my jFrame. How could I give some format to that text? I'm working at Netbeans IDE.

 ResultSet rs2=DB.Sinopsis(code);
    try{
        while(rs2.next()){
            TextSynopsis.setText(rs2.getObject("sinopsis").toString()); 
        }
    } catch (SQLException ex) {
        Logger.getLogger(DB.class.getName()).log(Level.SEVERE, null, ex);
    }
Aakash Goyal

Use setLineWrap(boolean) property of JTextArea ie if TextSynopsis is an object of JTextArea

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to embed a received text from database to textarea

From Dev

Saving formatted text from textarea to database

From Dev

How do i post text from textarea to mysql database

From Dev

Expand textarea width imported text from database with jQuery

From Dev

Extracting from database to textarea

From Dev

Retrieve text from textarea

From Dev

delete selected text from textarea

From Dev

Replacing an exact text from textarea

From Dev

Retrieve text from textarea in Flask

From Dev

delete selected text from textarea

From Dev

Text from button to TextArea Javascript

From Dev

Copy text from text fields to textarea + labels

From Dev

Copy text from text fields to textarea + labels

From Dev

Showing Comma separated values from database in a textarea?

From Dev

count char of TextArea (retrieved from database)

From Dev

Ajax - Inserting values from textarea into database

From Dev

Echoing data from msql database to textarea in HTML

From Dev

Structuring database table with large text field

From Dev

Import large text files into SQL Server database

From Dev

get value from textarea and create a new textarea with the text

From Dev

How to get the text from textarea in php?

From Java

How to get highlighted text position from textarea?

From Dev

Get text from textarea and append it to a hidden input

From Dev

JavaFX read from text file and display in textarea

From Dev

Get text from CK Editor textarea in JQuery

From Dev

Get the text from textarea line by line?

From Dev

Appending text from textarea to div on button click

From Dev

Pulling edited text from summernote textarea

From Dev

Save multi-line text from textarea

Related Related

HotTag

Archive