Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #2753
| From | "John B. Matthews" <nospam@nospam.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: JlayeredPane in netbeans |
| Date | 2011-04-02 10:41 -0400 |
| Organization | The Wasteland |
| Message-ID | <nospam-AF50A0.10415102042011@news.aioe.org> (permalink) |
| References | <ec706a53-b845-49dc-a809-b1246dee81ea@o21g2000prh.googlegroups.com> <in5i3l$892$1@dont-email.me> <cf1e3a22-c64d-4bba-bc41-585ca16683ff@b13g2000prf.googlegroups.com> |
In article <cf1e3a22-c64d-4bba-bc41-585ca16683ff@b13g2000prf.googlegroups.com>, mukesh tiwari <mukeshtiwari.iiitm@gmail.com> wrote: > Thank you for your reply, but this is not fulfilling the purpose > because texts are deformed in second case. I don't know if I > understand the JLayeredPane fully, but what in my mind is [this]: I > added two components [ jeditorpane and jtextarea ] in jLayeredpane in > same Default_Layer and use the function moveTofront and moveToback to > move these components in same layer. When jeditorpane will be in > front position then it will hide all the contents of jtextarea and > vice- versa. It's like dynamically changing the components position > in layer, but I don't think this is happening. LayeredPane is intended to show overlapping components simultaneously, as might be seen in JDesktopPane: <http://download.oracle.com/javase/tutorial/uiswing/components/layeredpane.html> To show "different components at different times," CardLayout might be a better choice: <http://download.oracle.com/javase/tutorial/uiswing/layout/visual.html#card> As an aside, I found it helpful to explore individual components using manual layouts before advancing to multiple, nested components in a GUI editor: <http://download.oracle.com/javase/tutorial/uiswing/layout/visual.html> <http://download.oracle.com/javase/tutorial/uiswing/components/index.html> -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews>
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar
JlayeredPane in netbeans mukesh tiwari <mukeshtiwari.iiitm@gmail.com> - 2011-04-01 12:23 -0700
Re: JlayeredPane in netbeans markspace <-@.> - 2011-04-01 15:03 -0700
Re: JlayeredPane in netbeans mukesh tiwari <mukeshtiwari.iiitm@gmail.com> - 2011-04-01 23:26 -0700
Re: JlayeredPane in netbeans "John B. Matthews" <nospam@nospam.invalid> - 2011-04-02 10:41 -0400
csiph-web