Search:

Type: Posts; User: dougie1809

Page 1 of 3 1 2 3

Search: Search took 0.10 seconds.

  1. Using BufferedImage to read and write to an image file

    Below is the following sample code that reads in RGB values using BufferedImage, and then simply writes them back out again to file. The resultant image is perfect, and looks good. No worries there....
  2. Replies
    3
    Views
    1,705

    Re: Replacing a JButton

    Yes I could add the new RadioButton at position 3 (4th row JButton) to the JPanel, and removing the initial JButton. Thanks for the reply
  3. Replies
    3
    Views
    1,705

    Replacing a JButton

    Hi,

    I'm not sure how I can go about replacing a JButton with a JRadioButton when the JButton is clicked. So say if I had Jpanel set as a gridlayout which lays out 4 rows (3 JLabels and a JButton)....
  4. Re: Convert ArrayList to multi-dimensional array

    Yes I do. Thanks for your help
  5. Re: Convert ArrayList to multi-dimensional array

    Yes. The Person objects itself will be stored in the rows of the array, and the contents of the Person objects (such as Name, Age etc) will be stored each of the columns in the array.

    Thanks
  6. Convert ArrayList to multi-dimensional array

    I am having troubles to convert an ArrayList of Object data to a multi-d array. The code below is the pseudo code:



    Person p1 = new Person("Tim", 21);
    Person p2 = new Person("Sara", 23);...
  7. Replies
    14
    Views
    2,931

    Re: Creating a Jar executable java program

    Oh right, thanks. I'l look into that. I never knew that how your code could be the problem with creating jar files.

    Thanks again
  8. Replies
    14
    Views
    2,931

    Re: Creating a Jar executable java program

    Yes it can take in a URL, FILE or URI as a String. The code below is the full value of the String:



    String song = new File("menu.mp3").toURI().toString();


    This interpretation of the String...
  9. Replies
    14
    Views
    2,931

    Re: Creating a Jar executable java program

    Yes that file is in the jar file. I'm not sure how it is reading these files, I just don't understand why the file won't execute when removed from the directory where the jar file was created. For...
  10. Replies
    14
    Views
    2,931

    Re: Creating a Jar executable java program

    Thanks for the reply again.

    Because the jar files executes in the same directory where the file was created, I copied the output of the successful result below

    Microsoft Windows [Version...
  11. Replies
    14
    Views
    2,931

    Re: Creating a Jar executable java program

    Yes, the jar file does contain all it's resources. As it works ok and executes. But when I move the jar file elsewhere from the directory where it was created, it wont execute. That's my new problem
  12. Replies
    14
    Views
    2,931

    Re: Creating a Jar executable java program

    Thanks for the reply. I actually managed to get the jar executing successfully now by adding each jar file to the class-path in the manifest.
    Although now when I copy that jar file to another...
  13. Replies
    14
    Views
    2,931

    Re: Creating a Jar executable java program

    Thanks for the reply.

    Well there are exactly 4 jar files that I'm using for javaFX contained in the one jar file I'm trying to create.
    I'm not sure how to distribute them separately, so there are...
  14. Replies
    14
    Views
    2,931

    Creating a Jar executable java program

    Hi,

    I created a simple quiz program which includes audio MP3 files and image JPG files. Most importantly I used an external package in order to play audio files (JavaFX package) to the quiz...
  15. Replies
    2
    Views
    5,465

    Re: JavaFX Coding problems

    Wow it was as simple as creating that object, it worked like a charm.

    Thanks a lot, much appreciated
  16. Replies
    2
    Views
    5,465

    JavaFX Coding problems

    Hi,

    The code snippet below is a simple program to play an audio song file. The MP3 file is located in the same folder as this code. It compiles without any errors. But when I run the code it gives...
  17. Replies
    3
    Views
    2,199

    Re: External Packages

    OK thanks
  18. Replies
    3
    Views
    2,199

    External Packages

    Hi,

    In order to provide external functionality from external packages to your Java programs, you would need to download those external packages to your computer. If I had a program implemented...
  19. Replies
    2
    Views
    1,411

    Re: Using Regex to analyse Strings

    Oh yes, they would all be correct. One or two spelling errors are OK and will result in being correct. Any more letter errors will be wrong.

    When I get the method correctly running, I will then...
  20. Replies
    2
    Views
    1,411

    Using Regex to analyse Strings

    Hi,

    I created a simple quiz program and I am trying to figure out a method to return 3 types of answer's using regex. The 3 answers would be either fully correct, correct (but spelling error) and...
  21. Replies
    7
    Views
    1,830

    Re: Socket connection problem

    Yes I could try another port, but the two terminals on the host are connecting fine. So I wouldn't need to worry about the ports, I don't think.
  22. Replies
    7
    Views
    1,830

    Re: Socket connection problem

    Thanks for the replies.

    I invoked the getByName() method using the host's IP address (192.168.1.12) on InetAddress as instructed. But again I still get the same error?

    Yes it does seem very...
  23. Replies
    7
    Views
    1,830

    Socket connection problem

    Hi,

    I have been working on an application which basically involves client to server socket communication. I was first testing the program from two terminal prompts (server and client) where they...
  24. Replies
    6
    Views
    2,955

    Re: A networking quiz game idea

    Thanks again for the reply. yes that is a positive start. I will look into that. Is it necessarily that I would need threading, because the network play would be between only two users having...
  25. Replies
    6
    Views
    1,831

    Re: Is Java 7 not available with Jgrasp?

    Ok thanks, i'l look into that
Results 1 to 25 of 57
Page 1 of 3 1 2 3