Results 1 to 4 of 4
Thread: jtable cell to string
- 04-30-2010, 02:12 AM #1
jtable cell to string
Basically what the title says.
I am running a Modification System,
Process:
Menu:
Select Modify:
"What would you like to search by to Modify:"
System Code
System Name
System Abbreviation
Brings up a jtable, with all data with similar names.Java Code:String SysName = JOptionPane.showInputDialog(null, "What is the System Name?", "Modify System Definition: System Name", JOptionPane.QUESTION_MESSAGE); String SQL = "SELECT * FROM `eossysdef` WHERE SysName LIKE '%"+SysName+"%';";
This is where I am at.
How do I either click a row and get it to send to a string or each cell to a string multiple smaller strings.
Because it will go to another Panel and fill in the TextBoxes to allow a person to modify and submit.:rolleyes: ~ Sno ~ :rolleyes:
'-~ B.S. Computer Science ~-'
- 04-30-2010, 01:00 PM #2
Double posted, and in two different but wrong sections.
Read the JTable API, all the methods you need are there. And in future, post Swing related questions in the AWT/Swing section, once only.
db
- 04-30-2010, 04:46 PM #3
I apologize for the double post, just was looking for an answer, or an idea. Can not seem to get one.
Also, the api is slightly confusing me, and my thinking was, this may be a beginner question, so I asked it here, than after no one responded for a period of 6 hours, I figured maybe its an advanced question.
All I am looking for Is something that will say
String CellValue = point at cell selected by mouse:rolleyes: ~ Sno ~ :rolleyes:
'-~ B.S. Computer Science ~-'
- 04-30-2010, 05:08 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,398
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
JTable Cell Merg
By anilkumar_vist in forum AWT / SwingReplies: 8Last Post: 04-25-2011, 09:32 AM -
Setting jTable cell?
By greatmajestics in forum New To JavaReplies: 5Last Post: 04-22-2010, 05:33 PM -
jtable cell background
By anilkumar_vist in forum New To JavaReplies: 0Last Post: 02-22-2010, 04:08 PM -
add a check box to only one cell in a JTable
By aruna1 in forum New To JavaReplies: 4Last Post: 04-03-2009, 06:28 PM -
jTable Cell editing
By mahaling_m in forum AWT / SwingReplies: 0Last Post: 06-23-2008, 08:17 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks