comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * DOM extension of JTree - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/90a26f0e09247454 * cluster versus load balancing - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f73b032b5044c21f * Packing JRE - 4 messages, 4 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d1a5c7579f5f09e2 * midlet jar size limitation on mobile phone - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5f80a702787614be * How to put traditional Chinese text into Unicode Oracle 9i database via Internet Explorer - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1071f386bec040d * AXIS attachment problem - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3bfcc79ab5bfb9a0 * JDom -- > JTree - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e6277bd3980a4fb6 * MIDP question - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cdf3f531fecfbd65 * Mosquitos - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/23688204a3ab9eb2 * Website for J2ME-aware hardware - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/97590ce422d382f9 * converting an existing Swing application to client server - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/31d2080f8f3e59a4 * JavaMail - RFC822 - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/149d82568868d99e * database or object design first? - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ff1d14124cf18dd8 * Toolbar presence changes coordinates - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/83dafa180ce89c42 ============================================================================== TOPIC: DOM extension of JTree http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/90a26f0e09247454 ============================================================================== == 1 of 2 == Date: Wed, Dec 22 2004 7:43 pm From: "Arun" Ignore the above. I fixed it by using a super keyword in the XMLTree method. == 2 of 2 == Date: Wed, Dec 22 2004 11:18 pm From: The Abrasive Sponge Hey Arun, I thought I'd give myself the challenge, anyways here is the code (30 minutes, heavy copying of pre-existing stuff). I hope you can find this clear and helpful. I usually don't do this often for newsgroup people, but this kind of thing would be helpful for my toolkit. There are two source files here, and each item has it's place, I think you may find this clearer than what you had. Buy me a beer sometime if you like it. You will have to do some tweaking to get the attribute in there, but thar you go. //Source JDOMTreeModel package com.evolutionnext.jdom; import org.jdom.*; import javax.swing.event.TreeModelEvent; import javax.swing.event.TreeModelListener; import javax.swing.tree.TreeModel; import javax.swing.tree.TreePath; import java.util.Vector; /** * * @author Administrator */ public class JDOMTreeModel implements TreeModel{ private boolean showAncestors; private Vector treeModelListeners = new Vector(); private Element rootElement; /** Creates a new instance of JDOMTreeModel */ public JDOMTreeModel(Document document) { this.rootElement = document.getRootElement(); } /** * Used to toggle between show ancestors/show descendant and * to change the root of the tree. */ public void showAncestor(boolean b, Object newRoot) { showAncestors = b; Element oldElement = rootElement; if (newRoot != null) { rootElement = (Element)newRoot; } fireTreeStructureChanged(oldElement); } //////////////// Fire events ////////////////////////////////////////////// /** * The only event raised by this model is TreeStructureChanged with the * root as path, i.e. the whole tree has changed. */ protected void fireTreeStructureChanged(Element oldRoot) { int len = treeModelListeners.size(); TreeModelEvent e = new TreeModelEvent(this, new Object[] {oldRoot}); for (int i = 0; i < len; i++) { ((TreeModelListener)treeModelListeners.elementAt(i)). treeStructureChanged(e); } } /** * Adds a listener for the TreeModelEvent posted after the tree changes. */ public void addTreeModelListener(TreeModelListener l) { treeModelListeners.addElement(l); } /** * Returns the child of parent at index index in the parent's child array. */ public Object getChild(Object parent, int index) { Element parentElement = (Element) parent; if (showAncestors) { return parentElement.getParentElement(); } return parentElement.getChildren().get(index); } /** * Returns the number of children of parent. */ public int getChildCount(Object parent) { Element parentElement = (Element)parent; if (showAncestors) { int count = 0; if (parentElement.getParentElement() != null) { count++; } return count; } if (parentElement.getChildren() == null) return 0; return parentElement.getChildren().size(); } /** * Returns the index of child in parent. */ public int getIndexOfChild(Object parent, Object child) { Element element = (Element)parent; if (showAncestors) { int count = 0; if (element.getParentElement() != null) { count++; if (element == element.getParentElement()) return 0; return -1; } } return element.getChildren().indexOf(child); } /** * Returns the root of the tree. */ public Object getRoot() { return rootElement; } /** * Returns true if node is a leaf. */ public boolean isLeaf(Object node) { Element element = (Element)node; if (showAncestors) { return element.getParentElement() == null; } return element.getChildren() == null; } /** * Removes a listener previously added with addTreeModelListener(). */ public void removeTreeModelListener(TreeModelListener l) { treeModelListeners.removeElement(l); } /** * Messaged when the user has altered the value for the item * identified by path to newValue. Not used by this model. */ public void valueForPathChanged(TreePath path, Object newValue) { System.out.println("*** valueForPathChanged : " + path + " --> " + newValue); } } //Source: JDOM Tree package com.evolutionnext.jdom; import org.jdom.*; import javax.swing.*; /** * * @author Administrator */ public class JDOMTreeExample extends JFrame { /** Creates a new instance of JDOMTree */ public JDOMTreeExample() { super("tree"); Document document = new Document(); Element root = new Element("root"); Element child1 = new Element("child1"); Element child2 = new Element("child2"); Element grandchild1 = new Element("grandchild1"); Attribute att = new Attribute("amIcool", "Oh, yeah"); child1.setAttribute(att); child1.addContent(grandchild1); root.addContent(child1); root.addContent(child2); document.setRootElement(root); JDOMTreeModel treeModel = new JDOMTreeModel(document); JTree tree = new JTree(treeModel); getContentPane().add(new JScrollPane(tree)); setSize(500,500); } public static void main(String[] args) { JDOMTreeExample example = new JDOMTreeExample(); example.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); example.setVisible(true); } } ============================================================================== TOPIC: cluster versus load balancing http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f73b032b5044c21f ============================================================================== == 1 of 1 == Date: Wed, Dec 22 2004 7:43 pm From: "Robert kebernet Cooper" Alex, that is a pretty... well, obfuscated definition. I supposed at the fundamental level they define as: Clustering -- Making a group of application providers appear as one application provider. Load Balancing -- Shifting the computational task of an application across various providers based on some predetermine heuristic. Now, in real terms of J2EE applications, they are somewhat more specific, with some variance from server to server. When you say "Clustering" you usually means something where applications servers share an application as well as runtime state for that application across multiple machines so that if one fails another machine can resume executing the application with all state information in tact. That is in Cluster A [ X Y Z] there is some method where a user connects to Cluster A and during his use if machine X fails, Y and Z can continue the service uninterrupted. This usually means that at any point in time, at least 2 machines contain the state information for any one user. Could be all of them do, but at least 2 do. When you say "Load Balancing", you usually are talking about something either less fault tolerant than "Clustering" or stateless past a request. In Group A [X Y Z] I make a request. It is assigned to X process and X returns the result. If the application is stateful, then my session will be bound to X subsequent calls to the application will go to X as well ("Session Affinity"). If the app isn't stateful, then they will just be re-assigned by the heuristic again. "Load Balancing" in this method tends to be optimized for speed (No replication overhead, so more computational resources are available to the user) but not as fault tolerant as "Clustering" (if the server I am using dies, my session is lost). ============================================================================== TOPIC: Packing JRE http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d1a5c7579f5f09e2 ============================================================================== == 1 of 4 == Date: Thurs, Dec 23 2004 4:30 am From: Chas Douglass Andrew Thompson <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > On Wed, 22 Dec 2004 11:55:33 -0800, Steve Sobol wrote: > >> Andrew Thompson wrote: > ... >> "I imagine the .NET IDE would >> also have a D'n'D GUI editor, which would also speed development >> over the general Java approach of hand coding the GUI." >> >> I use Eclipse and Jigloo and see the same benefits. People running >> NetBeans can also use DnD. > > Using what Layouts though? AbsoluteLayout? XYLayout? > > It brings us to the basic problem that when you shift the > application from the development machine to a machine with a > different RE, fonts, screen size, PLAF, the UI breaks. > > If you use a D'n'D GUI designer (using PutItHere layouts) you > effectively lose the X-plat GUI in any case. [snip] I think your prejudices are showing through here. Eclipse and JBuilder both, from my personal experience, support "D'n'D" GUI designers using a full range of java layouts. There is, of course, no requirement for a programmer to use them -- but then you can write bad code without a "D'n'D" GUI designer, too. I'm sure there are others, like NetBeans, that do it, as well. I'd be surprised if "the general Java approach of hand coding the GUI" was the norm, anymore. However that's merely exposing MY prejudice against hand coding GUIs. Chas Douglass == 2 of 4 == Date: Thurs, Dec 23 2004 12:58 pm From: "IINET" re: Eclipse and JBuilder both, from my personal experience, support "D'n'D" GUI designers using a full range of java layouts. Not sure what personal expereinces you've had here, but DnD gui development is most definitely not a strength of eclipse - in fact, it is infamous for its poor support here. Are you sure thats what you meant to say? Netbeans is the one with the support here, not eclipse - not by a long shot! "Chas Douglass" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Andrew Thompson <[EMAIL PROTECTED]> wrote in > news:[EMAIL PROTECTED]: > >> On Wed, 22 Dec 2004 11:55:33 -0800, Steve Sobol wrote: >> >>> Andrew Thompson wrote: >> ... >>> "I imagine the .NET IDE would >>> also have a D'n'D GUI editor, which would also speed development >>> over the general Java approach of hand coding the GUI." >>> >>> I use Eclipse and Jigloo and see the same benefits. People running >>> NetBeans can also use DnD. >> >> Using what Layouts though? AbsoluteLayout? XYLayout? >> >> It brings us to the basic problem that when you shift the >> application from the development machine to a machine with a >> different RE, fonts, screen size, PLAF, the UI breaks. >> >> If you use a D'n'D GUI designer (using PutItHere layouts) you >> effectively lose the X-plat GUI in any case. > [snip] > > I think your prejudices are showing through here. > > Eclipse and JBuilder both, from my personal experience, support "D'n'D" > GUI designers using a full range of java layouts. There is, of course, > no requirement for a programmer to use them -- but then you can write bad > code without a "D'n'D" GUI designer, too. > > I'm sure there are others, like NetBeans, that do it, as well. > > I'd be surprised if "the general Java approach of hand coding the GUI" > was the norm, anymore. However that's merely exposing MY prejudice > against hand coding GUIs. > > Chas Douglass > > > == 3 of 4 == Date: Wed, Dec 22 2004 10:24 pm From: The Abrasive Sponge Robert kebernet Cooper wrote: > Bender wrote: > >>Andrew Thompson wrote: >> >>>On Wed, 22 Dec 2004 03:19:01 GMT, Bender wrote: >>> >>> >>> >>>>Can anyone tell me how to package a JRE with my JAR application? >>> >>> >>>Why? How do you intend to deploy your application? >>>Off CD(1)? Off the net(2)? >>> >>>1) you would simply include the latest JRE on the CD. >>>2) you would point the user to Sun. >>> >>>But then there is the lesser followed route of creating a >>>not-cross platform '.exe' of your Jar file. >>><http://www.physci.org/codes/javafaq.jsp#exe> >>> >>I am distributing it over the net. I was hoping to keep the user > > from > >>downloading the JRE for a Windows version, i.e. - releasing an 'exe' >>version. > > > > > Honestly, I would recommend skipping the unified installer and use Java > WebStart. It gives you all the advantages of a windows installer plus > automatic updates. > > Plus, once a person has one JRE with WebStart installed, it will > automatically update their JRE if you shift forward with your app too. > I was wondering when someone was going to post a smart answer like this. == 4 of 4 == Date: Thurs, Dec 23 2004 6:42 am From: Andrew Thompson On Wed, 22 Dec 2004 22:24:50 -0700, The Abrasive Sponge wrote: > Robert kebernet Cooper wrote: > >> Bender wrote: >> >>>Andrew Thompson wrote: >>> >>>>On Wed, 22 Dec 2004 03:19:01 GMT, Bender wrote: ... >>>>But then there is the lesser followed route of creating a >>>>not-cross platform '.exe' of your Jar file. >>>><http://www.physci.org/codes/javafaq.jsp#exe> .. >> Honestly, I would recommend skipping the unified installer and use Java >> WebStart. ... > I was wondering when someone was going to post a smart answer like this. I've been wonderring when anyone in this thread will read the link that I quoted above. -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.LensEscapes.com/ Images that escape the mundane ============================================================================== TOPIC: midlet jar size limitation on mobile phone http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5f80a702787614be ============================================================================== == 1 of 2 == Date: Thurs, Dec 23 2004 1:06 am From: John Is there any file size limit on the j2me midlet jar size? It seems that some Nokia phones have 100k jar size limit. I have made a program which contains many graphics in it, and it is over 100k. It is not mentioned on Motorola or Samsung phones. John == 2 of 2 == Date: Thurs, Dec 23 2004 1:45 am From: Freeman John wrote: > Is there any file size limit on the j2me midlet jar size? It seems that > some Nokia phones have 100k jar size limit. I have made a program which > contains many graphics in it, and it is over 100k. It is not mentioned > on Motorola or Samsung phones. > > John There is no jar size limitation on Motorola phones. You can put a large size midlet to it, as long as the java storage is not full. However, you need to know: 1. Some phones have bug or limitation on download wap gateway. If it is over 100k, it may need to swap SAR and Range download method. If it is too slow or fail to download, you can only use cable to install the jar. 2. When download, the actual size require may larger than the jar file size. This is due to decompress of jar into class and resource files for storage. Try to keep it small for mobile phone device. Freeman www.mobilefunland.com ============================================================================== TOPIC: How to put traditional Chinese text into Unicode Oracle 9i database via Internet Explorer http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1071f386bec040d ============================================================================== == 1 of 1 == Date: Wed, Dec 22 2004 9:18 pm From: [EMAIL PROTECTED] Hello wisers, We are testing a system which is developed on top of Oracle 9iAS. The client PCs are using Internet Explorer to access the system. We are sure that the Oracle 9i database server is set to use Unicode. The Oracle 9i database server and Oracle 9iAS server are now running on English Windows 2000 server. With client PCs running on traditional Chinese Windows 2000 or traditional Chinese Windows XP, via Internet Explorer we put traditional Chinese text into the system then query the data again, it displays in inverted question marks. 1. How to resolve the problem? 2. Does the Internet Explorer View -> Code Unicode (UTF-8) setting controls content display as well as keyin? 3. Or the system controls the code interpretation of keyin? Thanks, Bruce ============================================================================== TOPIC: AXIS attachment problem http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3bfcc79ab5bfb9a0 ============================================================================== == 1 of 1 == Date: Wed, Dec 22 2004 10:26 pm From: The Abrasive Sponge [EMAIL PROTECTED] wrote: > Hi, > > Currently i tried to make attachment with AXIS . > I have following error message > > Exception in thread "main" AxisFault > > faultCode: {http://xml.apache.org/axis/}Server.NoService > > faultSubcode: > > faultString: The AXIS engine could not find a target service to invoke! > target > Service is null > > faultActor: > > faultNode: > > faultDetail: > > > > I think i could resolve my problem if i found a little attachment sample ? > Where could i found it, or a tutorial ? > > Regards > Philippe Yeah, there is one in your axis folder under your samples\attachments folder, as well as some other cool stuff. ============================================================================== TOPIC: JDom -- > JTree http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e6277bd3980a4fb6 ============================================================================== == 1 of 1 == Date: Wed, Dec 22 2004 10:32 pm From: The Abrasive Sponge Arun Hallan wrote: > Hi, > > I have so far created a program that takes an xml document and creates > a document object model from it. > > My gui includes a JTree, and when a user opens an xml document, the > JTree should show the contents of the xml file, each node being a new > tag etc. > > I haven't much idea to go about this tho. I have looked around but > become more confused as i research furthur. > > Could someone give me some tips on what i should research, and what > process i should go about. Oh, cmon, that'd be fun to do! But if you want here is some code..... http://www.jdom.org/pipermail/jdom-interest/2001-September/007499.html ============================================================================== TOPIC: MIDP question http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cdf3f531fecfbd65 ============================================================================== == 1 of 1 == Date: Thurs, Dec 23 2004 12:57 am From: Darshan Patil How do I accomodate different screen sizes in my midlet. I want to write a game. There is no image scaling routine. Do I need to roll my own or is there another way ? --Darshan ============================================================================== TOPIC: Mosquitos http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/23688204a3ab9eb2 ============================================================================== == 1 of 2 == Date: Thurs, Dec 23 2004 12:59 am From: Darshan Patil Anyone play the game mosquitos on the phone ? I really liked the game. D Does anyone know how they manage to track movement using the camera ? == 2 of 2 == Date: Thurs, Dec 23 2004 2:37 pm From: JScoobyCed Darshan Patil wrote: > Anyone play the game mosquitos on the phone ? I really liked the game. D > Does anyone know how they manage to track movement using the camera ? Hi, I don't know what is Mosquitos, but reading your post let me think it might be a game that you use with the camera. The image taken from the camera is read as an array of RGB values (or maybe an optimised version of it to process easierly). Then at a time basis, there is a differential operation performed. This is abusively sometimes called "motion detection" or "move detection". BTW, I am interested in that game if you could provide some URL :) -- JSC ============================================================================== TOPIC: Website for J2ME-aware hardware http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/97590ce422d382f9 ============================================================================== == 1 of 1 == Date: Thurs, Dec 23 2004 1:11 am From: Darshan Patil Eli wrote: > Hi all, > I've been thinking lately in buying a J2ME aware mobile phone. After a > basic search, I failed to find a website that shows some sort of > listing of all J2ME-aware hardware (mobile phones, PDAs, ...). > Do you know of such a website? > Cheers, > > Eli Most of the new Nokia phones are J2ME aware. ============================================================================== TOPIC: converting an existing Swing application to client server http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/31d2080f8f3e59a4 ============================================================================== == 1 of 1 == Date: Thurs, Dec 23 2004 5:34 am From: "Chris Uppal" [EMAIL PROTECTED] wrote: > I have a Swing application that manages local devices using SNMP, and > I'm looking for a simple way to convert it to run as client server. my > dream is to find something that will wrap the current application, > allow it to run locally and the GUI will work from a remote site. Have you looked at WebCream ? -- chris ============================================================================== TOPIC: JavaMail - RFC822 http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/149d82568868d99e ============================================================================== == 1 of 1 == Date: Thurs, Dec 23 2004 2:31 pm From: Rico +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Pattern p = Pattern.compile("@[a-zA-Z_0-9<>\\-\\;\\,\\.]*@"); Matcher m = p.matcher(user_info.getEmailAddress()); boolean b = m.find(); if (!b) // Does _not_ match 2 or more email addresses { InternetAddress[] addr = {new InternetAddress(user_info .getEmailAddress(), user_info.getName())}; msg.addRecipients(Message.RecipientType.TO, addr); } else msg.addRecipients(Message.RecipientType.TO, user_info .getEmailAddress()); +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ In the above code, I use the regular expression to detect whether I have at least 2 email addresses to send the message to. This is because I can't figure out how to attach a 'name' string to a group of email addresses in JavaMail. So in the first case when the match fails (only 1 email address) I can afford to put the name string, otherwise, I don't. Previously a hyphen in the domain name caused the regular expression to fail to detect 2 email addresses because I didn't include it as a possible literal. Now, if I use [EMAIL PROTECTED];[EMAIL PROTECTED] , wanting to be RFC822 compliant, Javamail complains that the semi-colon is illegal: not in group. Trivial fix is to replace the semi-colon with comma. Yet, not that I lack other things to do, I did go and read RFC822 to find out how to associate a name with a list of email addresses and they say: group = phrase ":" [#mailbox] ";" The part between square brackets is my list of email addresses, separated by commas. So, that'd mean I use: "marc and tommy":[EMAIL PROTECTED],[EMAIL PROTECTED]; Not surprisingly, it doesn't work. Maybe someone could please help me make sense of what I've read then. How do I associate a name string with a group of email addresses? And where does JavaMail expect the semi-colon to be for a group? Thanks. Rico. ============================================================================== TOPIC: database or object design first? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ff1d14124cf18dd8 ============================================================================== == 1 of 2 == Date: Thurs, Dec 23 2004 6:44 am From: fishfry I'm building a relatively small database-driven app. I'm accustomed to first developing the schema and e/r (entity-relationship) model, then writing the code against the db. I'm relatively new to the OO way of doing things. Am I really supposed to ignore db design and do my object design first, then use an object-relational mapping layer and never actually do any db design? Or is this more theory than practice, and real-world developers still do their db schema design first? Any and all viewpoints and suggestions for further reading are welcome. == 2 of 2 == Date: Wed, Dec 22 2004 10:53 pm From: "Robert kebernet Cooper" I usually do ERD fist, with a mind to how it is going to map to objects. Then I do my model layer objects and mapping configuration for whatever persistence system I am using. You kinda have to do this a few times to get the hang of it, really. You are balancing DB performance issues, Object mapping issues and how you want to work with the data issues all at the same time. One thing I would say is that views are your friend. A lot of time if you need a very specialized dataset and it seems particularly object intesive, don't be afraid to map a specialized object to a view and use it in that individual instance. Also, when mapping to object, normalization is MUCH more important than most DB people tend to think. FNF is usually gospel. This is all really "separate" from the design of my business layer which is usually driven by the use cases and is sketched out before work on the ERD even begins. ============================================================================== TOPIC: Toolbar presence changes coordinates http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/83dafa180ce89c42 ============================================================================== == 1 of 1 == Date: Wed, Dec 22 2004 10:48 pm From: "Ramon" I am writing a simple Swing application that has a JToolbar which can be docked against the menu bar or floating around. A problem occurs when the user is rubberbanding. When the JToolbar is not docked, the coordinates work as they should and the dotted rectangle is drawn under the mouse pointer. When the JToolbar is docked, however, the rectangular rubberband shows up several pixels above the mouse cursor. I guess I need to have some event captured when the toolbar is [un]docked and compensate the coordinates with an appropriate offset. What event(s) should I have listeners for? TIA, -Ramon ============================================================================== You received this message because you are subscribed to the Google Groups "comp.lang.java.programmer" group. To post to this group, send email to [EMAIL PROTECTED] or visit http://groups-beta.google.com/group/comp.lang.java.programmer To unsubscribe from this group, send email to [EMAIL PROTECTED] To change the way you get mail from this group, visit: http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe To report abuse, send email explaining the problem to [EMAIL PROTECTED] ============================================================================== Google Groups: http://groups-beta.google.com
