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....
Type: Posts; User: dougie1809
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....
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
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)....
Yes I do. Thanks for your help
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
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);...
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
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...
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...
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...
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
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...
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...
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...
Wow it was as simple as creating that object, it worked like a charm.
Thanks a lot, much appreciated
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...
OK thanks
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...
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...
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...
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.
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...
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...
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...
Ok thanks, i'l look into that