Search:

Type: Posts; User: ufotje

Search: Search took 0.11 seconds.

  1. Replies
    17
    Views
    1,781

    [SOLVED] Re: Set Variable In Event Handler

    What did you expect? You create a new Data with the default constructor, which takes no parameters.
    So every instance variable Data has is still null.
    Of cource you need to set the value's first....
  2. Replies
    7
    Views
    1,269

    Re: Adding empty line to modelattribute

    I did try <br> but it's not html text it's a StringAttribute in the model
  3. Replies
    17
    Views
    1,781

    [SOLVED] Re: Set Variable In Event Handler

    Lol apperently not, otherwise he wouldn't have run in to that error...

    --- Update ---



    No offence, but if you have to ask something like this, I would start with following some basic java...
  4. Replies
    7
    Views
    1,269

    Re: Adding empty line to modelattribute

    I use intelij as idea, so it supports new-line and it's actually being displayed in firefox, since it's a webpage and they shouldn't have any issues with it...
    Just to be shure I tried "\r" and...
  5. Replies
    17
    Views
    1,781

    [SOLVED] Re: Set Variable In Event Handler

    Sorry my bad it should be:


    public MyMouseHandler(Data data){
    ...
    }
  6. Replies
    17
    Views
    1,781

    [SOLVED] Re: Set Variable In Event Handler

    class MyMouseHandler extends MouseAdapter {
    private Data dt;

    //Add Constructor
    class MyMouseHandler(Data data){
    dt = data;
    }

    //Add Getter
    public Data...
  7. Replies
    17
    Views
    1,781

    [SOLVED] Re: Set Variable In Event Handler

    He said classvariable so I automaticly asumed it was static, what's the point otherwise of creating a classvariable.
    If he uses your solution, I would declare a private instance variable and provide...
  8. Re: How to make an array list of objects in another object?

    you've posted this question on the coderanch too, I've seen someone giving you a full working example
  9. Re: Please Help me to solve this algorithm for Java

    If your teacher is looking for pseudocode I don't know, but I do know you can't run the code you've posted, and that's even without following your logic.
    Why do you double quote some of your method...
  10. Replies
    17
    Views
    1,781

    [SOLVED] Re: Set Variable In Event Handler

    Or don't make an instance at al and call the classvariable direct.
    YourClass.variable
  11. Replies
    7
    Views
    1,269

    Re: Adding empty line to modelattribute

    Good question! I checked and it is...
    this is on the console:
    Username already chosen!

    This e-mail is already registered.
    Did you forget your password?

    This is on the actual page:
    Username...
  12. Replies
    2
    Views
    1,359

    Re: multiplication table java 2D array

    int from and int to are indexes? Where does your Array come from? Seems like your method shouldn't only take the indexes, but also the array.
    You could do something like:


    public class...
  13. Replies
    7
    Views
    1,269

    Adding empty line to modelattribute

    Hi Guys

    I'm new to this forum, so don't shoot me if i posted in the wrong place.
    I have a springBoot app that uses a modelAttribute to return a message when an error occurs while login in....
Results 1 to 13 of 13