This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I would like to get some opions on the best practises for what I would like to acheive.
I have A JEditorPane that shows a HTML page. On this HTML page are check boxes that the user interacts with. On the click of a button on the HTML page, I need to write the user's selection to a file. (I don't want to use an Applet!)
To acheive this I have found a few ways that I could do it.
Just to elaborate on what I'm doing because I'm not doing a browser (thank goodness!)
I'm writing a communications application. It has email, weather and news and gets the information on demand from a central server.
The original application was written in VisualBasic and I'm trying to hold as much of the old look in the new application. And one of these items is this News section, and more specifically the registration page. (So that's why I'm not using IE or the likes.)
Now, the news section is made up of HTML pages. So on the news tab (it's designed on a tabbed pane) I have a menu on the left and the content on the right. For the registration part of the News, I need the user to click on a checkbox if he wants to receive that item of news. Then the user pushes a button and the file is saved so that it can be sent back to the server later on.
That's what I'd like to do as it is what the origianl application does. If it's not possible, then I'll just have to change it.
Sounds difficult without actually writing a browser. I'll bet your original VB app was using IE in the background to do this too. What you could do is embed Gecko into your app. I hear its not too difficult - but then I've never done it myself.