Search:

Type: Posts; User: chrisivey1980

Search: Search took 0.18 seconds.

  1. Replies
    9
    Views
    1,015

    Re: A headache!

    Yes, here is the code with no errors.





    package synch;

    import javax.swing.*;
    import java.awt.*;
  2. Replies
    9
    Views
    1,015

    Re: A headache!

    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();
    ...
  3. Replies
    9
    Views
    1,015

    Re: A headache!

    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...
  4. Replies
    9
    Views
    1,015

    A headache!

    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...
  5. Replies
    8
    Views
    1,392

    Re: Copy Method screw ups

    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...
  6. Replies
    8
    Views
    1,392

    Re: Copy Method screw ups

    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...
  7. Replies
    8
    Views
    1,392

    Re: Copy Method screw ups

    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...
  8. Replies
    8
    Views
    1,392

    Copy Method screw ups

    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...
  9. Replies
    2
    Views
    1,708

    Re: JFileChooser frustrations!

    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,

    ...
  10. Replies
    2
    Views
    1,708

    JFileChooser frustrations!

    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,...
  11. Replies
    1
    Views
    1,006

    Some much needed help, and questions.

    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...
  12. Replies
    8
    Views
    2,943

    Re: Beginner java programmer!

    bump please, any help?
  13. Replies
    8
    Views
    2,943

    Re: Beginner java programmer!

    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...
  14. Replies
    8
    Views
    2,943

    Re: Beginner java programmer!

    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!
  15. Replies
    8
    Views
    2,943

    Re: Beginner java programmer!

    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...
  16. Replies
    8
    Views
    2,943

    Beginner java programmer!

    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...
Results 1 to 16 of 16