15,897,187 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 15493982 (Top 15 by date)
Member 15493982
29-Nov-22 1:54am
View
Thanks for your reply, but I don't know how to use this in assembler :(
Member 15493982
26-Nov-22 9:11am
View
:((, thanks for your help
Member 15493982
26-Nov-22 6:33am
View
Can you explain how to use it? Please :(((
Member 15493982
24-Jan-22 10:07am
View
I fixed the question before by using clearselection, I tried it for this problem, but nothing happend
Member 15493982
24-Jan-22 8:14am
View
I tried this way I used to fix this question before, but it didn't work, then I post this
Member 15493982
24-Jan-22 6:21am
View
what do you mean?
Member 15493982
20-Jan-22 7:04am
View
I know my problem. It is because I selected row then I enter text in Jtextfield, and when filter start, this statement:
selectedrow = table.convertRowIndexToModel(viewrow);
will error. Can you help me fix it
Member 15493982
20-Jan-22 4:39am
View
I see two:
table.getSelectionModel().addListSelectionListener(
new ListSelectionListener() {
@Override
public void valueChanged(ListSelectionEvent e) {
selectedrow = table.convertRowIndexToModel(viewrow);
}
}
);
sorter.setRowFilter(rf);
Member 15493982
19-Jan-22 21:02pm
View
No no,some time it can be value 0 out of bounds for length 0.
It like : Index X out of bounds for length Y (X,Y is a number)
And I don't set length for text field
Member 15493982
19-Jan-22 7:55am
View
I use filter on jtable, but sometime when I enter text on jtextfield to filter, it has exception like: index X out of bounds for length 0 (X is a number). I don't know why. I saw Keyboard focus manager in exception too
Member 15493982
19-Jan-22 7:18am
View
thanks you so much!!! I'm done with this issue.
Can I ask you one question?
Member 15493982
10-Jan-22 8:42am
View
Sorry :((( Next time I will learn from my experience
Member 15493982
10-Jan-22 8:21am
View
I'm sorry about that, but I think if I post a new, I can have more attention.
So sorry.
And I don't know. I'm using MouseListener to do select row.
Member 15493982
9-Jan-22 22:05pm
View
thanks, I updated
Member 15493982
9-Jan-22 11:23am
View
My code here
Selected row statement:
public void mouseClicked(MouseEvent e)
{
selectedrow = table.getSelectedRow();
}
When I delete or insert one row, I run this statement:
model.fireTableDataChanged();
The first time I try it returns correctly row, but any times later, it wrongs, it always return the first row, it mean index = 0, I try print it and I confirm that true, always 0.
Show More