Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.07 seconds.

  1. Replies
    4
    Views
    4,598

    Re: Resizing JPanels in JScrollPanes

    Hmm, I see what you mean about CPU usage.

    Any suggestions as to how to fix this?


    EDIT:
    In the loadInput method, if I change it to be the following:

    public void loadInput(int n)
    {
  2. Replies
    4
    Views
    4,598

    Re: Resizing JPanels in JScrollPanes

    Ok, well calling the repaint() method after revalidate() just breaks it again. That doesn't exactly surprise me, since i have already said I tried that and it didnt work.



    I already explained...
  3. Replies
    4
    Views
    4,598

    Re: Resizing JPanels in JScrollPanes

    Ok, I have solved my problem, but I'm not sure if I am right about why it happened.

    I think the paintComponent() method runs on a separate thread or something. Which would mean that despite the...
  4. Replies
    4
    Views
    4,598

    Resizing JPanels in JScrollPanes

    First off, sorry for all these posts about JPanels, JScrollPanes, and resizing. I have been making different posts because the issues in each are not exactly directly related and I didn't want to...
Results 1 to 4 of 4