All Questions
Tagged with jscrollpane jbutton
33
questions
0
votes
0
answers
20
views
adding Commonest to jPanel with gridLayout
so I am making a program to study and I want to see and edit the words that you upload in a Jscrollpane and I have a JPanel with gridlayout(0,2) in the Jscrollpane (with maximum height of 700) and ...
-1
votes
1
answer
48
views
Making a scrolling JPanel with JButtons and adding it to JScrollPane [duplicate]
I'm trying to make an array of buttons go inside of a JPanel. From there, I want the JPanel to be added to a JScrollPane so if there are more buttons that are needed, I will be able to scroll through ...
0
votes
1
answer
88
views
How to show the Button in the bottom of the JScrollPane Inside a JFrame
I am working on an application in which I am trying to show a banner in a JFrame. Inside the JFrame, I using a JScrollbar which is using JEditorPane to display content of a HTML page.
public ...
1
vote
1
answer
87
views
How to add gaps between components in Jscrollpane?
I am using JScrollpane and adding buttons on it dynamically. JScrollpane does not allow use of layouts. I want to increase space vertically and horizontally between buttons.
0
votes
1
answer
374
views
How do I enable a button after the scrollbar goes to the bottom?
So, I used a JScrollPane and then I added a JTextArea. I used textArea.setCaretPosition(0) to reset the scroll and it went at the top. All good, until I wanted to set a disabled Button on enable when ...
0
votes
1
answer
91
views
JButton over JScrollPane
I have such piece of code which shoud add button over JTextArea placed in JScrollPane. Button isn't inside scroll pane!
JScrollPane scrollPane = new JScrollPane();
scrollPane....
0
votes
1
answer
61
views
Container not displaying in JScrollPane
I have a JScrollPane that will fill up with buttons added by the user. Currently, the user creates a new button and it is added to the container that is inside the scroll pane but nothing is displayed....
0
votes
2
answers
58
views
i do not know why i get an OK button at the top of my list of Buttons
I have some JButtons in a JscrollPane, in an JOptionDialog. an OK button magically appears at the top of the Buttons. I can not figure out why, or how to kill it. The top OK button does not appear if ...
1
vote
0
answers
62
views
Adding components, like buttons, onto others, like JTextAreas, in code is not appearing when I run
Below is a picture of the basic interface I want created. Everything works fine except for the following:-
The JScrollPane isn't appearing when I try inserting lots of text
in the InformationDisplay ...
0
votes
1
answer
40
views
How to add a JPanel in a JScrollPanel and then add in a JPanel again?
Now I have searched around stackoverflow and I can't find anyone asking the same question.
I have a JPanel where I have a JScrollPane with a JPanel inside.
I'm trying to add a JButton to the JPanel ...
0
votes
2
answers
62
views
Adding JButtons to Scrollpane
JAVA:
I want to add some JButtons to an Scrollpane. The JButtons are the Chats (like in Skype). I want them in a list with 1 column only.
The amount of groups / rows should be flexible.
The size of ...
0
votes
0
answers
50
views
Swing - Custom JButton messes with other components at rollover
On a JPanel I have a few buttons and JScrollPane containing a JTable.
One of the buttons is custom made, I have overridden the paintComponent method to draw an image.
However, if I set the ...
0
votes
1
answer
2k
views
How to apply a scrollbar on a jframe that has multiple buttons
I am creating a frame what will display a list of Jbuttons that show that location of some products. The reason I want this list to be buttons is to link them to other frames if they are clicked. I ...
-1
votes
1
answer
292
views
How to keep JButtons' size remain the same when added more and more JButton to JScrollPane?
I am working on a project that the application need to be able to contain some images on a buttons. Each button should have the same size in length and width. And there should be around 10 to 20 ...
0
votes
1
answer
92
views
Java can't focus on JTextField inside JPanel inside JPanel as viewport in JScrollPane
I have to admit, maybe the question seems strange how is written, but I'll explain here:
I have a JScrollPane, in which i correctly add a JPanel, let'sa say that for now JScrollPane variable is "JSP" ...