Search:

Type: Posts; User: Bebras

Search: Search took 0.09 seconds.

  1. Replies
    22
    Views
    1,621

    Re: JTable custom model listener

    Well first of all, I finally got it to work. Credits to you ofcourse.

    These "strategies" you were talking about ? Can you give me an example? Now I just set the button's text to the same text as...
  2. Replies
    22
    Views
    1,621

    Re: JTable custom model listener

    Well but my button renderer does return "",
    @Override
    public Object getCellEditorValue() {
    return "";
    }
    Your scenario sounds great and I'm pretty sure I'll want to add more buttons with...
  3. Replies
    22
    Views
    1,621

    Re: JTable custom model listener

    You are right. Should I just check if it is a valid index? But somehow that doesn't sound correct. What value does it have to return for a button? Because I just return an element from the array...
  4. Replies
    22
    Views
    1,621

    Re: JTable custom model listener

    Okay. So I used the setModelIndex method and got an array index out of bounds exception.

    JTable has a construtor JTable(int numRows, int numColumns), so I set tthe number of colums to the size of...
  5. Replies
    22
    Views
    1,621

    Re: JTable custom model listener

    Yes. The text "Button clicked" is printed
  6. Replies
    22
    Views
    1,621

    Re: JTable custom model listener

    No. The button is still not selectable.
    JTable list = new JTable();
    list.setModel(new BanListTableModel(data,columnames));
    TableButton button = new TableButton("Atbaninti");...
  7. Replies
    22
    Views
    1,621

    Re: JTable custom model listener

    2610
    Just to be sure.
  8. Replies
    22
    Views
    1,621

    Re: JTable custom model listener

    Yes that is right. Why do you say "conceptually"? How it isn't correct?
  9. Replies
    22
    Views
    1,621

    Re: JTable custom model listener

    new problem!
    I also wanted to add a button as a cell, so I created a "TableButton" class which extends JButton and implements TableCellEditor AND TableCellRenderer.
    All is great except that I want...
  10. Replies
    22
    Views
    1,621

    JTable custom model listener

    Hello, I created a default JTable and added a listener to it. Everything worked great. But the default model wasn't good enought, so I created my own. And once I change data nothing happens.

    My...
  11. Replies
    2
    Views
    1,115

    [SOLVED] Custom listener: how to separate interactors

    Hello, my application shows a profile. The profile has various interactors. I'm trying to follow the MVC model, so I neeed to tell my controller that something was selected. But the profile has many...
  12. Replies
    4
    Views
    1,361

    [SOLVED] Re: Image not loading

    Now I feel stupid... Ofcourse thankyou.
    But it seems the URL is different for different skins...
    So I'll have to load images from my pc. But this is an applet... Could you give me some info on how...
  13. Replies
    4
    Views
    1,361

    [SOLVED] Re: Image not loading

    No errors. And you were wrong, I didn't figure it out.


    import java.awt.Graphics2D;
    import java.awt.image.BufferedImage;
    import java.io.IOException;
    import java.net.URL;

    import...
  14. Replies
    4
    Views
    1,361

    [SOLVED] Image not loading

    Hello, I'm trying to load an image and display it as JLabels ImageIcon.
    This is from a method which loads it(the url is just fine)


    try {
    URL url = new...
  15. Re: Multiple listeners? || one program or one for everyone?

    Storing skins in an array. I didn't want that because I thought that will take a lot of memory to do so. But now that I think about it... I'll do it.

    The "lazy" loading way got me to this...
  16. Multiple listeners? || one program or one for everyone?

    Hello, I have more than one question.


    1.I will need to open a "skin selection"(it will be some jlabels with imageicon set as images). I will add MouseListeners to them. My "controller" class is...
  17. Replies
    7
    Views
    1,746

    [SOLVED] Re: Whirlpool hash - weird output

    I'm not quite sure what did you want to say ,GregBranno, but I had no hope.

    Anyway. I re-checked and it seems I needede the newest version of whirlpool. By using the "jacksum" library I used the...
  18. Replies
    7
    Views
    1,746

    [SOLVED] Re: Whirlpool hash - weird output

    Blah, according to your link it hashes it with "Whirlpool-T", and it seems that I need the "Whirlpool-0". As I already tried using it and it seems that this hash generates a different output than I...
  19. Replies
    7
    Views
    1,746

    [SOLVED] Re: Whirlpool hash - weird output

    Wow, I don't even know how to thankyou.
    I used the library you suggested and the normal output:


    The problem is solved.
  20. Replies
    7
    Views
    1,746

    [SOLVED] Whirlpool hash - weird output

    Hello, the thing is I found myself in the need for a whirlpool hash(don't ask why).

    The only place I could find it was the one from GNU.

    To get to the point, this is the code:

    Whirlpool wp =...
Results 1 to 20 of 20