# Search:

Type: Posts; User: chonch

Page 1 of 2 1

## Search: Search took 0.25 seconds.

by chonch
Replies
9
Views
347

### 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?

by chonch
Replies
9
Views
347

### 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"

by chonch
Replies
9
Views
347

### 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;
}

by chonch
Replies
9
Views
347

### Re: question about my applet

stuck at generating the number from 100 -150.

by chonch
Replies
9
Views
347

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
12
Views
1,964

### 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
12
Views
1,964

### 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
12
Views
1,964

### 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,917

### 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
473

### 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
404

### 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
404

### 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
404

### Re: Applet doesnt show

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

by chonch
Replies
5
Views
404

### 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...

by chonch
Replies
5
Views
761

### 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...

by chonch
Replies
5
Views
761

### Re: Applet clear

how would i go about fixing it to make it applet?

by chonch
Replies
5
Views
761

### 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;...

by chonch
Replies
1
Views
466

### 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
1,406

### 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
447

### 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
447

### 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
475

### 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
475

### 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,495

### 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,495

### 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