Search:

Type: Posts; User: javapenguin

Search: Search took 0.12 seconds.

  1. Replies
    27
    Views
    3,125

    JScrollBar

    I updated it on the other thread. It now shows a much smaller program like you wanted.
  2. Replies
    27
    Views
    3,125

    Re: Evil JScrollBars

    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...
  3. Replies
    27
    Views
    3,125

    Re: Evil JScrollBars

    How do you add a scroll thing to a JOptionPane?
  4. Replies
    27
    Views
    3,125

    Re: Evil JScrollBars

    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:
  5. Replies
    27
    Views
    3,125

    Re: Evil JScrollBars

    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...
  6. Replies
    27
    Views
    3,125

    Re: Evil JScrollBars

    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/
  7. Replies
    27
    Views
    3,125

    Re: Evil JScrollBars

    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);...
  8. Replies
    27
    Views
    3,125

    Re: Evil JScrollBars

    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,...
  9. Replies
    27
    Views
    3,125

    Re: Evil JScrollBars

    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...
  10. Replies
    27
    Views
    3,125

    Re: Evil JScrollBars

    Ok, I will, but what about the scroll bar? It's too small.
  11. Replies
    27
    Views
    3,125

    Re: Evil JScrollBars

    Here is a picture of what it is doing.
  12. Replies
    27
    Views
    3,125

    Re: Evil JScrollBars

    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...
  13. Replies
    27
    Views
    3,125

    Re: Evil JScrollBars

    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...
  14. Replies
    27
    Views
    3,125

    Re: Evil JScrollBars

    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...
  15. Replies
    27
    Views
    3,125

    Re: Evil JScrollBars

    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,...
  16. Replies
    27
    Views
    3,125

    Re: Evil JScrollBars

    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...
  17. Replies
    27
    Views
    3,125

    Evil JScrollBars

    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...
Results 1 to 17 of 17