tag:blogger.com,1999:blog-7571541.post2732325499952649565..comments2023-05-10T09:50:45.367-04:00Comments on The Rabbit Hole: Give your application a speech bubbletechnomagehttp://www.blogger.com/profile/08018312109057235866noreply@blogger.comBlogger21125tag:blogger.com,1999:blog-7571541.post-66496193233914342902012-04-11T10:28:15.448-04:002012-04-11T10:28:15.448-04:00The correct package is com.sun.jna.contrib.demo.Ba...The correct package is com.sun.jna.contrib.demo.BalloonTipManager for the latest code in JNA.technomagehttps://www.blogger.com/profile/08018312109057235866noreply@blogger.comtag:blogger.com,1999:blog-7571541.post-35425483319051979302012-04-06T13:47:54.391-04:002012-04-06T13:47:54.391-04:00You can obtain the latest code from the contrib fi...You can obtain the latest code from the contrib files in the JNA project (http://github.com/twall/jna).technomagehttps://www.blogger.com/profile/08018312109057235866noreply@blogger.comtag:blogger.com,1999:blog-7571541.post-54471740918131407962011-12-16T10:18:45.661-05:002011-12-16T10:18:45.661-05:00i tried your snippet but there the compiler flags ...i tried your snippet but there the compiler flags an err, "cannot find symbol variable BalloonManager"... I believe i don't have the correct packages in place, can you please help me out, post a link to the necessary package... Thank you..waqmaxhttps://www.blogger.com/profile/03546176573773519372noreply@blogger.comtag:blogger.com,1999:blog-7571541.post-61770304623553857202011-12-16T10:16:56.433-05:002011-12-16T10:16:56.433-05:00i tried your snippet but there the compiler flags ...i tried your snippet but there the compiler flags an err, "cannot find symbol variable BalloonManager"... I believe i don't have the correct packages in place, can you please help me out, post a link to the necessary package... Thank you..waqmaxhttps://www.blogger.com/profile/03546176573773519372noreply@blogger.comtag:blogger.com,1999:blog-7571541.post-57820913377405208582011-07-08T07:31:25.708-04:002011-07-08T07:31:25.708-04:00You probably want to use setOpaque(false); the com...You probably want to use setOpaque(false); the component's background is not part of paintComponent but performed in the paint method before painting children. Usually only JPanel is opaque by default, but it's possible JEditorPane is as well.<br /><br />A default white background fill would likely cause what you are seeing.technomagehttps://www.blogger.com/profile/08018312109057235866noreply@blogger.comtag:blogger.com,1999:blog-7571541.post-84623636761670477162011-06-28T14:43:58.154-04:002011-06-28T14:43:58.154-04:00Hi,
Thanks for answering.
I've got an instanc...Hi,<br /><br />Thanks for answering.<br />I've got an instance of Popup, which contains a JEditorPane. I've overload the paintComponent method of this JEditorPane, trying to draw an ellipse. <br />But I always see a white rectangle surrounding my ellipse.<br />I think I should load some pictures instead of drawing in the paintComponent method.<br /><br />I've been using my own implementation so far, but I've just found the website of the balloon tip project. I'm going to look how it works.Krisnoreply@blogger.comtag:blogger.com,1999:blog-7571541.post-22841790972024678232011-06-28T10:32:20.762-04:002011-06-28T10:32:20.762-04:00@Kris: Are you using the JNA bubbles or your own i...@Kris: Are you using the JNA bubbles or your own implementation?<br /><br />Did you overload paintComponent in the popup or in the components within it?technomagehttps://www.blogger.com/profile/08018312109057235866noreply@blogger.comtag:blogger.com,1999:blog-7571541.post-44887612609586414052011-06-26T11:30:23.951-04:002011-06-26T11:30:23.951-04:00Hi,
I've tried to make a speech bubble using ...Hi,<br /><br />I've tried to make a speech bubble using a popup like you, but my Popup doesn't display the components properly if I've overwriiten the method paintComponent.<br /><br />Could you tell me if you've already got this problem and if you know what I should do?<br /><br />Thanks very muchKrisnoreply@blogger.comtag:blogger.com,1999:blog-7571541.post-87316438290823664712007-05-29T16:14:00.000-04:002007-05-29T16:14:00.000-04:00The SF link probably doesn't support X11 anyway, i...The SF link probably doesn't support X11 anyway, it's an older post. The updated version is on the JNA site:<BR/><BR/>https://jna.dev.java.net/demo/BalloonManagerDemo.jnlptechnomagehttps://www.blogger.com/profile/08018312109057235866noreply@blogger.comtag:blogger.com,1999:blog-7571541.post-5466428224640185852007-05-29T16:11:00.000-04:002007-05-29T16:11:00.000-04:00You've got one 32-bit visual, so that's not the pr...You've got one 32-bit visual, so that's not the problem. Where are libX11.so and libXext.so in the filesystem?<BR/><BR/>Does any extra output show up in the java console if you enable it? You can download the demo source from http://jna.dev.java.net if you want to run it from a terminal or from within an IDE.technomagehttps://www.blogger.com/profile/08018312109057235866noreply@blogger.comtag:blogger.com,1999:blog-7571541.post-56214602652311527412007-05-28T19:17:00.000-04:002007-05-28T19:17:00.000-04:00Sorry for my lack of information.Problem: - Laun...Sorry for my lack of information.<BR/><BR/><B>Problem:</B><BR/> - Launching application: OK<BR/> - Showing ballons: FAIL without exceptions (ballons are not showed). <BR/><BR/><B>I'm using FC7 with:</B><BR/> - kernel: 2.6.19-1.2911.6.5.fc6 <BR/> - xorg version: 7.1.1<BR/> - Java 6 update 1<BR/> - libX11.so and libXext.so exists<BR/><BR/><B>xdpyinfo output:</B><BR/>name of display: :0.0<BR/>version number: 11.0<BR/>vendor string: The X.Org Foundation<BR/>vendor release number: 70101000<BR/>X.Org version: 7.1.1<BR/>maximum request size: 16777212 bytes<BR/>motion buffer size: 256<BR/>bitmap unit, bit order, padding: 32, LSBFirst, 32<BR/>image byte order: LSBFirst<BR/>number of supported pixmap formats: 7<BR/>supported pixmap formats:<BR/> depth 1, bits_per_pixel 1, scanline_pad 32<BR/> depth 4, bits_per_pixel 8, scanline_pad 32<BR/> depth 8, bits_per_pixel 8, scanline_pad 32<BR/> depth 15, bits_per_pixel 16, scanline_pad 32<BR/> depth 16, bits_per_pixel 16, scanline_pad 32<BR/> depth 24, bits_per_pixel 32, scanline_pad 32<BR/> depth 32, bits_per_pixel 32, scanline_pad 32<BR/>keycode range: minimum 8, maximum 255<BR/>focus: window 0x360001f, revert to Parent<BR/>number of extensions: 31<BR/> BIG-REQUESTS<BR/> Composite<BR/> DAMAGE<BR/> DOUBLE-BUFFER<BR/> DPMS<BR/> Extended-Visual-Information<BR/> GLX<BR/> MIT-SCREEN-SAVER<BR/> MIT-SHM<BR/> MIT-SUNDRY-NONSTANDARD<BR/> RANDR<BR/> RECORD<BR/> RENDER<BR/> SECURITY<BR/> SGI-GLX<BR/> SHAPE<BR/> SYNC<BR/> TOG-CUP<BR/> X-Resource<BR/> XC-APPGROUP<BR/> XC-MISC<BR/> XFIXES<BR/> XFree86-Bigfont<BR/> XFree86-DGA<BR/> XFree86-DRI<BR/> XFree86-Misc<BR/> XFree86-VidModeExtension<BR/> XInputExtension<BR/> XKEYBOARD<BR/> XTEST<BR/> XVideo<BR/>default screen number: 0<BR/>number of screens: 1<BR/><BR/>screen #0:<BR/> dimensions: 1280x800 pixels (332x212 millimeters)<BR/> resolution: 98x96 dots per inch<BR/> depths (7): 24, 1, 4, 8, 15, 16, 32<BR/> root window id: 0x5d<BR/> depth of root window: 24 planes<BR/> number of colormaps: minimum 1, maximum 1<BR/> default colormap: 0x20<BR/> default number of colormap cells: 256<BR/> preallocated pixels: black 0, white 16777215<BR/> options: backing-store NO, save-unders NO<BR/> largest cursor: 64x64<BR/> current input event mask: 0xfa2033<BR/> KeyPressMask KeyReleaseMask EnterWindowMask <BR/> LeaveWindowMask ButtonMotionMask StructureNotifyMask <BR/> SubstructureNotifyMask SubstructureRedirectMask FocusChangeMask <BR/> PropertyChangeMask ColormapChangeMask <BR/> number of visuals: 17<BR/> default visual id: 0x23<BR/> visual:<BR/> visual id: 0x23<BR/> class: TrueColor<BR/> depth: 24 planes<BR/> available colormap entries: 256 per subfield<BR/> red, green, blue masks: 0xff0000, 0xff00, 0xff<BR/> significant bits in color specification: 8 bits<BR/> visual:<BR/> visual id: 0x24<BR/> class: TrueColor<BR/> depth: 24 planes<BR/> available colormap entries: 256 per subfield<BR/> red, green, blue masks: 0xff0000, 0xff00, 0xff<BR/> significant bits in color specification: 8 bits<BR/> visual:<BR/> visual id: 0x25<BR/> class: TrueColor<BR/> depth: 24 planes<BR/> available colormap entries: 256 per subfield<BR/> red, green, blue masks: 0xff0000, 0xff00, 0xff<BR/> significant bits in color specification: 8 bits<BR/> visual:<BR/> visual id: 0x26<BR/> class: TrueColor<BR/> depth: 24 planes<BR/> available colormap entries: 256 per subfield<BR/> red, green, blue masks: 0xff0000, 0xff00, 0xff<BR/> significant bits in color specification: 8 bits<BR/> visual:<BR/> visual id: 0x27<BR/> class: TrueColor<BR/> depth: 24 planes<BR/> available colormap entries: 256 per subfield<BR/> red, green, blue masks: 0xff0000, 0xff00, 0xff<BR/> significant bits in color specification: 8 bits<BR/> visual:<BR/> visual id: 0x28<BR/> class: TrueColor<BR/> depth: 24 planes<BR/> available colormap entries: 256 per subfield<BR/> red, green, blue masks: 0xff0000, 0xff00, 0xff<BR/> significant bits in color specification: 8 bits<BR/> visual:<BR/> visual id: 0x29<BR/> class: TrueColor<BR/> depth: 24 planes<BR/> available colormap entries: 256 per subfield<BR/> red, green, blue masks: 0xff0000, 0xff00, 0xff<BR/> significant bits in color specification: 8 bits<BR/> visual:<BR/> visual id: 0x2a<BR/> class: TrueColor<BR/> depth: 24 planes<BR/> available colormap entries: 256 per subfield<BR/> red, green, blue masks: 0xff0000, 0xff00, 0xff<BR/> significant bits in color specification: 8 bits<BR/> visual:<BR/> visual id: 0x2b<BR/> class: DirectColor<BR/> depth: 24 planes<BR/> available colormap entries: 256 per subfield<BR/> red, green, blue masks: 0xff0000, 0xff00, 0xff<BR/> significant bits in color specification: 8 bits<BR/> visual:<BR/> visual id: 0x2c<BR/> class: DirectColor<BR/> depth: 24 planes<BR/> available colormap entries: 256 per subfield<BR/> red, green, blue masks: 0xff0000, 0xff00, 0xff<BR/> significant bits in color specification: 8 bits<BR/> visual:<BR/> visual id: 0x2d<BR/> class: DirectColor<BR/> depth: 24 planes<BR/> available colormap entries: 256 per subfield<BR/> red, green, blue masks: 0xff0000, 0xff00, 0xff<BR/> significant bits in color specification: 8 bits<BR/> visual:<BR/> visual id: 0x2e<BR/> class: DirectColor<BR/> depth: 24 planes<BR/> available colormap entries: 256 per subfield<BR/> red, green, blue masks: 0xff0000, 0xff00, 0xff<BR/> significant bits in color specification: 8 bits<BR/> visual:<BR/> visual id: 0x2f<BR/> class: DirectColor<BR/> depth: 24 planes<BR/> available colormap entries: 256 per subfield<BR/> red, green, blue masks: 0xff0000, 0xff00, 0xff<BR/> significant bits in color specification: 8 bits<BR/> visual:<BR/> visual id: 0x30<BR/> class: DirectColor<BR/> depth: 24 planes<BR/> available colormap entries: 256 per subfield<BR/> red, green, blue masks: 0xff0000, 0xff00, 0xff<BR/> significant bits in color specification: 8 bits<BR/> visual:<BR/> visual id: 0x31<BR/> class: DirectColor<BR/> depth: 24 planes<BR/> available colormap entries: 256 per subfield<BR/> red, green, blue masks: 0xff0000, 0xff00, 0xff<BR/> significant bits in color specification: 8 bits<BR/> visual:<BR/> visual id: 0x32<BR/> class: DirectColor<BR/> depth: 24 planes<BR/> available colormap entries: 256 per subfield<BR/> red, green, blue masks: 0xff0000, 0xff00, 0xff<BR/> significant bits in color specification: 8 bits<BR/> visual:<BR/> visual id: 0x5b<BR/> class: TrueColor<BR/> depth: 32 planes<BR/> available colormap entries: 256 per subfield<BR/> red, green, blue masks: 0xff0000, 0xff00, 0xff<BR/> significant bits in color specification: 8 bits<BR/><BR/>regardsAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-7571541.post-83336683707547926862007-05-27T16:41:00.000-04:002007-05-27T16:41:00.000-04:00What exactly "doesn't work"? Does the app fail to...What exactly "doesn't work"? Does the app fail to launch, or fail to show bubbles, or show bubbles incorrectly?<BR/><BR/>What linux distro are you using? What is the output of the "xdpyinfo" command? Where are libX11.so and libXext.so on your system?technomagehttps://www.blogger.com/profile/08018312109057235866noreply@blogger.comtag:blogger.com,1999:blog-7571541.post-7392088014693896252007-05-27T11:10:00.000-04:002007-05-27T11:10:00.000-04:00Is not working on linux, why ?Is not working on linux, why ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7571541.post-81514153394134720972007-05-22T13:39:00.000-04:002007-05-22T13:39:00.000-04:00BTW, there's a newer link hosted on the JNA site, ...BTW, there's a newer link hosted on the JNA site, see the subsequent post.technomagehttps://www.blogger.com/profile/08018312109057235866noreply@blogger.comtag:blogger.com,1999:blog-7571541.post-370678324551406522007-05-22T13:38:00.000-04:002007-05-22T13:38:00.000-04:00Fixed the signing.Fixed the signing.technomagehttps://www.blogger.com/profile/08018312109057235866noreply@blogger.comtag:blogger.com,1999:blog-7571541.post-16271747178481041242007-05-22T13:36:00.000-04:002007-05-22T13:36:00.000-04:00Sigh... unable to launch.Java Web Start - Launch F...Sigh... unable to launch.<BR/><BR/>Java Web Start - Launch File error<BR/>Unable to launch Balloon Manager Demo.<BR/><BR/>An error occurred while launching/running the application.<BR/><BR/>Title: Balloon manager Demo<BR/>Vendor: Technomage<BR/>Category: Launch File Error<BR/><BR/>JAR resources in JNLP file are not signed by same certificate.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7571541.post-80776680480826281252007-05-22T12:38:00.000-04:002007-05-22T12:38:00.000-04:00I have a nice error: JAR resources in JNLP file ar...I have a nice error: JAR resources in JNLP file are not signed by same certificateGBUKhttps://www.blogger.com/profile/01013718361928088207noreply@blogger.comtag:blogger.com,1999:blog-7571541.post-27908103392177570392007-04-02T15:51:00.000-04:002007-04-02T15:51:00.000-04:00This will work on jdk1.4+. darwin-i386.jar was mi...This will work on jdk1.4+. darwin-i386.jar was missing but it's there now.technomagehttps://www.blogger.com/profile/08018312109057235866noreply@blogger.comtag:blogger.com,1999:blog-7571541.post-54441415970147896392007-04-02T14:55:00.000-04:002007-04-02T14:55:00.000-04:00i get an error trying to launch it:An error occurr...i get an error trying to launch it:<BR/><BR/>An error occurred while launching/running the application.<BR/><BR/>Title: Balloon Manager Demo<BR/>Vendor: Technomage<BR/>Category: Download Error<BR/><BR/>Unable to load resource: http://abbot.sf.net/demo/darwin-i386.jar<BR/><BR/><BR/>is this jdk 1.6 only. i am on a macAnthony Perritanohttps://www.blogger.com/profile/02532625495101353235noreply@blogger.comtag:blogger.com,1999:blog-7571541.post-73826835020852777592007-03-29T08:18:00.000-04:002007-03-29T08:18:00.000-04:00Thanks, it's fixed now. I dyslexically typed "But...Thanks, it's fixed now. I dyslexically typed "Button" where I meant "Balloon".technomagehttps://www.blogger.com/profile/08018312109057235866noreply@blogger.comtag:blogger.com,1999:blog-7571541.post-45079211553783878332007-03-29T03:43:00.000-04:002007-03-29T03:43:00.000-04:00tha webstart is broken:File does not exist: /home/...tha webstart is broken:<BR/><BR/>File does not exist: /home/groups/a/ab/abbot/htdocs/demo/ButtonManagerDemo.jnlpSomatikhttps://www.blogger.com/profile/03951101428959005189noreply@blogger.com