|
From: Daryl V. H. <dva...@sf...> - 2005-04-26 19:20:46
|
Thanks for your feed back, I was thinking the same thing about having a button bar someplace instead of having the buttons on top of the image, where they could obscure important information. To fix this and have a button bar inside the window would require a potentially major rewrite of the window-painting code (and potentially eliminate it altogether). Instead of drawing the image itself, it could pass the work off onto a JLabel object that shows an ImageIcon wrapped around the BufferedImage. Another option would be to have a JDialog hovering around the window someplace, where it could be moved easily. Just some thoughts. Let me know what you think when you have time. Daryl. Toby Donaldson wrote: >Daryl, > >This is a response to your message on the developers forum (copied at the >end of the message). > >What's there looks good, and gives ideas for modifications: > > - the buttons are actually on top of the picture, which I think is rarely >going to be what people want; better would be to have the buttons in a >separate panel > > - some buttons are user-created, and some are built-in; I suggest that we >make a serious easy-to-user built-in buttons such as "save", "load", and >"close" that work in such a way that the user does not need to anything >about JButtons or listeners; the user-created buttons require that the user >need to know a little more, but it might be possible to further simplify the >addition of user-created buttons > >Toby > >By: Daryl Van Humbeck - raceimaztion >RE: Adding buttons extension >2005-04-25 09:51 >**** UPDATE **** >I've added support for a "save image" button. >To enable it, just call enableSaveButton(). > >It automatically adds a button to the bottom of the window and adds an >action listener to listen for mouse clicks. >When clicked, it pops up a save dialog box that lets you choose where to >save it and what to call it. > >It always adds it to the far left of the window, even if there are already >buttons there. > > > > >------------------------------------------------------- >SF.Net email is sponsored by: Tell us your software development plans! >Take this survey and enter to win a one-year sub to SourceForge.net >Plus IDC's 2005 look-ahead and a copy of this survey >Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix >_______________________________________________ >csjava-developer mailing list >csj...@li... >https://lists.sourceforge.net/lists/listinfo/csjava-developer > > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.10.3 - Release Date: 25/04/05 |