Search:

Type: Posts; User: xdorkiee

Page 1 of 2 1 2

Search: Search took 0.25 seconds.

  1. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    uhm, but i want the thing to be printed as a label.
  2. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    can you use println's for JLabels? I thought println's are only for system.in.println
  3. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    thank you i got it. one last problem.


    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;

    public class HedgeYourBet extends JFrame
    {
  4. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;

    public class HedgeYourBet extends JFrame
    {

    public static void main (String[] arg)
    {
    HedgeYourBet window = new...
  5. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    thank you!



    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;

    public class HedgeYourBet extends JFrame
    {
  6. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    the program is little a mini quiz.

    i put the questions as strings, q1,q2,q3 so when i click submit, the label will change from q1, to q2.
    The answer choices are not going to chance.

    However,...
  7. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    helloo! i am back with another program!


    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;

    public class HedgeYourBet extends JFrame
    {
  8. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    i got it to work thank you

    what does



    --------------------Configuration: <Default>--------------------
    Note: K:\CompSci\Projects\JPizza.java uses unchecked or unsafe operations.
    Note:...
  9. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    if i use int() sizeCost = (SMALL,MEDIUM,LARGE,XLARGE);

    errors;


    --------------------Configuration: <Default>--------------------
    K:\CompSci\Projects\JPizza.java:46: error: not a...
  10. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    public final int SMALL = 7;
    public final int MEDIUM = 9;
    public final int LARGE = 11;
    public final int XLARGE = 14;


    int[] sizeCost = {SMALL,MEDIUM,LARGE,XLARGE};
  11. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    error



    --------------------Configuration: <Default>--------------------
    K:\CompSci\Projects\JPizza.java:65: error: cannot find symbol
    cost = sizeCost(sizeChoice);
    ^...
  12. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    the only place where i put sizeCost is


    int[] sizeCost = {SMALL,MEDIUM,LARGE,XLARGE};

    and


    cost = sizeCost(sizeChoice);
  13. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    it still cannot find sizeCost



    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;

    public class JPizza extends JFrame
    {
  14. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    sorry i have no idea how to define sizeCost and correlate it with my final ints.

    would it be somewhere along the lines of
    int sizeCost = {SMALL,MEDIUM,LARGE,XLARGE};




    import...
  15. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;

    public class JPizza extends JFrame
    {

    public static void main (String[] arg)
    {
    JPizza window = new JPizza();
  16. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    yes thank you i got it to work, but now i have trouble with another program.

    how do i add the cost of the pizza's size into my output?



    ***********Description - this program uses...
  17. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    public class ClickButtonListener implements ActionListener
    {
    public void actionPerformed(ActionEvent e)
    {
    Object o = e.getSource();
    if(o==aspen)
    {
    ...
  18. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    wow i can't believe i missed that ><



    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;

    public class JMyNewHome extends JFrame
    {
  19. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    ahh thanks soo much!!



    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;

    public class JMyNewHome extends JFrame
    {
  20. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    --------------------Configuration: <Default>--------------------
    K:\CompSci\Projects\JMyNewHome.java:35: error: ';' expected
    Container contentPane = getContentPane();
    ^...
  21. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    ok here it is, it looks right BUT I'M STILL GETTING ALOT OF ERRORS ><



    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;

    public class JMyNewHome extends JFrame
    {
  22. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;

    public class JMyNewHome extends JFrame
    {

    public static void main(String[] arg)
    {
    JMyNewHome window = new...
  23. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    I'm using a flow layout for now.
    The question I'm having soo much trouble on is how do i get the final price to show up?
    Like in the first, it has brittany , 2 bedrooms and no garage selected, and...
  24. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    here's how i want it to look like

    http://i49.tinypic.com/2i8c2gk.png
  25. Replies
    59
    Views
    1,364

    Re: Beginner help please.

    Sorry.

    Okay, i've worked on it and I really have no idea what i'm doing.

    I want my output to setText to my grand total.

    here's what i have, i know my curlies are really off at the...
Results 1 to 25 of 30
Page 1 of 2 1 2