Search:

Type: Posts; User: serdar

Search: Search took 0.09 seconds.

  1. Replies
    24
    Views
    3,138

    Re: Can't run Game of Life programm

    use if else statements in printMatrix() method
    Example: if(yourBoolean)...;else...;

    read Control Flow Statements (The Java™ Tutorials > Learning the Java Language > Language Basics)
    The while...
  2. Replies
    24
    Views
    3,138

    Re: Can't run Game of Life programm

    you have used two Scanner objects and second object has only one character read from first object it doesn't have 3 characters
    to resolve your problem use just first object when calling...
  3. Re: how come this program only loops twice? wheres my mistake?

    your loop doesn't loop even one times you think that it loops twice because you used "do while" and you used two Input JOptionpanes.
    while(compWin > 2 || userWin > 2)
    means loop until compWin or...
  4. Thread: main error

    by serdar
    Replies
    4
    Views
    1,310

    [SOLVED] Re: main error

    I compiled your code and it is working.
    restart your IDE
    sometimes helps!
    give a backgroud color to differ your panels.
  5. Replies
    1
    Views
    3,172

    Re: MS Access database connection problem

    you have 2 errors
    * your driver is wrong

    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    Connection c= DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver...
  6. Replies
    6
    Views
    1,910

    Re: Is Key Pressed statements

    to change background image you should have

    *array with image names on ImageTest class
    *setImg() method on ImagePanel class
    * I'm using ImageHelper.class to load Images
    *counter to go to next...
  7. Replies
    5
    Views
    2,828

    Re: Word length frequency help for applet

    Dear Junky
    I think you have to read posts more carefully before abuse at smb. hurl


    text = textInput.getText();

    String array[]=text.split(" ");
    int counter=0;
    ...
  8. Replies
    12
    Views
    1,993

    Re: If statement help

    I think you have to read more tutorials about statements
    use else if statement instead of second if
  9. Replies
    4
    Views
    1,632

    Re: TextFieldWithButton

    after posting this thread I asked this question to my other friends and one of them told that it is possible by add() method
    I tried it and it works

    import java.awt.*;
    import javax.swing.*;
    ...
  10. Replies
    6
    Views
    1,910

    Re: Is Key Pressed statements

    each key has different Key Code for example space is 32
    you should add KeyListener to your component
    and the you can check which key is pressed like
    if(event.getKeyCode()==32)
  11. Replies
    4
    Views
    1,632

    TextFieldWithButton

    Hello
    I'm trying to add JButton into JTextField like in the image below is it possible or not
    and is it possible to do like that in JTable cell ...
  12. Thread: Reporting

    by serdar
    Replies
    1
    Views
    1,286

    Reporting

    I'm new to reporting in java and I tried to create report with JasperReport lib by IReport
    i created simple report on ireport but i don't know how to use it in app
    I have searched through google...
  13. Thread: Testing Java EE

    by serdar
    Replies
    1
    Views
    1,454

    [SOLVED] Testing Java EE

    hello !
    I created simple Java ee application using File >>New Project >> Java EE >>Enterprise Application in Netbeans 7.0 using Glassfish server 3.x but when i tried to run application I had this...
  14. Replies
    4
    Views
    1,792

    Re: Wanting to repeat my program...

    call next() instead of nextLine()
  15. Replies
    4
    Views
    1,948

    [SOLVED] Re: inserting utf8 data into DB

    My JVM using UTF-8 encoding
  16. Replies
    4
    Views
    1,948

    [SOLVED] inserting utf8 data into DB

    Hello Everybody
    I'm using MySQL and I created database with UTF8_general_ci format
    My problem is when I 'm inserting data from My Application and then retrieve data it looks like "?a?"
    ...
  17. How to add into Jtable more than 100000 records

    I got Exception when I tried to add 100000 records into JTable by using DefaultTableModel
    what I have to use to fix this problem
  18. Replies
    0
    Views
    1,085

    set database unicode

    I'm using MS ACCESS 2003 database in my application but I can't set encoding unicode to UTF8

    thanks
  19. Thread: Printing Job

    by serdar
    Replies
    5
    Views
    1,621

    Re: Printing Job

    I think the best way to print panel is by using J2PrinterWorks library
    I have used it and I liked it
  20. Re: Please help!!! Adding java app to a web application

    I think only applets can be added to web application

    <P>
    <APPLET codebase="yourApplicationFolder" code="yourMainClass.class" width=350 height=200></APPLET>
    </P>
    or if you want to add applet...
  21. Replies
    2
    Views
    1,378

    Re: calling a method from other object: thred

    first declare your getStick() method as public and static then you can call that method like chopStick.getStick();
  22. [SOLVED] Re: Recursive Methods ; StringIndexOutOfBoundsException

    change only 1 line


    package test;

    import java.io.*;
    public class Methods{
    public static void main(String args []) throws IOException{
    InputStreamReader instream = new...
  23. Replies
    1
    Views
    2,625

    Re: Monthly Mortage Payment Calculator

    I think you have to do like this


    edited by moderator
  24. Replies
    2
    Views
    1,773

    creating java installer

    How to add mysql and jre into my java installer so that it check if a target computer has that programs and then install if necessary
  25. Thread: hello

    by serdar
    Replies
    1
    Views
    1,036

    hello

    hello everybody
Results 1 to 25 of 25