Questions tagged [jscrollbar]

JScrollBar is a Java Swing component to indicate the current position and the visible area size (by length of knob) if horizontal or vertical scrolling is involved so only part of the view is visible.

JScrollBar is a Java Swing component to indicate the current position and the visible area size (by the thumb length) if horizontal or vertical scrolling is involved so only part of the view is visible.

266 questions
-1
votes
3 answers

JText Area expands as text is entered

Can anyone tell me why a scroll bar will not display in this piece of code ? Instead the text area just keeps expanding as i enter more and more text. JFrame displayframe = new JFrame("All Details"); displayframe.setLayout(new…
Jessicam93
  • 31
  • 6
-1
votes
1 answer

Difference between JScrollBar and JScrollPane

What are the differences between JScrollBar and JScrollPane?
Sachin Kumar
  • 781
  • 1
  • 9
  • 28
-1
votes
2 answers

JPane inside JScrolledPane. No vertical scrollbar when needed

ive got a JPane within a JScrolledPane. When i add content to JPane , JScrollPane doesnt show scrollbar. I tried repaint() and revalidate() but it didnt help. static void ladowaniePaneli() { int b; for(b=0;b
-1
votes
1 answer

How to set the scrollbar in JFrame?

I have to create the desktop application for larger screen size. But now I want to put the same application in smaller screen system. How to set the scrollbar in JFrame?
-2
votes
2 answers

How to set vertical scrollbar in jdialog?

i have a jdialog with a jpanel inside it.I have jlabels(pictures) on the jpanel.How can i get a vertical scrollbar in jdialog without using textarea?
hemanth kumar
  • 3,068
  • 10
  • 41
  • 64
-2
votes
2 answers

Show scrollbars only when mouse is over

I want to show scrollbars in a JScrollPane only when the mouse is over it. I tried adding a MouseAdapter to the JScrollbar as MouseListener with the methods shown below, but it didn't work very well. The scrollbars blinked when the mouse moved above…
user8011193
-2
votes
2 answers

Using JPanels without JFrame

I was wondering if is possible to use JPanels without JFrames because I am making a program that is asking to write a failure report. I am using JOptionpane for new window but every time I try to add a scroll bar to the textArea, it just disappears…
Monveu
  • 1
  • 4
-2
votes
1 answer

How to add the scrollbar inside the jpanel in java..?

JPanel mEvidenceFilePanel = new JPanel(); mEvidenceFilePanel.setLayout(null); mEtitleSnoLbl = new JLabel("", JLabel.LEFT); mEtitleEtypesLbl = new JLabel("", JLabel.LEFT); mEtitleSnoLbl.setBounds(10, 1, 50, 50); mEtitleEtypesLbl.setBounds(50, 1, 100,…
Karthick
  • 183
  • 3
  • 14
-2
votes
3 answers

How to get the text box to scroll

In my code i'm trying to make a scroll bar with the a text box. I got the text box but i can't get it to scroll. I keep looking up new solutions but none of them work. If you know what is wrong can you help me import javax.swing.JFrame; import…
-3
votes
1 answer

Using a JScrollPane with a JTextArea

Possible Duplicate: Java Textarea ScrollPane I have code for a scrollbar to appear in a textarea but it doesnt really work. Any suggestions? final JTextArea textArea = new JTextArea(); textArea.setEditable(false); …
Pita
  • 498
  • 5
  • 11
  • 21
-3
votes
1 answer

How to change the length of the JScrollBar in Swing?

I want to adjust the size of my scrollbar to the size of my canvas window to be the same width as the image window. This is what I have so far : Any help will be appreciated. I tried setPreferedsize(), I tried setVisibleAmount() but none is…
wrise
  • 1
  • 1
1 2 3
17
18