Search:

Type: Posts; User: chonch

Page 1 of 2 1

1. Thread: question about my applet

by chonch
Replies
9
Views
223

Re: question about my applet

yes that what im asking. i need the number to stay the same so if i have an instance variable, called int randomNumber. and had this returned would it stay the same?
2. Thread: question about my applet

by chonch
Replies
9
Views
223

Re: question about my applet

no cuz im not sure on the return if i leave num as the return does it stay the same number until user guess the right price and my showstatus says "your right"
3. Thread: question about my applet

by chonch
Replies
9
Views
223

Re: question about my applet

ok i have this now

public int generateQuestion()
{
Random rand = new Random();
int num = rand.nextInt(51) + 101;
questionLabel.setText( "Guess oil price (100 - 150)" );

return num;
}
4. Thread: question about my applet

by chonch
Replies
9
Views
223

Re: question about my applet

stuck at generating the number from 100 -150.
5. Thread: question about my applet

by chonch
Replies
9
Views
223

question about my applet

need to write write a Java applet that will let the user guess the gas price and compare it with the price predicted by my program. Guess gas price (100 - 150): that never changes. so far i have this...
6. Thread: generate a random number from 100 to 150, inclusive in applet

by chonch
Replies
10
Views
1,278

Re: generate a random number from 100 to 150, inclusive in applet

but r.nextInt(High-Low) + Low i know isnt applet
7. Thread: generate a random number from 100 to 150, inclusive in applet

by chonch
Replies
10
Views
1,278

Re: generate a random number from 100 to 150, inclusive in applet

in goggle i found

int Low = 10;
int High = 100;
int R = r.nextInt(High-Low) + Low;
8. Thread: generate a random number from 100 to 150, inclusive in applet

by chonch
Replies
10
Views
1,278

generate a random number from 100 to 150, inclusive in applet

im not sure how to code the generated a random number from 100 to 150 inclusive for an applet
9. Thread: problem with choice for airline reservation

by chonch
Replies
1
Views
1,269

problem with choice for airline reservation

need to Write a Java Applet as a small airline reservation system. The system has only one airplane with 10 seats: 1 to 5 for first class and 6 to 10 for economy. The applet has two buttons and a...
10. Thread: help with user selected section has no available seat applet

by chonch
Replies
1
Views
299

help with user selected section has no available seat applet

not sure where i input the... If the user selected section has no available seat, your program should ask if the user is OK with the other section seats. If the user clicked OK, you print the...
11. Thread: Applet doesnt show

by chonch
Replies
5
Views
268

Re: Applet doesnt show

lol i have no idea..i been and it for a while now tho lol i called super.paint(g) and still black applet i just get the textfield
12. Thread: Applet doesnt show

by chonch
Replies
5
Views
268

Re: Applet doesnt show

k i have this with super(g). but the question doesn't show now.

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

public class Assign6...
13. Thread: Applet doesnt show

by chonch
Replies
5
Views
268

Re: Applet doesnt show

when i run it nothing shows
14. Thread: Applet doesnt show

by chonch
Replies
5
Views
268

Applet doesnt show

paint covers all my text..not sure how to fix

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

public class Assign6 extends JApplet...
15. Thread: Applet clear

by chonch
Replies
5
Views
552

Re: Applet clear

k made the applet but not the paint covers out my Text fields? do i override the paint? if so how?

import javax.swing.*;
import javax.swing.JOptionPane;
import java.awt.*;
import...
16. Thread: Applet clear

by chonch
Replies
5
Views
552

Re: Applet clear

how would i go about fixing it to make it applet?
17. Thread: Applet clear

by chonch
Replies
5
Views
552

Applet clear

when i run it its blank and im not sure why?

{import java.awt.*; // Container, FlowLayout
import java.awt.event.*; // ActionEvent, ActionListener
import java.util.Random;...
18. Thread: its crazy

by chonch
Replies
1
Views
284

its crazy

how do i get "its crazy" if gas goes past 4 in the avg?

import java.util.Scanner;

public class mk2
{
public static void main(String[] args)
{
19. Thread: 12 days of xmas??? not showing

by chonch
Replies
1
Views
815

12 days of xmas??? not showing

i wrote this but my song isnt showing up.

import javax.swing.*;

public class Assign5 {

public static void main( String args[] )
{
String result = "";
JTextArea songArea...
20. Thread: my High profitable items: 0 Bonus : \$0.00 why??

by chonch
Replies
3
Views
249

Re: my High profitable items: 0 Bonus : \$0.00 why??

i dont get what ur asking
21. Thread: my High profitable items: 0 Bonus : \$0.00 why??

by chonch
Replies
3
Views
249

my High profitable items: 0 Bonus : \$0.00 why??

i have this much but i dont get why my high profitable items is 0 and bonus is 0...should be 1 and 20

import java.util.Scanner;// program uses class Scanner

public class Assign4
{
...
22. Thread: when i run applet

by chonch
Replies
2
Views
328

Re: when i run applet

ahh i see this i have radius set in string and my variable therefore it goes to both.. thanks
23. Thread: when i run applet

by chonch
Replies
2
Views
328

when i run applet

when i run applet my radius is 0 why? heres my code

import java.awt.Graphics;
import javax.swing.JApplet;
import javax.swing.JOptionPane;

public class Assign3 extends JApplet
{
24. Thread: Need help with If the user hits Cancel on either first or last name, show the error

by chonch
Replies
4
Views
1,099

Re: Need help with If the user hits Cancel on either first or last name, show the err

i have it like this but when i hit cancel on both name and last name i still get the null message " hello welcome, null null, to cis226. whats wrong?

//CIS 226 Assignment 2
//The GUI - Assign2...
25. Thread: Need help with If the user hits Cancel on either first or last name, show the error

by chonch
Replies
4
Views
1,099

Re: Need help with If the user hits Cancel on either first or last name, show the err

thanks i saw the name = null in my book but i think i was missing the null in my script. but thanks again
Results 1 to 25 of 26
Page 1 of 2 1