473,803 Members | 3,619 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Moving data from a JTable to a Javascript table

7 New Member
Hi,

I have a program that is written in Java using swing. There is a JTable that is filled with data that needs to be put into a table on a web site which is written in Javascript. Each cell in the table on the web site is editable. The table in the application it set up to exactly like the one on the web site so it has all the same rows and columns. I have never used Javascript and don't know how to do this. Any help would be greatly appreciated.

Thanks
Oct 24 '07
16 2581
r035198x
13,262 MVP
Sorry, I'll make my question more clear. There is a website that is run by another person that needs to be updated by me often by inputting values on the table in the website. I want to make this updating easier by having a program that will update all the fields on the website for me so I just have to press the submit button.

I have created a Java application that has a JTable with all of the updated information on it that needs to be put on the website. I need a way for the program to post this information onto the table in the website.
When you say "post in the website" you mean enter the values into a table on one of the websites's HTML pages?
And you don't have acces to the code for that HTML page? I don't see how you can update the table then.
Oct 24 '07 #11
JosAH
11,448 Recognized Expert MVP
I think I was right from the start: I don't understand the question at all.

kind regards,

Jos
Oct 24 '07 #12
Epix
7 New Member
So you have a means of communication between your computer J (the one that
has the JTable) and machine S that needs an updated html file that it can send
to clients C?

I'd say follow r035198x's advice and have your computer J generate that html
file and send it to that server computer S.

kind regards,

Jos
The only way that I have access to the website is normally through a web browser so I can't sent the server a new html file unfortunately.
Oct 24 '07 #13
JosAH
11,448 Recognized Expert MVP
The only way that I have access to the website is normally through a web browser so I can't sent the server a new html file unfortunately.
So r035198x was right then: it can't be done; compare it with, say, google.com,
you can't *force* it to add information to its databases. The initiative is on google's
side. The same holds for your machines J and S.

kind regards,

Jos
Oct 24 '07 #14
Epix
7 New Member
When you say "post in the website" you mean enter the values into a table on one of the websites's HTML pages?
And you don't have acces to the code for that HTML page? I don't see how you can update the table then.
Yes that is what I mean by post to the website. Thanks for your help. Is there a way to do it using Javascript and PHP protocols or would you still need access to the websites html code for that to work? My coworker says there should be a way to do it using that.
Oct 24 '07 #15
r035198x
13,262 MVP
Yes that is what I mean by post to the website. Thanks for your help. Is there a way to do it using Javascript and PHP protocols or would you still need access to the websites html code for that to work? My coworker says there should be a way to do it using that.
If that were possible, then we would be able to go around editing people's websites and making them look silly.
Oct 24 '07 #16
Epix
7 New Member
If that were possible, then we would be able to go around editing people's websites and making them look silly.
Yeah. Thanks both of you for your help. It's greatly appreciated.
Oct 24 '07 #17

Sign in to post your reply or Sign up for a free account.

Similar topics

1
8977
by: asd | last post by:
I need to make the cells in the 1st column look like the column header. I tried the following code but it didn't change anything: private void rendererTest() { TableColumn column = tblDecisions.getColumnModel().getColumn(0); TableCellRenderer renderer = column.getHeaderRenderer(); column.setCellRenderer(renderer); }
1
7978
by: raysaun | last post by:
I am trying to set a TableCellEditor for a JTable, however, the editor never seems to get called. I can not even get a simplified version (below) to work. When I put a breakpoint on the return statement in getTableCellEditorComponent, it never stops there even though I edit cells in the table. Can anyone tell me what I am missing. By the way, I have gotten TableCellRenderers to work with no problems. public class Frame1 extends...
0
2031
by: nellu | last post by:
hi to all i have a JTable with n Rows and 5 Cols. i want to give search option in my program. program select a row dynamically. my code is like this ********************************* table = new JTable( dataValues, columnNames ); ListSelectionModel selectionModel = table.getSelectionModel(); selectionModel.addListSelectionListener( this ); scrollPane = new JScrollPane( table );
1
7396
by: onsir | last post by:
I have code like this, but still wrong. how to show data from database in JTable. package my.JavaNetBean; import java.sql.*; import java.io.*; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException;
5
7268
by: Ahmed Osama | last post by:
I'm using NetBeans 5.5 First :I want to bind data from table from MS Access DB into JTable . Second: Is there any other component in java to do the previous action(e.g. DataGrid )
2
2132
by: renehv | last post by:
Hi, does somebody konws how in runtime execution to change the data values in a JTable, setValueAt works only if the change is in the same table , if i want to change the table values from another component ??
1
1283
by: rengaraj | last post by:
Hi dears! I have some questions about JTable: 1- how can set some columns of my table in editable mode and som uneditable? 2- how can I create in some columns controls such as JButton or something like link to a file that these address save to my DB? 3- can I determine # of table rows in run time(when I create my JTable)?
5
9861
by: moizpalitanawala | last post by:
Hello friends, How to add data to JTable from a .txt file. I had seen this code from one of the tutorial from java.com. This code doesnt take any input. But shows what is written in the array. But i want the table to display the data from a .txt file in which i had stored information in this format. Can anyone please modify the codes and explain me. Name:Mr.xyz Phone:111111222222
5
5224
by: rburke1125 | last post by:
Hello All! I'm a bit new to Java, and certainly to the community. I'd appreciate any and all pointers to the right direction! I have a JTable that I have populated with a 2 dimensional array. During the period of the data sitting there, it will be modified. When finished, I would of course like to export it back to a 2 dimensional array. I really have no clue on the best way of doing this. I assume JTables do not have a 2-dim...
1
10300
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9127
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7607
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6844
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5503
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.