Search:

Type: Posts; User: Pusillus

Search: Search took 0.26 seconds.

  1. Thread: GUI issue

    by Pusillus
    Replies
    8
    Views
    417

    Re: GUI issue

    The code should be a counter, so basically it needs to be 2 arrows, 1 up and 1 down, and a number, when you press the up arrow it's supposed to count 1 up, and vice versa, however my problem is as...
  2. Thread: GUI issue

    by Pusillus
    Replies
    8
    Views
    417

    Re: GUI issue

    The problem is still not fixed, any ideas?
  3. Thread: GUI issue

    by Pusillus
    Replies
    8
    Views
    417

    Re: GUI issue

    Tried moving it out of paint like so


    public void init(){

    add(up);
    add (down);
    up.setLocation(75,10);
    up.setBorder(BorderFactory.createEmptyBorder());
    ...
  4. Thread: GUI issue

    by Pusillus
    Replies
    8
    Views
    417

    GUI issue

    So I'm making a really simple counter for use while playing Magic the Gathering, my goal is to have 2 buttons (looking like arrows) one to count up and one to count down, however when I try and...
  5. Re: How to Add ActionListener to a JButton. Java Swing

    Thanks a lot this posted helped me a lot and saved me a lot of my hair :-D
  6. Replies
    4
    Views
    412

    [SOLVED] Re: Problem with image in swing gui

    Thanks a lot Norm that cleared up my issue :-D
  7. Replies
    4
    Views
    412

    [SOLVED] Re: Problem with image in swing gui

    My problem is that the image doesn't show, when I run the program, all I get is an empty window.

    edit:
    I moved it so I read my image outside the paintComponent, but it still doesn't show.
  8. Replies
    4
    Views
    412

    [SOLVED] Problem with image in swing gui

    I'm making a dice program that will displace a random image of a dice between 1 and 6, my problem is displaying and image in my program.

    Here's my GUI source code:


    package terninggui;
    ...
Results 1 to 8 of 8