JTable, how to read Data from it when enter is pressed
How to read Data from JTable on Return or lost focus from cell.
Also please tell me which listener I should should.
thx for help
You should read the tutorial about tables, cell editors and models.
Also you should not [url http://forum.java.sun.com/thread.jsp?thread=472677&forum=57&message=2186815]crosspost
Mike
Similar Messages
-
JTable, how to read Data from it when mouse is clicked on a Row?
I Implemented a Listener to the Table, but how can I know on which Row I have clicked and How can I read the Data from that row?
My Table, has a header (6Columns) and various number of Rows.
thx for helpI think you have to extends the class AbstractTableModel
and redefine the method getValueAt( int row , int col )
thanks -
How to read data from a connected modem
any one can help me? how to read data from a connected modem. The modem received real-time data from other server. The data is in text format. I can see this text when I used hyperterminal for dial up and the data is accumulated such as:
@aa1235678
@bb2135647
@cc5214367
since it is real-time data, I want to read one line each time instantly when it arrives.You need to use the Java Communications API. (http://java.sun.com/products/javacomm/index.html)
-
How to read data from a zipped MS Access file?
How to read data from a zipped MS Access file?
RPJ,
You do not need to use the Close Zip File.vi when you unzip a folder. This VI is used when you are creating a zip folder.
As for examples, I found a couple of ActiveX based MS Access examples. These programs look to be pretty basic. For more in depth example I would search Microsoft Developers Network
http://zone.ni.com/devzone/cda/epd/p/id/2188
http://zone.ni.com/devzone/cda/epd/p/id/1694
Regards,
Jon S.
National Instruments
LabVIEW R&D -
How to read data from a CLUSTER STRUCTURE not cluster table.
Hi,
how to read data from a CLUSTER STRUCTURE not cluster table.
regards,
Usha.Hello,
A structre doesnt contain data.. so u cannot read from it. U need to find out table of that structure and read data from it.
Regards,
Mansi. -
How to read data from a file that was formatted by excel?
Hi everyone, I'm familiar with java.io and the ability to read from files, can anyone tell me how to read data from a file that was formatted by excel? Or at least give me some web references so that I can learn about it?
http://jakarta.apache.org/poi/hssf/index.html
HSSF stands for Horrible Spreadsheet Format, but it still works! -
How to read data from a router by using labview
I am a beginner labview. How to read data from a router by using labview ?
What kind of data are you trying to read?
Does the router behave like a webserver that you log into? If so, search the forums for threads discussing HTML. -
How to read data from an internal table into a real table?
Hello experts,
I'm relatively new to ABAP and I'm trying to figure out how to read data from an internal table into a table that I created. I'm trying to use the RRW3_GET_QUERY_VIEW_DATA function module to read data from a multiprovider. I'm trying to read data from the e_cell_data and e_axis_data tables into a table that I've already created. Please see code below.
TABLES MULTITAB.
DATA:
query_name TYPE RSZCOMPID,
s_cubename TYPE RSINFOPROV,
t_cell_data TYPE RRWS_T_CELL,
t_axis_data TYPE RRWS_THX_AXIS_DATA,
t_axis_info TYPE RRWS_THX_AXIS_INFO,
wa_t_cell_data like line of t_cell_data,
wa_t_axis_data like line of t_axis_data,
w_corp_tab like line of t_cell_data.
s_cubename = 'CORP_MPO1'.
query_name = 'Z_corp_test'.
CALL FUNCTION 'RRW3_GET_QUERY_VIEW_DATA'
EXPORTING
i_infoprovider = s_cubename
i_query = query_name
i_t_parameter = query_string_tab
IMPORTING
e_cell_data = t_cell_data
e_axis_data = t_axis_data
e_axis_info = t_axis_info.
If anyone has any information to help me, I would greatly appreciate it. Thanks.Hi,
<li>Once you call the function module RRW3_GET_QUERY_VIEW_DATA, lets say data is available in the corresponding tables e_cell_data e_axis_data which you have mentioned.
<li>Modify your internal table defined for other purpose, with data from e_cell_data e_axis_data like below.
LOOP AT t_cell_data INTO wa_t_cell_data.
"Get the required data from t_cell_data.
MOVE-CORRESPONDING wa_t_cell_data TO it_ur_tab.
"Modify your internal table wih data
MODIFY it_ur_tab TRANSPORTING <field1> <field2> <field3>.
ENDLOOP.
LOOP AT t_axis_data INTO wa_t_axis_data.
"Get the required data from t_cell_data.
MOVE-CORRESPONDING wa_t_axis_data TO it_ur_tab.
"Modify your internal table wih data
MODIFY it_ur_tab TRANSPORTING <field1> <field2> <field3>.
ENDLOOP.
Thanks
Venkat.O -
Help me, How to read data from USB ???
Help me, How to read data from USB ???
If its a disk on key or some portable hard drive than once its connected to the usb and recognized by the system you can access it through java like you would access your hard drive.
-
How to read data from Logical Database ADA for more than one financia year
Hi,
I need to read data from ADA logical database and ANLCV node for current financial year 2007 and for the next 3 years 2008, 2009, 2010. When I do this using program attached below, I receive only data for one year, which is entered at the selection screen in the field BERDATUM. How should I modify my program to read ANLCV node for more then one year ? Could anybody help me ?
Kind regards,
Zbigniew Debowski
REPORT ZWRZD075.
NODES: anlav, anlcv.
START-OF-SELECTION.
GET anlav.
WRITE:/ anlav-anln1, ' ', anlav-anln2.
GET anlcv.
WRITE:/ anlcv-kansw, ' ', anlcv-knafa, ' ', anlcv-gjahr.Hi!
Have you already tried your luck in Java Programming forum?
Regards,
Thomas -
How to Read data from Infocube
Dear Friends,
I have requirement to read data from Infocube.
I know the Function module(FM) which SAP provided. The FM name is RSDRI_INFOPROV_READ.
But when i am trying to execute this FM in SE37, it giving "Error generating the test frame" message.
I called this FM in start routine, it giving error while loading.
If any using this please let me know, how to use this. If any have sample code, please share.
Thx
RajHi,
i used to check documentation all time, but this time I forgot to check.
It is well documented. thx for igniting my mind.
bye
Raj -
How to read data from database to applet
hi i am writing a program below which reads data from mysql database successfully ;
import java.sql.*;
import java.lang.*;
import java.util.*;
public class Read_Capital_country_from_database {
public static void main (String args[] ){
int index,mess;
String country_arr[] = new String[250];
String capital_arr[] = new String[250];
int i = 0 ;
String URL = "jdbc:mysql://localhost/allusers";
String user = "shadab";
String password ="shadab@123";
try {
Class.forName("com.mysql.jdbc.Driver");
Connection conn = DriverManager.getConnection(URL,user,password);
for( SQLWarning warn = conn.getWarnings(); warn != null; warn = warn. getNextWarning() )
System.out.println( "SQL Warning:" ) ;
System.out.println( "State : " + warn.getSQLState() ) ;
System.out.println( "Message: " + warn.getMessage() ) ;
System.out.println( "Error : " + warn.getErrorCode() ) ;
String sql = "select * from country_capital";
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery(sql);
while( rs.next() ) {
System.out.println( rs.getString(1) );
System.out.println(" " +rs.getString(2) );
System.out.println();
catch (SQLException se){
System.out.println( "SQL Exception:" ) ;
System.out.println("Exception - raju");
while( se != null )
System.out.println( "State : " + se.getSQLState() ) ;
System.out.println( "Message: " + se.getMessage() ) ;
System.out.println( "Error : " + se.getErrorCode() ) ;
se = se.getNextException() ;
catch( Exception e )
System.out.println( e ) ;
java Read_Capital_country_from_database
OUT PUT OF ABOVE PROGRAM IS :
INDIA NEW DELHI
PAKISTAN ISLAMABAD
AFGHANISTAN KABUL
BUT SAME PROGRAM WHEN I GO TO WRITE IN APPLET
THIS TIME APPLET DOES OPEN BUT ERROR SHOWS ON STANDARD OUT PUT
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
THIS IS THE PROGRAM WRITTEN FOR JAVA APPLET
import java.sql.*;
import java.lang.*;
import java.util.*;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
public class Read_Capital_country_from_database extends Applet {
Choice country, capital;
String msg=" ", msg1;
int index,mess;
String country_arr[] = new String[250];
String capital_arr[] = new String[250];
char chr;
int i = 0;
public void init() {
country = new Choice();
capital = new Choice();
String URL = "jdbc:mysql://localhost/allusers";
String user = "shadab";
String password ="shadab@123";
try {
Class.forName("com.mysql.jdbc.Driver");
Connection conn = DriverManager.getConnection(URL,user,password);
for( SQLWarning warn = conn.getWarnings(); warn != null; warn = warn. getNextWarning() )
System.out.println( "SQL Warning:" ) ;
System.out.println( "State : " + warn.getSQLState() ) ;
System.out.println( "Message: " + warn.getMessage() ) ;
System.out.println( "Error : " + warn.getErrorCode() ) ;
String sql = "select * from country_capital";
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery(sql);
while( rs.next() ) {
country_arr[i] = rs.getString(1);
country.add(country_arr);
capital_arr[i] = rs.getString(2);
capital.add(capital_arr[i]);
i++;
catch (SQLException se){
System.out.println( "SQL Exception:" ) ;
System.out.println("Exception - raju");
while( se != null )
System.out.println( "State : " + se.getSQLState() ) ;
System.out.println( "Message: " + se.getMessage() ) ;
System.out.println( "Error : " + se.getErrorCode() ) ;
se = se.getNextException() ;
catch( Exception e )
System.out.println( e ) ;
add(country);
add(capital);It doesn't make sense to read a database directly from an applet. If an applet needs data from a database is should request if from the server which the applet is located on and the server should do the actual database actions.
The whole point of applets is that they require no installation on the client machine. If you have to change policy files or the like, you might as well install a Swing application. Furthermore accessing a database tends to depend on how the client is set up on the network. Any sensible network has firewall settings that block access to the database ports to any external access (and, again, if you are limiting the facility to a few internal machines then why not just install a program on them). -
How to read data from idoc to internal table?
Hi
How to get data from idoc segments to internal table?Hi
Check this ex
The following coding sample, shows how you may read a MATMAS IDoc and extract the data for the MARA and MARC segments to some internal variables and tables.
DATA: xmara LIKE mara.
DATA: tmarc LIKE marc
OCCURS 0
WITH HEADER LINE.
LOOP AT edidd.
CASE edidd-segnam.
WHEN 'E1MARAM'.
MOVE edidd-sdata TO xmara.
WHEN 'E1MARCM'.
MOVE edidd-sdata TO tmarc.
APPEND tmarc.
ENDCASE.
ENDLOOP.
now do something with xmara and tmarc.
hope this helps you...
Reward points if useful..
Regards
Sreenivas -
How to read data from a file in OSB
hi guys,
Recently, I've got a problem with reading file from specific location. I've actually followed this post OSB 11g - Read or Poll File in OSB - Oracle Fusion Middleware Blog, and then
I know how to read a file. However, it does not as expected. Because, I've found no way to read data from the file. Therefore, no chance to manipulate the data like assigning to a variable, or extracting ....
Hence, is there any way to read data from file by using proxy service in OSB ??? No Java code ???
by the way, supposed that there is no way to read data from a file in OSB. So, What purposes will the way in the post above be used for?
Many thanks in advancehttp://jakarta.apache.org/poi/hssf/index.html
HSSF stands for Horrible Spreadsheet Format, but it still works! -
How to Read Data from a table (horizontal axsis) in an existing report
Hi to all,
I've a question. I must read the data in a table of an existing report. I develope with BO XI 3.0
I don't know how to reach the table in my report from SDK.
this is my code:
reports = document.getReports();
rep = reports.getItem(0);
the report has the title and a table horizontal axsis.
I must read the column name(header column) of the table and all rows for retrieving values.
Thank u in advance for your attention.hi ChinMay,
thank u for your answer.
I would like to ask u if Ireport refers crystal reports, while i mean to read data from a webi report.
I've tried in many manners to read this data and i've read the SDK, but i'm unable to reach the table of my report for reading its rows. i'm able to export in XML format, i'm able to get reportelement , block, but in the java's example of SDK its not present how to obtain the reportbody and subsequently the section or directly a table. the example that i've seen show that if u create a new report u can create the reportbody, the section, the table and others. But don't show how to obtain this from an existing report.
Probably i don't understand very well all the SDK structure and i think that is possbile to read a table(with horizantal axis) in a report without section only passing by the ReportBody.
I know that u don't have so time to spent for things that are in the SDK, but if it's possible to have ten rows of sample about this question i'll be very happy.
If it's not possibile, thank u very much for your interesting and disponbility and i'll try again and again and again to solve this.
Matteo
Maybe you are looking for
-
Black Screen - Get Chime - Can Boot off HDD using another Mac - iMac 24in.
Hope someone can help me here, as I'm at my wits end. I've got two issues, one with my MacBook Pro 17in, 4GB RAM, 160GB 7200rpm (2008) and another with my iMac 24in. 4GB RAM, 500GB 7200rpm (2009). Firstly the MBP, left work on Thursday last week, got
-
IDES ECC6.0 including EHP4 on 32 bit machine
MARKUS, I am installing IDES ECC6.0 including EHP4 on 32 bit machine.. I came to know from the following ( Note 1379040 - IDES ERP 6.0 ECC 6.0 incl. EHP4) that i cannot install IDES ECC6.00 on 32 bit,but i can install via system copy method.. I follo
-
Hi folks, I'm at a loose end. My g4's just over a year old now and yesterday when I opened the lid from sleep mode it wouldn't recover. (Over the last week, it has started crashing occasionally, but never this bad...) Upon removing the battery to reb
-
Hi all, -I want to show text on the right side of the header of ALV grid. -Secondly i have limit of around 60 characters in a line...i want to add more words in the same line..... <b>see the code...here..</b> wa_listheader-typ = 'S'. wa_listheade
-
We have lost some valuable virtual instruments(.vi's) in a hard drive crash. We do have copies of the executables(.exe's). Is there any procedure or software available to return them to their original state (.vi's)? Please Help.