This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 226606 - The code (JTextField).setText(String) fails. See in google and many people have the same problem
Summary: The code (JTextField).setText(String) fails. See in google and many people ha...
Status: RESOLVED INVALID
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.1.1
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-24 12:22 UTC by Matias95
Modified: 2013-02-25 09:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
My code and window with my JTextField (94.68 KB, image/png)
2013-02-24 12:48 UTC, Matias95
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matias95 2013-02-24 12:22:57 UTC
Hi, thanks for reading. I have a problem with the code (JTextField).setText(String), I dont know why, could be a bug of java or yours. Many people in google have the same problem.
When I want to set a String of a class to a JTextField the String doesnt appear in that JTextField, and the String isnt null because I used System.out.println(String) to see what would say the String in the JTextField. Maybe Im doing something wrong but you should see this

Thanks, 

Product Version = NetBeans IDE 7.1.1 (Build 201203091344)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0_03
Runtime = Java HotSpot(TM) Client VM 22.1-b02
Comment 1 Matias95 2013-02-24 12:48:38 UTC
Created attachment 131797 [details]
My code and window with my JTextField
Comment 2 Marian Mirilovic 2013-02-25 07:38:13 UTC
This is not a NetBeans issue, sorry.
Comment 3 Tomas Pavek 2013-02-25 09:39:21 UTC
From the screenshot I guess the problem is rather in that you create a new textfield:
    txtNameCliente0 = new JTextField();
which is not placed anywhere, instead of just using the existing one.