Search:

Type: Posts; User: leandro

Page 1 of 2 1 2

Search: Search took 0.30 seconds.

  1. [SOLVED] Re: Exception in thread "main" java.lang.NullPointerException

    Hi Ashley,

    You forgot to initialize your foodList var:

    Put this code when you declare the var:


    JComboBox[] foodList = new JComboBox[4];

    And thats it!
  2. Replies
    30
    Views
    13,872

    Re: HAPPY BIRTHDAY JAVA PROGRAMMING FORUMS!

    Happy Birthday
  3. Replies
    1
    Views
    2,807

    Re: Display the content method?

    Hi,

    Why don't you use a simple for like this:


    for (int i = 0; i < queArray.length; i++)
    System.out.println(queArray[i]);
  4. [SOLVED] Re: Removing whitespace from text file

    John you only need to put all the text from the file in inputString and my code will work
  5. [SOLVED] Re: Removing whitespace from text file

    Hi John,

    To remove the white space from the xml tag headers try this:


    String inputString = "askaslk asasas alsklas <s asa k>lallala <s asa k/> popp <a op/>";
    String regExp =...
  6. [SOLVED] Re: DatagramPacket CRC

    Koren I see you are working a lot with datagrams. I'm not an expert but I'll do my best.

    Did you read something at the sun site? Lesson: All About Datagrams (The Java™ Tutorials > Custom...
  7. Replies
    3
    Views
    1,858

    [SOLVED] Re: Threads and variable

    Great. Good luck
  8. Replies
    3
    Views
    1,858

    [SOLVED] Re: Threads and variable

    Hi Koren,

    Can you provide more info about your problem please? What do you want to do?
  9. Replies
    2
    Views
    42,763

    Re: udp server send thread

    Did you get an exception? Can you give us something more specific?
  10. Re: Chat client and server, save messages and delete

    Did you get an exception? Can you give us something more specific?
  11. Replies
    14
    Views
    5,089

    [SOLVED] Re: Parsing ID3 tags

    Hi,

    I recommend to use the JavaMusictag library: Java ID3 Tag Library

    Download the jar from here.

    You only need to add the jar to the class path and then you can write this very simple...
  12. Replies
    3
    Views
    1,643

    [SOLVED] Re: Problem with Java: "GridLayout" laying out the top part of my assignment?

    Can you provide some code?
  13. Replies
    4
    Views
    1,494

    [SOLVED] Re: JAVA JList Problem

    antitru5t did I solve your problem?
  14. Replies
    4
    Views
    1,494

    [SOLVED] Re: JAVA JList Problem

    Try this:

    Your class has to implement ListSelectionListener.

    Then you add the listener to the JList:


    listbox01.addListSelectionListener(this);

    And finally you write the method:
  15. Replies
    4
    Views
    1,494

    [SOLVED] Re: JAVA JList Problem

    Sorry antitru5t but I don't understand what you want to do. Can u explain me please?
  16. Replies
    15
    Views
    1,731

    Re: Error

    Hi Koren3,

    The NULL pointer exception is because you never initialized these two vars: cisloPort1 and prepos1

    Go to class Vlakno1 and replace the first two lines with this:


    private Port1...
  17. Re: Looping program gets "stuck" and doesn't reset variable

    Hey Jchang504,

    Can you provide us the TWL_Dic_3.txt file?
  18. Re: A more efficient Game of Life

    Hi,

    Can u write the rest of your code please? I mean the main method and that stuff
  19. [SOLVED] Re: Detecting whether the piece of code is executing?

    Vivek did I help you with my post?
  20. [SOLVED] Re: no response loop problem

    Try increasing the maximum allowed heap space as explained in the instructions at this page:
    How do I increase the heap space for the Java VM in MATLAB 6.0 (R12) and later versions? - 1-18I2C
    ...
  21. [SOLVED] Re: no response loop problem

    Sorry for the delay. I did some test, you can do some optimizations in your code. But working with a big matrix will implicate lot of time.

    A simple opotimization is using StringBuffer instead of...
  22. [SOLVED] Re: no response loop problem

    Hello, let me do some test but if you iterate over 200000 it will take time
  23. [SOLVED] Re: no response loop problem

    Please can you write allPossibleGuesses and array3 declarations and their initialization too ?
  24. Re: Spring+Hibernate+SpringMVC

    I recommend you to use Appfuse:

    Home - AppFuse 2 -*Confluence

    "AppFuse is an open source project and application that uses open source tools built on the Java platform to help you develop Web...
  25. Replies
    1
    Views
    1,502

    Re: problem in get result than SQL to jtable

    It seems you have a problem with res.getString("Name"). But I need more information to help you. Your ResultSet has the Name attribute?
Results 1 to 25 of 30
Page 1 of 2 1 2