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 206615 - Line in editor for text fields goes down with scrolling right
Summary: Line in editor for text fields goes down with scrolling right
Status: RESOLVED WORKSFORME
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 7.0.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-21 10:43 UTC by hlupec
Modified: 2012-04-25 13:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
cursor and text are at a different positions (190.81 KB, image/png)
2011-12-21 10:43 UTC, hlupec
Details
problem with diacritics (180.88 KB, image/png)
2012-04-24 07:46 UTC, hlupec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hlupec 2011-12-21 10:43:27 UTC
Created attachment 114390 [details]
cursor and text are at a different positions

Product Version: NetBeans IDE 7.0.1 (Build 201107282000)
Java: 1.6.0_26; Java HotSpot(TM) 64-Bit Server VM 20.1-b02
System: Linux version 2.6.38-13-generic running on amd64; UTF-8; cs_CZ (nb)

When i want to edit database text field containing long line of text, in the opened editor is this line going down when i scroll to right. Cursor is staying at normal position of the line.
Comment 1 Jan Peska 2012-04-02 09:16:20 UTC
Hi,

can you provide few screenshot mapping this behavior? I'm not sure what editor you have a problem with. Please reopen ASA screenshots are attached.

Thanks for reporting
Comment 2 Martin Fousek 2012-04-02 10:15:18 UTC
Actually it seems that there is already attached a screenshot. I think that the problem happens in cases if you open editor for editing db items of type=TEXT (in cases of MySQL database).
Comment 3 hlupec 2012-04-02 10:26:52 UTC
yes, Martin is right (on database table's (services window -> databases -> some connection -> tables) menu -> view data -> next you want to edit text in MySQL data type TEXT -> textarea is opened as the screenshot shows). i realy dont know, of what should i take another screenshot.
Comment 4 Jan Peska 2012-04-02 11:57:31 UTC
Oh sorry guys my fault, I totally missed it :) of course another screenshot is not needed.
Comment 5 Jan Peska 2012-04-02 13:01:40 UTC
I believe this property editor is part of  db.dataview module - see these 2 lines pasted from thread dump
 
at org.netbeans.modules.db.dataview.table.celleditor.StringTableCellEditor.editCell(StringTableCellEditor.java:146)
at org.netbeans.modules.db.dataview.table.celleditor.StringTableCellEditor.actionPerformed(StringTableCellEditor.java:131)

reassigning back to DB/Show data
Comment 6 matthias42 2012-04-23 22:07:56 UTC
Hey, I just tried with a newer version of netbeans:

Product Version: NetBeans IDE 7.1 (Build 201112071828)
Java: 1.6.0_23; OpenJDK 64-Bit Server VM 20.0-b11
System: Linux version 3.2.1 running on amd64; UTF-8; de_DE (nb)

I could not reproduce the problem there (tested with a text field in a mysql database containing ca. 800 chars).

Could you please test with the newer version again? If it happens again, please try to create a minimal testcase: a table containing a text the causes the problem for you, that you could dump and attach?
Comment 7 hlupec 2012-04-24 07:45:55 UTC
This bug is in 7.1 too. I figure out, that the problem is caused by diacritics. I will add a new screenshot.
Comment 8 hlupec 2012-04-24 07:46:46 UTC
Created attachment 118673 [details]
problem with diacritics
Comment 9 Jan Peska 2012-04-25 13:44:17 UTC
I'm finally able to reproduce this issue. It happens only on Java 1.6 and it is a JDK issue of all text fields and areas when e.g char "ě" moves all upcoming chars down. It is fixed for java 1.7 -> WORKSFORME