Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #3633 > unrolled thread
| Started by | "Joe Weinberg" <joe.weinberg@THRWHITE.remove-dii-this> |
|---|---|
| First post | 2011-04-27 15:46 +0000 |
| Last post | 2011-04-27 15:46 +0000 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.lang.java.gui
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
| From | "Joe Weinberg" <joe.weinberg@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:46 +0000 |
| Subject | Working with swing-based |
| Message-ID | <1213535587.597317@nntp.acecape.com> |
To: comp.lang.java.gui,comp.l I have never had to do so before and I don't even know exactly the terms to search for, but this is basically what I am trying to achieve I have some plain text that I am able to somehow programmatically mark up; say I need to process each, sentece or text segments bound between certain tags Now, a component of the GUI could have to the left the whole text and on the right I would just click "next" on a button to just view the text segment that I need, but I would also like for the segment to be reposicion and highlighted on the left JTextArea I know there are ways to do something like that with "parallel" texts because I saw it once somewhere How can you to using java/swing? Some piece of code to work on would do wonders I found a little scary having to go through these huge "EditorKit" packages and such . . . thanx 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
[toc] | [next] | [standalone]
| From | "Evans" <evans@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:46 +0000 |
| Subject | Re: Working with swing-ba |
| Message-ID | <ecfc1628-9e10-4f8d-80fd-7247cff3b421@x35g2000hsb.googlegroups.com> |
| In reply to | #3633 |
To: comp.lang.java.gui 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 --- * 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
[toc] | [prev] | [next] | [standalone]
| From | "Joe Weinberg" <joe.weinberg@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:46 +0000 |
| Subject | Re: Working with swing-ba |
| Message-ID | <1213563014.152999@nntp.acecape.com> |
| In reply to | #3634 |
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
[toc] | [prev] | [next] | [standalone]
| From | "Albretch Mueller" <albretch.mueller@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:46 +0000 |
| Subject | Re: Working with swing-ba |
| Message-ID | <1213633747.843521@nntp.acecape.com> |
| In reply to | #3636 |
To: comp.lang.java.gui you may also want to look at the functionality provided by carets and highlighters ~ lbrtchx --- * 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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.gui
csiph-web