Sandbox Issues

2001-04-30 Thread KC_Eilander
Hi, Quick question: Suppose I have an applet whose job is to chitchat back and forth with the server, and ultimately come up with a zipped file full of information... So far, so good, but now I want to save it to the remote user's disk. BIG PROBLEM! That's way outside my sandbox! Is

Mr. Bean

2001-05-15 Thread KC_Eilander
-- Forwarded by KC Eilander/MTN/US/3Com on 05/15/2001 11:12 AM --- [EMAIL PROTECTED] on 05/11/2001 02:37:38 PM Sent by: [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(KC Eilander/MTN/US/3Com) Subject: Mr. Bean Hi, This is

Re: how to trap the Ctrl+Alt+a key events

2001-06-12 Thread KC_Eilander
Can't you just add your own KeyListener class to whatever JComponent you want, then in its KeyPressed() method, use the KeyEvent.getKeyCode() and KeyEvent.getModifiers() to verify wether its the right key combination or not? ravi prakash [EMAIL PROTECTED] on 06/12/2001 11:03:25 AM Sent

Customized Editor

2001-06-20 Thread KC_Eilander
Good Day, Ok, what I need is basically a JEditorPane derivitive that can syntax highlight a given file type. I just started peering at the thing, and there are TextComponents, EditorKits, and about three kinds Documents all floating around like some kind of soup. The online help,

Re: Rounded JSlider.

2001-10-31 Thread KC_Eilander
Here's how I would do it. Its by no means the only way, so if anybody has something to add/subtract from this, feel free. Anyway, I wouldn't mess with the JSlider. Instead, the way I would do it is something like this: public class SteeringWheel extends JPanel { AffineTransform

Dos Only Swing

2001-11-09 Thread KC_Eilander
** Short version: Does anybody know of a DOS only JVM that supports Swing (through BGI or VESA instead of the OS's graphics routines). ** Long version: You're probably wondering why I want something weird like that. Just as a side hobby I have been looking at home automation stuff for quite

Re: Dynamically setting the size of the button

2001-11-15 Thread KC_Eilander
I could be wrong, but I think it does that automatically. It seems like you're probably using a GridLayout or GridBagLayout that is streaching the button back out to fit its grid. If this is the case try: public class FooButton extends JButton { public Dimension getMaximumSize() {

RE: How to restric japanese characters

2001-09-27 Thread KC_Eilander
I don't know if I'd mess with key listeners. The component already has all the key listeners and cutpaste listeners a guy would need. Why not filter the foreign cahracters on the actual text the user is inserting, using something like this class EnglishOnlyDocument extends Document {

HTML on JLabel

2001-05-02 Thread KC_Eilander
Hi, I was just trying to add multiple images to a jlabel... My thought was to just set the label as html text, and add an img tag for the extra image. The only problem is that each variation below: label=new JLabel (htmlimg src=\cup.gif\Hello, image); label=new JLabel (htmlimg

MyPointlessBean

2001-05-10 Thread KC_Eilander
Hi, This is one of those incredibly stupid questions, but here goes... I jar up a java bean with the following command line: jar cfm mypointlessbean.jar MyPointlessBean.mf mypointlessbean Everything gets packaged OK, but beanbox hates it. I don't blame it. When I extract the

Mr. Bean

2001-05-11 Thread KC_Eilander
Hi, This is one of those incredibly stupid questions, but here goes... I jar up a java bean with the following command line: jar cfm mypointlessbean.jar MyPointlessBean.mf mypointlessbean Everything gets packaged OK, but beanbox hates it. I don't blame it. When I

Video from CD

2001-06-26 Thread KC_Eilander
Ok, here's the plot. I have a CDROM, whos autorun.inf loads an html file with my applet in it. Now, when a user clicks a button in the applet, it runs a movie (avi) file off the CD. Well, any chimp with a keyboard could write that program, but here's where it gets ugly. The AVI

Re: Problem with JTree.

2001-07-20 Thread KC_Eilander
If you want all the leaf nodes to be displayed with the folder icon, you can use: DefaultTreeCellRenderer renderer=yourTree.getTreeCellRenderer(); renderer.setLeafIcon(renderer.getClosedIcon()); If you want only certain leaf nodes to be displayed this way, you might have to write a custom