From: Toby D. <tj...@sf...> - 2005-04-26 18:24:17
|
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. |