Search:

Type: Posts; User: hns1984

Page 1 of 2 1 2

Search: Search took 0.17 seconds.

  1. Replies
    4
    Views
    1,296

    Re: Userinfo class help

    - Declare a static variable as private member of the class.
    - Increase the static variable's value by 1 and assign it to the ID variable.

    java exception
  2. Re: Table with CustomModel when clicked shows old entry

    The above section caused the problem. The rows object is initialized only once by the Search() function. You should re-design the CustomTableModel, for example, adding some methods to update the...
  3. Replies
    1
    Views
    1,515

    Re: Variable updates after loop

    Do you use any threads? If not, that is the problem, because the progress bar's GUI is freezing until the download tasks completes. You need to create two threads:
    - one for running the download...
  4. Replies
    5
    Views
    4,214

    Re: NetBeans Desktop Application in Java

    Could you please give an example about that?
    I have been using NetBeans to design GUI for my apps and I rarely have to change the code manually.

    java exception
  5. Replies
    3
    Views
    2,069

    Re: why i can't upload file to database

    Look at this section:



    String itemName = item.getName();
    String folder="C:/Users/dr saiful/My Documents/NetBeansProjects/master_temporal/web/data/"+itemName;
    File saveFile=new File(folder);...
  6. Re: Pleasant morning/afternoon/evening to everyone! Newbie here.

    Hi,
    Have a good day:) I am a little bit good at Java.

    java exception
  7. Replies
    5
    Views
    4,214

    Re: NetBeans Desktop Application in Java

    Wrong. NetBeans allows you to customize the generated code. If you don't like something, you can change manually.

    java exception
  8. Replies
    1
    Views
    921

    Re: file won't compile

    The above code compiled successfully.
    The error in your screenshot shows line number 69, but the above code has only 46 lines total. So I think you did not post the right code.

    java exception
  9. Replies
    2
    Views
    966

    Re: Hello JPF Memebers..

    Hello, nice to meet you!
    I am specialized in Swing apps and web apps also.

    java exception
  10. Replies
    2
    Views
    1,817

    Re: servlet init param

    You must escape the & character as a XML element: &

    java exception
  11. Replies
    2
    Views
    1,576

    Re: GridLayout and size problems...

    Use setPreferredSize() method, instead of setSize()

    java exception
  12. Replies
    3
    Views
    1,073

    Re: HELP! Confused at why I'm not getting output

    Hi, what are you confusing about? Aren't you the owner of the code?

    java exception
  13. Replies
    3
    Views
    2,884

    Re: Passing sql statements from client to server

    Yes, you're in the right way to use PreparedStatement. Sorry I don't have any examples in my hand, but this may help you: Using Prepared Statements (The Java™ Tutorials > JDBC(TM) Database Access >...
  14. Replies
    2
    Views
    1,956

    Re: Java SERVER problem

    Which version of Eclipse are you using? What's the error message that Eclipse complaints?

    java exception
  15. Replies
    1
    Views
    2,511

    Re: How do I "Save as" a project?

    - Try to use "Import Existing Projects into workspace", it should work.



    - You can copy and paste a project. That equivalents to the Save as.

    java exception
  16. Replies
    3
    Views
    2,884

    Re: Passing sql statements from client to server

    Well, I am afraid that no one ever done that before. Sending SQL statements through network is a bad practice. Consider to build SQL queries on the server, the client only send required parameters...
  17. Replies
    3
    Views
    1,752

    Re: Java animation using pictures help

    Hi, what are you trying to understand the code? Why don't try it yourself then ask questions for problems you may encounter?

    java exception
  18. Re: software can discover the errors of java codes ?

    What kind of errors do you mean?
    If you mean syntax error, so there is a java compiler that checks the code against Java syntax.
    If you mean design flaws or bad practices, have a look at Sonar...
  19. Replies
    4
    Views
    1,797

    Re: why it is essential to use (int) ?

    Wrong, float literal is a double value, implicitly.

    java exception
  20. Replies
    4
    Views
    1,797

    Re: why it is essential to use (int) ?

    Because the literal "7.0" is implicit double value, so the result of 7.0/2 will be a double number, theno you need to put a type cast (int) to convert the result into an integer which is assigned to...
  21. Replies
    8
    Views
    14,426

    Re: How to Compile JSP in Eclipse (or other IDE)?

    You need to create a Java Dynamic Web project, then Eclipse will compile your JSP pages just like other java classes. You will see compile errors and autocomplete things.

    java exception
  22. Replies
    2
    Views
    1,768

    Re: Open file from JAR

    Check the PDF's file path that your program is about to read, most likely using relative pass causes the problem.

    java exception
  23. Replies
    4
    Views
    9,323

    Re: Eliminating Duplicates in an Array

    There is another much simpler way:
    - Iterate over the list, adding each item to a Set.
    - Since Set does not allow duplicate items, so the result is a set of unique items.

    java exception
  24. Replies
    2
    Views
    1,477

    Re: while loop wont exit

    Do not use operators like == or != to compare Strings, use String's equals() method is the correct way.

    java exception
  25. Replies
    2
    Views
    2,496

    Re: Always Catch Exceptions

    Thanks for a good article!

    java exception
Results 1 to 25 of 42
Page 1 of 2 1 2