Yes, here is the code with no errors.
package synch;
import javax.swing.*;
import java.awt.*;
Type: Posts; User: chrisivey1980
Yes, here is the code with no errors.
package synch;
import javax.swing.*;
import java.awt.*;
When I run the program the program has no errors and runs fine. As of now I believe the Copy method will error since I have,
StringBuilder stringBuilder = new StringBuilder();
...
Okay, let me see if I can break it down a little bit.
The main problem is within my copyMethod. Everything else is working peachy! In my copyMethod textField/textField1 is the source/destination...
Okay as of now I am working on my string builder in my program. If you've read my other posts I have been working away on a copy method.
textField and textField1 are the selected files from my...
Thank you so much!!
Well that took out my errors, and so on. But now my file copy method just does not work. Can someone please tell me what I am doing wrong?
package synch;
import...
Okay I did some looking up, and made it....
from = new FileInputStream(textField.toString()); //Stream from file
to = new FileOutputStream(textField1.toString()); //Stream to copy file
And I...
Hey Junky,
I am a novice to Java programming, and working my way around it. So it's probably something simple that I am just not understanding.
The error at that line is as followed
"cannot...
Okay my war right now before I end up ripping my hair out is my copy method. I see the error in Netbeans(the IDE I am using), the problem is in my copy method, and I just don't see where I am going...
Okay, I've decided to keep the FileChooser, but I want the chooser to only select directories. What would be the code for it?
I thought itd be,
...
I've added a JFileChooser to my code, but I am having a battle with getting it set how I want it too.
I'm only wanting the JFileChooser to display the "Details" section in the Chooser's options,...
How would I prevent a JPane from resizing? I've tried Pane.setPreferred/.setMin and .setMax and neither work. Or am I doing something wrong?
Also my problem with the filechooser is it is smushed...
bump please, any help?
I took the advice of what you guys said, how does this look? Any other advice? I finally got it how I want it to be. But I am also having one last problem on getting the file chooser to actually fit...
Do you mind showing an example of adding a JPanel with the FlowLayout using a few lines of code I used? It'd be a great help to send me in the right direction. Thank you very much!
My teacher did specify the possibility of doing that. For my very first program, I'd like to make it as simple as possible.
Do you think the 4'1 grid layout, then flowing what I want in each...
Hello, I am taking a class in Java programming right now, I am not looking for the answers for my code, but I am looking for a little nudge in the right direction. Here is my code, and I will ask the...