Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

David Triple

+ Follow
since Jul 05, 2011
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by David Triple

10 years ago
I am having trouble understanding how this works?

then later on in the program it adds this:

I been reading about arrays and indices but i cannot figure out what this means, and what the numbers in the indices represent:

10 years ago
public void render - is this a class or object?

public void addVertice- is this a class or object?

public TGObject(TGObject o) { - is this a class or object?

public TGObject() { - is this a class or object?
10 years ago
ok i got it to work, i jsut commented the whole part out at line 66-68 and renamed JFrame to JApplet on line 06
10 years ago
Not really, if i turn the extends JFrame into JApplet it wont run, so im lost at this part?
10 years ago
i mean line 68 where the exit on close is..
10 years ago
Running it like this gives me an : <identifier> expected error at line 77...
10 years ago
I think i have it all right, but i dont know where to place my extends from Japplet? can any one take a look and help me out?

10 years ago
'void' type not allowed here

when i did that it gave me this exception
10 years ago
So i cant get this to cahnge the font, it always stays the same.. Any ideas?
10 years ago
Well the java file is in the same folder as the html folder... is that what you mean?
10 years ago
when i try to run this applet:

i get the following error in the applet window:

Java Plug-in 1.6.0_26
Using JRE version 1.6.0_26-b03 Java HotSpot(TM) Client VM
User home directory = C:\Users\David
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>

load: class .class not found.
java.lang.ClassNotFoundException: .class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$ Source)
at Source)
Exception: java.lang.ClassNotFoundException: .class

Whats going on?
10 years ago
Ok so here is what im got now, but all my card variables are not working?
I have no idea whats going on

10 years ago
and this is is inserted in the container or where the actual deal and shuffle calculations are placed? This is my first program combining classes and its a more difficult than i thought.
10 years ago

Basically i need the Jtext field to show everything the Joptionpane is showing. So when the player clicks shuffle i need the jtext field MsgT to say "Shuffling" and then when deal is hit it needs to say "dealt". After the cards are the Jtextfield should show both player and house cards, then udpate the number of hands won by both sides. when i try to compile it it says variable player is not found. It cant get the card game to interact with my container.
10 years ago