Search:

Type: Posts; User: nirro

Search: Search took 0.29 seconds.

  1. Replies
    1
    Views
    297

    mouse listener on jtextarea

    hi, i want to detect mouse events on 4 jtextareas.
    this is what i have.

    Color orange=new Color(228,158,96);
    add(Texta);
    Texta.setFont(font);
    Texta.setForeground(orange);...
  2. Re: my program works but when i export it as runnable jar file it doesn't works..

    not working
    faces[0].Questionset(ImageIO.read(getResource("src/Cristiano.jpg")),"cristiano ronaldo");

    what to do?
  3. Re: my program works but when i export it as runnable jar file it doesn't works..

    in the classpath path.
    so what should i write instade of
    faces[0].Questionset(ImageIO.read(getResource("src//Cristiano.jpg")),"cristiano ronaldo");
    ?
  4. Re: my program works but when i export it as runnable jar file it doesn't works..

    it seems to work only when i put the dictionary src in the same folder as the jar file..
    how can i use getResource()?
    i tried...
  5. my program works but when i export it as runnable jar file it doesn't works..

    it is a simple gui program with pictures.
    -when i run it from cmd it says it cant load the pictures.
    -when i run it from elipse it works.

    the code looks like this-
    try {...
  6. Replies
    6
    Views
    291

    Re: problems with jbutton/actionlistener

    Description Resource Path Location Type
    The serializable class Mainp does not declare a static final serialVersionUID field of type long Mainp.java ‪/Gui-test/src‬ line 13 Java Problem
    The import...
  7. Replies
    6
    Views
    291

    problems with jbutton/actionlistener

    hi.. i am new to gui and i have some trouble.
    i'm trying to create button that change background color to random color.
    this is what i have done:



    import java.awt.*;
    import...
Results 1 to 7 of 7