All Questions
Tagged with jscrollpane null-layout-manager
35
questions
0
votes
0
answers
150
views
How to use JScrollPane with JPanel (Null layout)
I have a JButton which generates a JPanel that contains a set of JLabel components. As you can see, the amount of labels can be a bit too much for 600x600 frame to hold. I tried adding JScrollPane, ...
0
votes
0
answers
41
views
How to add a JScrollPanel to previously added label components?
I'm having a little problem when
trying to add JScrollPanel to previously added components
with their bounds set specificaly in the for loop. The problem begins when I wanna add more than 15 ...
1
vote
1
answer
603
views
JScrollPane scroll bar won't show up?
package me.an.ugm;
import java.awt.EventQueue;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import ...
0
votes
1
answer
361
views
How to add JPanel to JScrollPane?
I have added one JPanel to the JScrollPane. But the main panel is not scrolling. My problem is like this:
JPanel MainPanel = new JPanel();
MainPanel.setBounds(width/2,height/10,width/5,height/5);
...
0
votes
1
answer
81
views
Scrollbars not appering in java Swing
In my program I have added one Label, two RadioButtons, one TextField and submit button to the Panel. My radiobuttons and submit button is not displaying in current window size because i have set ...
-1
votes
1
answer
438
views
Adding a JScrollPane removes all the components inside JPanel
When I add a JScrollPane to a JPanel, all the buttons inside the JPanel go away and it becomes empty. I was following this post here as well as other similar ones.
Here is the code without the ...
-2
votes
1
answer
190
views
How To Add JScrollPane Into Jpanel With Null Layout?
Project Snapshot
i want to add jscrollpane into my panel to add some more content but it is not working with panel to can any one solve this problem please hurry.....
it is not appears in my panel ...
0
votes
1
answer
2k
views
JPanel with null layout in JScrollPane - don't see elements
I want to set every element location with .setLocation(x, y)
I need a JPanel in a JScrollPane. But when I add components to JPanel, only buttons are showing. But not JLabel.
Method below is calling ...
-2
votes
2
answers
2k
views
How to scroll this panel of radio buttons
I am new to swing. I might use a layout manager one day, but please just advise on how I can add a vertical scroll bar to my Frame. I have taken an unorthodox approach, I realize, but I'm learning. I ...
0
votes
2
answers
115
views
JTextArea scroll functionality
I currently have a Java app that is using an instance of JTextArea to present data to the user. They press a button, and data stored from a database is populated.
There is no vertical scrollbar, and ...
0
votes
1
answer
29
views
JScrollPane isn't visible
The scroll pane isn't visible here. I know that the problem is setlayout(null). What can I write instead of this?
labelsend.addMouseListener(new MouseAdapter(){
public void mouseClicked(...
0
votes
1
answer
155
views
how should i add JscrollPane to a frame containinjg panel with layout null
i am having problem adding a JScrollPane to a frame that has a panel and i want to keep layout of panel as null.
if i use any layout than JScrollPane appears but not when i use layout as null
this ...
0
votes
1
answer
903
views
textarea not visible when adding scroll java
When i add an scroll to my textarea then the textarea isnt visible in the application:
Code:
JPanel panel = new JPanel();
frame.getContentPane().add(panel, BorderLayout.CENTER);
panel....
0
votes
1
answer
77
views
Insert a JPanel with null layout into a JScroll
I have a JPanel (myPanel) with a lot of button inside (this panel is contained in another panel that contain other components). I would insert this JPanel (myPanel) into a scroll to control better the ...
-1
votes
1
answer
67
views
How to make a JPanel Scrollable
Hi guys I have been trying to make my JPanel scrollable but no luck.
The JPanel contains other JPanels which is then added to a JScrollPane but the JScrollPane is not displaying anything.
This is ...