I updated it on the other thread. It now shows a much smaller program like you wanted.
Type: Posts; User: javapenguin
I updated it on the other thread. It now shows a much smaller program like you wanted.
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.*;
import...
How do you add a scroll thing to a JOptionPane?
Oh, so JDesktopPane, which I still don't know exactly what it is, is used to hold multiple JInternalPanes that might overlap each other. :cool:
I still don't know how to get the JPanel itself to scroll down, but I did, but doing something with JScrollBar, make it able, when a certain scrollbar is moved, to be able to resize the JFrame! I...
If you want a complete program, it'll have to be the long one, but only focus on ExoWindow.
That one will compile, though I already had an image that showed what ExoWindow did posted earlier.
\m/
label = new JLabel("Label");
label2 = new JLabel("Label");
panel3 = new JPanel();
bar = new JScrollBar(JScrollBar.VERTICAL, 30, 20, 0, 1000000);
panel3.add(bar, BorderLayout.WEST);...
I already have the stuff defined in the constructor like it should be.
[CODE][panel3 = new JPanel();
bar = new JScrollBar(JScrollBar.VERTICAL, 30, 20, 0, 300);
panel3.add(bar,...
When using a JComboBox, do I use an ItmeListener or an ActionListener for each thing in the JComboBox? The site has a constructor like this JComboBox(Object[] items );
That's why I'm wondering if...
Ok, I will, but what about the scroll bar? It's too small.
Here is a picture of what it is doing.
Ok, setting the layout will get one of the scroll bars to appear, but I can't get anything else to come up, and the scroll bar still isn't big enough. It is of no value unless I can use it so I can...
How do I do listeners for the JComboBox like I would for the chapter? That would allow me to make the JTextArea quite a bit wider and longer. However, I still would prefer two scrollbars so I can...
If you mean the main method, see longer code. This is just a segment of it, pertaining to the part that isn't doing what I want it to. What code am I missing? BorderLayout? Tried it, but it makes...
Here's where the problem is occurring for the JScrollBar thing.
class ExoWindow extends JFrame
{
JButton exChap1, exChap2, exChap3, exChap4, exChap5, exChap6, exChap7, exChap8, exChap9,...
Clever idea, but that won't help with it taking up so much room that the JTextArea doesn't show.
I only wanted to add the scroll panes because I wanted to enlarge the text area and still keep...
I've tried with this code to get my ScrollBars to scroll down on the JFrame itself so I can enlarge the text area without losing any buttons. However, the only way to get the scrollbars to be of any...