Pat O'Hara

Greenhorn
+ Follow
since Nov 02, 2011
Pat likes ...
Mac OS X VI Editor
Milwaukee, WI
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pat O'Hara

Hello,
My company has an Applet that is used to interact with a piece of hardware that we make. We have customers that would rather run this application from the command line. I recall that there was a pattern (I think it was called an appletcation) where a Jar file could act as either an Applet or executable Jar. I do not recall the details of making this work. I am sure that with a little time I could figure this out on my own, but I am wondering if you all can point me to an article that talks about how to do this. Alternately, is there a different name that I should be searching for this under?

Thanks
Pat O
8 years ago
Since I did not get an answer to this question:
https://coderanch.com/t/559543/Applets/java/do-control-Java-Login-prompt

I am now wondering if I can by pass the browser altogether. I would like to use the AppletViewer to "run" the applet. I see that the AppletViewer can take a URL, but the HTTP server on our hardware is expecting basic authentication. As I understand this if I make a request to http://deviceName/index.html I will get a 401 response. If I am in a browser, it will then open a dialog for me to type my username and password into. I am open to either the appletviewer opening a similar dialog, or to putting the user name and password into a file (policy file?) so that the user will simply connect to the HTTP server, download the applet and have it run.

Is this possible? Are there "java options" that I can pass to do this? There does not seem to be anything about this in the AppletViewer documentation.

Pat O
8 years ago
Hello,
I am in the process of writing a FileSystemView wrapper for the Apache FTPClient in commons.net. It is surprising to me that there is not already such a class. My goal is to add the file system for a hardware device to the JFileChooser dialog. The device in question allows access via FTP. It has a single virtual folder (Cannot create sub folders). I will continue to write the wrapper, but thought I would through the question out here, has this already been done?

Pat O
Hello,
I have HTTP server that is protected with Basic Authentication. There is a page that references an Applet. The user is prompted for a password by the browser, then prompted again by the Java plugin. I am wondering if I can pass credentials to the Java plugin through the applet tag? Alternately is the some method I can use through Javascript?

Thanks

Pat O
8 years ago
Thanks I had found that article. I will go through it again and see if I can get it to compile.

Pat O
8 years ago
Hello,
I am working on a project that needs to run against Java 1.2. I would like to use a TreeTable. That is a Table that has a column that contains "plus" buttons to show sub-rows of that row. It looks something like this <http://www.maxdesign.com.au/articles/tree-table/>. I am aware that there is an Outline class, but it does not appear to exist in Java 1.2.2. I am thinking that I can put a CheckBox in the first column. If I change the Icons for the checkbox then it can appear as a tree plus/minus box. I know that I can get a checkbox by putting a boolean value in that column. Unfortunately, I do not know how I could customize the checkbox. I also do not know how I would capture the click events. I feel like I am close, but the examples I have found talk about how easy it is to just use a boolean value.

Thanks in advance for whatever help you can give.
Pat O
8 years ago
Hello,
I am updating an applet that acts as a front end to one of our hardware products. We use basic HTTP authentication to gain access to the device and therefore the applet. The old user experience was that the browser would prompt the user for their username and password and the applet would get the username from the hardware. The code still works, but both the browser and Java (the plugin?) are prompting the user for a username and password. I would rather that the user be prompted only once. Can you point me to the documentation on the plugin that explains how to control this? Is it something other than the plugin that is causing Java to prompt the user? Is there something about our HTTP Server implementation that needs to be adjusted?
8 years ago