Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #3636

Re: Working with swing-ba

From "Joe Weinberg" <joe.weinberg@THRWHITE.remove-dii-this>
Subject Re: Working with swing-ba
Message-ID <1213563014.152999@nntp.acecape.com> (permalink)
Newsgroups comp.lang.java.gui
References <ecfc1628-9e10-4f8d-80fd-7247cff3b421@x35g2000hsb.googlegroups.com>
Date 2011-04-27 15:46 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
Evans wrote:

> Hi,
> 
> I would like to help, but can't seem to properly understand what
> you're after.
> However, do a search for CardLayout in Java to see if it comes close
> to what you want.
> 
> 
> Good luck!
> 
> Evans
> http://www.onyxtic.com

 Well, actually, I was thinking of a simple CardLayout 

 http://java.sun.com/docs/books/tutorial/uiswing/layout/card.html


http://java.sun.com/docs/books/tutorialJWS/uiswing/layout/ex6/CardLayoutDemo.jnlp

 for another part of the GUI


 However, I think I may not have been clear enough. As I said, I am learning
the specifics of this, I don't even know how to ask for it. Let me make up
this scenario for illustration purposes:

 The swing app I had seen worked like this. Say you have a large text in L1
you must translate to L2. You have a JTabbedPane with a left tab for the
entire L1 text and a middle one with a large JLabel (or some other text
component you can't update) on the top that would take each paragraph, a
JTextArea right underneath for you to type in your translation and some
navigation buttons

 Then you click "next" for the next paragraph to be shown on the top JLabel,
but you also want for that section of text to be highlighted on the left
and repositioned on the screen so that you don't have to be scrolling to
view it

 Parsing the text and set(ting the)Text of a JLabel is easy, the part I have
no clue about is how to programmatically re-center and highlight the
current paragraph on the left

 I hope I was clearer now

 J

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Working with swing-based "Joe Weinberg" <joe.weinberg@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
  Re: Working with swing-ba "Evans" <evans@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
    Re: Working with swing-ba "Joe Weinberg" <joe.weinberg@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
      Re: Working with swing-ba "Albretch Mueller" <albretch.mueller@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000

csiph-web