Search:

Type: Posts; User: bodylojohn

Page 1 of 2 1 2

Search: Search took 0.15 seconds.

  1. Replies
    14
    Views
    475

    Re: Calculator app

    Thanks again for all of your help. I read into refractoring a little bit and then reviewed my code but I just can't see an opportunity to clean up my code.
    I added all of the javadoc into my code.
    ...
  2. Replies
    14
    Views
    475

    Re: Calculator app

    I took me a while but I finally got a working concept of the calculator. Although I am kinda proud that I got it in working condition I am sure there are things i've overseen.
    There probably is a...
  3. Replies
    14
    Views
    475

    Re: Calculator app

    @GregBrannon: I came a bit further as you can see in post #11
    But i am far from finished.
  4. Replies
    14
    Views
    475

    Re: Calculator app

    Ok....

    I played around with this and I added a new class called "Calculations":

    public class Calculations {

    public Calculations(){
    }

    public double resultCalc(double beforeOp,double...
  5. Replies
    14
    Views
    475

    Re: Calculator app

    I am just totally stuck and have no idea how to go further.
    Could anybody please provide me with an example?

    Thank you!
  6. Replies
    14
    Views
    475

    Re: Calculator app

    I got the gui to (almost) look like the image.
    But I don't think I coded optimally.
    Before I continue I would like to optimize the code below.

    Any tips on how to do this?



    import...
  7. Replies
    14
    Views
    475

    Re: Calculator app

    Could anybody please help me in creating the gui (see image below).
    I already have 3 classes; CalcApplet, CalcApp and Calculator.

    Calculator contains some testcode thats shows a button.

    import...
  8. Replies
    14
    Views
    475

    Re: Calculator app

    @andbin:
    Thanks for the very detailed explanation.
    I will look into it and post back my progress.
  9. Replies
    14
    Views
    475

    Calculator app

    Hello,

    I have finally reached the final assignment of my Java course. First I will give a detailed description of the assignment:
    - The application should be a JApplet that also can be run as an...
  10. Runnable jar doenst show data from database

    Hello,

    I am still working on my java course and now we have to create a jar file from a previous project (this is a project where a connection to the database is made and data is shown in a...
  11. Thread: JavaFX

    by bodylojohn
    Replies
    1
    Views
    308

    JavaFX

    Hello,

    I am a beginning java programmer and I want to create professionel user interfaces.
    I read and saw something about javafx and that realy appeals to me and my develloping needs.

    Do you...
  12. Replies
    4
    Views
    167

    Re: Problems creating JApplet

    GregBrannon: Could you please give me a little push in helping me to devide the code in business/data/GUI.
    Because I just don't see it.

    Thanks in advance!

    --- Update ---

    Finally...I have...
  13. Replies
    4
    Views
    167

    Re: Problems creating JApplet

    Dear GregBrannon.... Thank you very much for your very detailed and helpfull information.
    This thing is just killing me.

    I really thought that I separated all of the gui stuff in the KretaGUI...
  14. Replies
    4
    Views
    167

    Problems creating JApplet

    Hello,

    Finally I have a working Java Application containing 3 classes: Connection (Connectie), GUI (KretaGUI) and DatabaseActions (Kreta).

    Everything works like a charm but now I have to make a...
  15. Replies
    3
    Views
    122

    Re: JApplet content blocked

    problem solved.

    In the java console I set security to medium.

    Thanks everybody!!
  16. Replies
    3
    Views
    122

    JApplet content blocked

    I just created an applet that I want to call from a html file.

    The applet code looks like this (and works):

    package jav12;

    import java.awt.*;

    import javax.swing.*;
  17. Replies
    13
    Views
    195

    Re: ExecuteUpdate throws exception

    I just recieved an email from my teacher.
    Because the assignement (i have to make an applet) sais that there hase to be a html file that calls the class.

    How should I go about this?
  18. Replies
    13
    Views
    195

    Re: ExecuteUpdate throws exception

    @GregBrannon: Thanks!

    Here is my code for reviewing. I realy hope that you guys can give me some insightful tips or remarks.

    Connection Class

    //Importeer bibliotheken
    import...
  19. Replies
    13
    Views
    195

    Re: ExecuteUpdate throws exception

    Hello,

    I finally completed my assignment and everything works fine. I've got 3 classes and I would love it if somebody could look through them and give me some tips and tricks concerning my code....
  20. Replies
    13
    Views
    195

    Re: ExecuteUpdate throws exception

    I found a solution that works:

    public void nieuwGerecht(){
    try {
    Statement statement = con.connection.createStatement();

    String gget;
    gget = "SELECT max(afhaalmenus.menu_id) FROM...
  21. Replies
    13
    Views
    195

    Re: ExecuteUpdate throws exception

    My crosspost is also @ ExecuteUpdate throws exception

    --- Update ---



    Indeed..
    But I just don't see it:

    sset = "INSERT INTO 'afhaalmenus'...
  22. Replies
    13
    Views
    195

    Re: ExecuteUpdate throws exception

    @PhHein:
    Do you mean this:

    com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the...
  23. Replies
    13
    Views
    195

    ExecuteUpdate throws exception

    Hello,

    I am fairly new to java and thats the reason that I am following an online class to educate myself in this matter.

    For an assignement we have to built an applet containing buttos en...
  24. Re: Understanding methods in my example code

    Ow I am sorry... I quess I read over this one....

    The question in the practice material literally says this:
    How many methods does this code contain?
    And when I divide the question in:

    How...
  25. Re: Understanding methods in my example code

    Thank you very much jps..

    I forgot the String[] args in the main decleration.
    so its 3.

    I dont need to count the arrays that are created in the methods that are called in the main . Because...
Results 1 to 25 of 33
Page 1 of 2 1 2