Search:

Type: Posts; User: fride360

Search: Search took 0.55 seconds.

  1. Replies
    4
    Views
    1,857

    How to remove the last comma

    Right now my output is like this:
    2, 4, 6, 8, 10,

    What I want:
    2, 4, 6, 8, 10

    PrintWriter fout = new PrintWriter(new BufferedWriter(new FileWriter("numbers.dat")));
    ...
  2. Adding entered text from one GUI to another

    Right now when the program runs there is a button that says "Add Customer". When it is pressed it brings up another GUI where someone can enter info. After they click out of that box and click...
  3. Re: Has to be a simple error, but I can't find it.

    This is the error. A while back I got an error that turned out that I had some classes spelled different. One of them was "VolCac" as stated below. I have since then changed it, so I'm not sure...
  4. Has to be a simple error, but I can't find it.

    It is a pretty lengthy code. I am getting an error at this line:


    public class VolCalc extends JFrame implements ActionListener{

    Here is all of the code:


    import java.awt.*;
    import...
  5. Replies
    1
    Views
    941

    Renaming labels & text boxes

    Iíve started to create a GUI that consists of a few tabs. Right now I am focusing on two of them. The Pool tab and the Hot Tub tab. When I first started I got everything to work fine on the pool tab....
  6. Replies
    2
    Views
    670

    [SOLVED] Re: Bracket placement issues

    I figured it out.
  7. Replies
    2
    Views
    670

    [SOLVED] Bracket placement issues

    My code isn't running and I know I have brackets in the wrong places.

    import java.util.Calendar;

    public class Date {

    private int month;
    private int day;
    private int year;
  8. Replies
    1
    Views
    573

    Code doesn't execute properly

    What the code is supposed to do is if the user does not enter an odd number it asks to do it again. Then if an odd number is entered it creates a diamond pattern.
    Right now If I enter an even...
  9. Replies
    1
    Views
    997

    JLabel placement issues

    I would like for my code below to display the word middle right below the word top. I can't figure out how to do this.



    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    ...
  10. Replies
    9
    Views
    429

    Re: Alignment issues

    Thanks, that's what I was trying to do. How do you name the tab?
  11. Replies
    9
    Views
    429

    Re: Alignment issues

    import javax.swing.*;
    import javax.swing.JLabel;
    import javax.swing.plaf.metal.MetalIconFactory;

    public class Alignment {
    protected JTabbedPane tabPane;
    public Alignment() {
    tabPane =...
  12. Replies
    9
    Views
    429

    Re: Alignment issues

    I did check it out. I'm not sure how to do it.
  13. Replies
    9
    Views
    429

    Re: Alignment issues

    I'm sorry, but I don't know how to post in SSCCE. I'm not getting any errors when I run it, it just doesn't align properly. Would it be better to post all of the code?

    Thanks
  14. Replies
    9
    Views
    429

    Alignment issues

    I'm tryint to get my label to align top left and it aligns top center.



    JLabel label1 = new JLabel("Text here", JLabel.LEFT);
    label1.setVerticalAlignment(JLabel.TOP
    ...
  15. Replies
    4
    Views
    316

    [SOLVED] Re: Wrong box pops up?

    Got it to work, thanks for your help.
  16. Replies
    4
    Views
    316

    [SOLVED] Re: Wrong box pops up?

    It looks like the line


    String answer = JOptionPane.showInputDialog(null, "Please enter a five digit number","Enter a number");

    should not be there, but I'm not sure. Can you tell me which...
  17. Replies
    4
    Views
    316

    [SOLVED] Wrong box pops up?

    I have a code here that initially I would enter a five digit number. If the number is not equal to five an error box pops up. When I plug in a number that is not equal to five it brings up the...
  18. Thread: Hello!!

    by fride360
    Replies
    1
    Views
    247

    Hello!!

    Hi everyone, I'm new to programming. I find it very interesting with all you can do with it. I hope to learn a lot from my posts and what everybody brings to it.
Results 1 to 18 of 18