Search:

Type: Posts; User: BinaryDigit09

Search: Search took 0.34 seconds.

  1. Replies
    50
    Views
    11

    Re: resetting label text alongside gui

    Ya, I pointed that out to you several posts ago. :)
  2. Replies
    19
    Views
    8

    [SOLVED] Re: JFrame - ImageIcon not displaying

    I don't have "splash_screen.png" on my PC, so when I ran your code I got the same blank JFrame as you. But when I created my own "splash_screen.png" inside src/images/ and loaded it with...
  3. Replies
    50
    Views
    11

    Re: resetting label text alongside gui

    footer.add(new JLabel("Correct: "));
    ...
    footer.add(new JLabel(buttonClicked.getText()));

    You're adding these JLabels to the footer, but you have no reference variable for them, so there's no...
  4. Replies
    19
    Views
    8

    [SOLVED] Re: JFrame - ImageIcon not displaying

    First verify that your 'background' label is where you expect it to be:



    background = new JLabel(backgroundImage);
    background.setPreferredSize(new Dimension(75, 75));
    background.setBorder(new...
  5. Re: Upadating Jtable while entering the data

    fireTableRowsInserted needs to know the start and end indices of the row(s) that were inserted.
  6. Replies
    4
    Views
    24

    Re: How to copy

    You should change all your hard-coded numbers to variables. x, y, width, and height. And I would make a separate function for each die number that draws it in the size/location it's told to:


    ...
  7. Re: Upadating Jtable while entering the data

    Looks like you almost have it.


    myModel.fireTableDataChanged();
    // fireTableRowsInserted(dataList.size() - 1, dataList.size() - 1);

    Should be this:


    fireTableRowsInserted(dataList.size()...
  8. Replies
    1
    Views
    18

    Re: Builder pattern

    You're right, as it stands NutritionFacts is useless because doesn't expose any of its information. I'm guessing that's because it was simplified for the book's example, and the intent is to add more...
  9. Re: assign values to nodes read from XML using java

    SAX parsers don't build in-memory trees. Are you doing that yourself yet? It seems to me you're going to need a tree of objects so you can ask relevant questions about the node, its children, and its...
Results 1 to 9 of 9