Silly Swing questions

  1. I need a colour chooser with a full true colour selection possible. The JColourChooser is rather nice, but unfortunatly its about twice the size that i’d like and it doesn’t scale :frowning: Does anyone know how to either scale the chooser, or any alternatives? At the moment i’m thinking i’ll have to write my own minature version and have the JColourChooser as a dialog when double clicked.

  2. I’d like the user to be able to drag nodes in a JTree around to change the parenting (much like in windows Explorer). Annoyingly, this page ( http://java.sun.com/docs/books/tutorial/uiswing/misc/dnd.html ) seems to suggest that a JTree cannot have drop events. Is this possible?

  3. Anyone know a good book that covers more than just the basics of Swing?

  1. I think you have to write it on your own :frowning:
  2. No, it is possible. Look there : http://search.java.sun.com/search/java/index.jsp?col=javaforums&qp=%2Bforum%3A57&qt=dnd+tree&x=0&y=0
  3. … I have one @ work…i will be able to tell tomorow :wink:

No, it definately works. Did it. Have it at work. Was pretty straightforward IIRC. (ok, dnd is never really straightforward) :slight_smile:

That’s the book I am using: