Re: AWT ScrollPane
From: Roedy Green (look-on_at_mindprod.com.invalid)
Date: 05/29/04
- Next message: Gerard H. Pille: "Re: JFormattedTextField not retaining input."
- Previous message: Roedy Green: "Re: JTextArea copy/paste"
- In reply to: ak: "Re: AWT ScrollPane"
- Next in thread: Roedy Green: "Re: AWT ScrollPane"
- Reply: Roedy Green: "Re: AWT ScrollPane"
- Reply: ak: "Re: AWT ScrollPane"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 29 May 2004 19:16:11 GMT
On Sat, 29 May 2004 12:18:15 +0200, "ak" <spam@imagero.com> wrote or
quoted :
>if you use TextArea, then just create TextArea with only 1 ScrollBar:
>int rows = 100;
>int columns = 400;
>
>TextArea ta = new TextArea("some text", rows, columns ,
>TextArea.SCROLLBARS_VERTICAL_ONLY);
The problem is I need to scroll a custom component I draw myself as a
bit map.
What I do is swap it with a vanilla TextArea if someone wants to cut
and paste, where the scroll bars are under control in AWT. However
that still does not get rid of the unwanted control bars on my custom
component that is stuck using ScrollPane.
I suppose since TextArea can do it, supposedly I could to, building
scrollbars into my custom component the same way TextArea did.
-- Canadian Mind Products, Roedy Green. Coaching, problem solving, economical contract programming. See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
- Next message: Gerard H. Pille: "Re: JFormattedTextField not retaining input."
- Previous message: Roedy Green: "Re: JTextArea copy/paste"
- In reply to: ak: "Re: AWT ScrollPane"
- Next in thread: Roedy Green: "Re: AWT ScrollPane"
- Reply: Roedy Green: "Re: AWT ScrollPane"
- Reply: ak: "Re: AWT ScrollPane"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|