Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #796
| From | "Badshah" <badshah@THRWHITE.remove-dii-this> |
|---|---|
| Subject | JTextField Unicode Mysq |
| Message-ID | <1169814706.283669.75990@v45g2000cwv.googlegroups.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| Date | 2011-04-27 15:29 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui
Hello Friends, How are you ? I am Sohil. I am here with a problem
I am creating a text editor that will store data in mySql database. I
want to get the data in text field. I am having "♥" character in
database.
Select * from bank_master;
+---------+-----------+
| Bank_Id | Bank_Name |
+---------+-----------+
| 3 | ♥ |
+---------+-----------+
I am not able to display this character in textbox. The text box is
showing a rectangle instead of that character.
textfield.setText(rs.getString("Bank_Name"));
But, when I am retriving the character from text box and display it on
the command prompt console it shows right character ie. "♥"
System.out.println(textfield.getText());
I am not able to get the problem here.
Sohil Surti
---
* Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Next in thread | Find similar | Unroll thread
JTextField Unicode Mysq "Badshah" <badshah@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000 Re: JTextField Unicode "mikey" <mikey@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
csiph-web