aspose file tools*
The moose likes Applets and the fly likes Editing JTable cells doesn't work in a browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Editing JTable cells doesn Watch "Editing JTable cells doesn New topic
Author

Editing JTable cells doesn't work in a browser

D. Paul Lee
Greenhorn

Joined: Jan 26, 2011
Posts: 2
Hi,
First post - please be kind

I wrote an applet which seems to work fine, but then I decided to add a JTable with editable cells to make the applet more user friendly, and to allow for some experimentation. When I run the
applet using appletviewer, it works fine, and I can edit the cells by clicking on them.
But, when I run the applet on a web browser, the JTable is displayed, but the cells can't be edited.
For the life of me I can't see what is up and why it wont' work on a browser. I can't believe its a security
issue as the data manipulation is done to data help implicitly within the applet, and doesn't access text files or a database.

I've zipped up the files on my website http://www.paullee.com/sinking.zip

- it also includes the sinking.html which I use to view the applet. I compile the applet using a small series of instructions in the file called run.sh (its a small script that I use on Linux). So far I get non-editability on Firefox and Chrome under Linux. Can anyone suggest what is wrong (please be kind!)

Best wishes

Paul
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42276
    
  64
Can't help, as it works fine for me on both Safari and Firefox on OS X. At least there's a silver lining :-)


Ping & DNS - my free Android networking tools app
D. Paul Lee
Greenhorn

Joined: Jan 26, 2011
Posts: 2
Thanks! I honestly can't see anything wrong in the code, but when its on a webpage ( its currently on http://www.paullee.com/titanic/sinking.php ) I can't edit the cells. It is driving me nuts.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Editing JTable cells doesn't work in a browser