Thanks Nich. I think the problem is that it seems impossible to put even a heavyweight AWT componant on top of a canvas3d. A Panel even gets overwritten. I can't see anyway but to create multiple JWindows for my gui windows and somehow keep them on top? And I guess pass the appropriate keystrokes onto the canvas3d? Dave ----- Original Message ----- From: Niklas Mehner <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, September 24, 2000 11:46 AM Subject: Re: [JAVA3D] Best way to do GUI? > David wrote: > 1- Should I use awt/swing? I guess it makes things easier ... you can use Skin L&F to make the components look better : http://www.L2FProd.com/software/skinlf/screenshots.html > 2-Is it the consensus of this group that windowed mode will allow > hardware accelleration on all "modern" video cards? In other words > can I put a canvas3d into a frame and expect it to be accellerated? I think with linux this is no problem, because XFree86 4.0 integrates opengl. I don't know about windows. > 5-Swing allows you to set a panel to "non-opaqe" and then override the > paint method. I would like to implement some techniques where > "windows" have a black border, say 2 pixles wide, There is an article on borders here : http://www.javasoft.com/products/jfc/tsc/articles/borders/index.html > then have the rest > of the window black with 20 percent transparent, with icons and text > sitting on top of that. I once used a transparent statusLabel. I guess I guess it should be the same, making a JPanel, JButton or whatever transparent. JLabel statusBar = new JLabel( "Welcome !!!" ); statusBar.setOpaque(true); statusBar.setForeground(Color.white); statusBar.setFont(new Font("SansSerif", Font.BOLD, 10)); statusBar.setBackground(new Color(255,255,255,80)); ^^^Change this value, to change transparency. I don't know if this works with a canvas3d but I'd try something like : JWindow window = new JWindow(); window.setContentPane(your canvas 3D); window.getGlassPane().setLayoutManager(your layout manager); window.getGlassPane().add(your transparent components ...); glasspane, contentpane etc. are documented in the javadocs of javax.swing.JRootPane. Also here is a tutorial : http://java.sun.com/docs/books/tutorial/uiswing/components/rootpane.html#gla sspane There also is an article about painting : http://www.javasoft.com/products/jfc/tsc/articles/painting/index.html I hope some of the things I proposed work ;) Niklas =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
