I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods
Amazon Honor System Click Here to Pay Learn More
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / Web Pads / Epods One General Post
personal java

New Messagepersonal java (modified 0 times) chewy
to anyone who has gotten an applet (besides the test ones) to work, let me know how please, i cant get any of mine to run. and yes i did read the included doc's
01-30-2001 23:17:24

New MessageRE:personal java (modified 0 times) mahone
Since the PJava implementation doesn't include an appletviewer, you might need to write an applet wrapper of your own to place the applet in a window. Since java.applet.Applet extends from java.awt.Component, you can instantiate it with the proper parameters, add it to a Frame, call pack() and set the Frame visible.

I haven't tried any applets on this thing yet, but I have had problems with the layout manager implementation in PJava on the ePods... Components seem to ignore the "hints" given to them by the layout manager (at least FlowLayout) and just size themselves minimally. Something that looks fine in the PJEE emulator will be all screwed up on the ePods. Funny that the little test apps seem to work fine- I'm going to do some experimenting with GridBagLayout and BorderLayout tonight and see if they're screwed up as well... That's going to put a crimp in my GUI for the remote MP3 player I wrote. Can't do it in DCOM either, since CE 2.12 only supports in-process COM objects. GOTTA have the RMI.

Anyway, good luck with that- let me know if you need any help with it.

-M

01-31-2001 01:00:02

New MessageRE:personal java (modified 0 times) mahone
OK, I moved all the test applets that come with the JDK1.2.2 over to the ePods- they work fine if you do the wrapper class thing I mentioned above. As for the layout issues I mentioned before- they seem to be localized to TextFields- other AWT controls size correctly. (My MP3 player test had a bunch of TextFields, which is why I noticed it- none of the test apps have TextFields... D'oh!) I'm going to look into trying to fix this- it can't be that big a deal since Sun so nicely provided source for the PJava 3.1 reference implementation.

Good luck!

-M

01-31-2001 01:57:58

New MessageRE:personal java (modified 0 times) mahone
Bla... Yet another find- there IS an appletviewer included with PJava, just not in commandline form. Just do a

pjava sun.applet.AppletViewer <whatever.html>

Where whatever.html is the html that contains the applet tag with parameters. Make sure that the class files are in your current directory, or that they're on your classpath (use the -classpath parameter to pjava).

-M

01-31-2001 02:16:59

New MessageRE:personal java (modified 0 times) chewy
i've been gone a few days, just got back, thanks a lot for this info, i've gotten quite a few applets running that i couldn't before. maybe i need to start reading manuals :P nah not until the smoke comes out of the epod.
02-02-2001 01:28:09

New MessageRE:personal java (modified 0 times) judapeno
I would like to write an app to turn the epods into a digital picture frame getting the images over the net. Can personal java display images that take over the entire screen?
02-02-2001 17:12:48

New MessageRE:personal java (modified 0 times) bholio
I haven't had a chance to try this yet on my epods, but look up the <META HTTP-EQUIV="refresh" CONTENT=" 300;http://www.server.com/image.html"> or something like that tag in an HTML book. It specifies how you can make a web page reload itself or another web page every once in awhile. Just create some small HTML files to go along with the image files and it might work. I know it works in WinNT with IE5.5. No java, just the web browser. You could even use file:// URLs and not have a web server at all if you put the pictures on the epod.
02-02-2001 19:53:08

New MessageRE:personal java (modified 0 times) judapeno
That's a good hack, but there won't be a way to get rid of the browser's frame. I'm trying to emulate one of these:

http://www.ceiva.com

so I think it needs to be a stand-alone app in java, pocket scheme, c++?

02-03-2001 12:38:57

New MessageRE:personal java (modified 0 times) mahone
Actually, there are two ways to make a full screen app... (not applet- don't confuse the issue with HTML and browser plugins- you have an unrestricted VM on the ePods, so use it!)

The easiest is to create an instance of java.awt.Frame, but do not call setVisible(true). Instead, create an instance of java.awt.Window, and give the Frame instance to the constructor as the owner. The "Window" object is a borderless entity- so set it to the size of the screen, and voila! Like this:

import java.awt.*;

public class bleah {

public static void main(String[] argv) {
Frame hidden = new Frame();
Window fullscrn = new Window(hidden);
fullscrn.setSize(new Dimension(640,480);

// now add Canvases or whatever to your new fullscreen window

fullscrn.setVisible(true);
}
}

The other way is to control the underlying OS window object directly via JNI- significantly more difficult, but also gives you the ability to programmatically cover the taskbar, etc. YMMV.

Hope that helps.

-M

02-04-2001 03:46:48

New MessageRE:personal java (modified 0 times) mahone
One thing about that window trick I mentioned above- make sure you have a way to gracefully exit your app (add a KeyListener to listen for Esc or something)- a Window object alone does not show up on the taskbar, nor in the task manager. If you want to exit the app, you'll have to soft-reset the ePods...

Not that I speak from experience, or anything... ;)

-M

02-04-2001 03:55:20

New MessageRE:personal java (modified 0 times) Jah-Wren+Ryel
Mahone - how are you doing on that remote mp3 player? I was thinking about doing the same thing and in researching java I found this thread. If you've got something you are willing to share, I'd really like to take a look at it.
04-21-2001 10:21:12

New MessageRE:personal java (modified 0 times) mahone
I took a new job where I'm debugging poorly written "enterprise" Java applets (now there's a contradiction in terms)... Thus I've slowed down quite a bit on my ePods stuff- I'm usually too tired of tweaking AWT to come home and do it... :( The Java client/server MP3 player is completely functional for selecting/playing individual songs (I take the ePods down by my pool table to run my MP3 machine upstairs) but I haven't written the display logic for manipulating playlists. It's surprisingly difficult when you're working around all the "bugs" in the MIPS pjava implementation. I haven't even touched the X10 part of it- I stupidly gave away my Firecracker a couple years ago, so I need to buy another. My ePods just got upgraded to 32M (thanks Swan!) so that should help out a bit too...

Anyway, drop me a mail (nitzmahone@yahoo.com) if you *really* want to see what I have. At this point, it's not pretty, and there's a lot of hard-coded server stuff in it (hostnames, directories, etc). I figured if I ever did anything with it, I'd make all that configurable. So if you're comfortable hacking Java, I'll share, but I can't really spend any time supporting it or helping you do anything with it...

-M

04-27-2001 00:49:15

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3