• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Editing JTable cells doesn't work in a browser

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 am not young enough to know everything. - Oscar Wilde This tiny ad thinks it knows more than Oscar:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic