wood burning stoves
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 Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Editing JTable cells doesn Watch "Editing JTable cells doesn New topic

Editing JTable cells doesn't work in a browser

D. Paul Lee

Joined: Jan 26, 2011
Posts: 2
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

Ulf Dittmer

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

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
It's not a secret anymore!