OK I finally got it working. I still wounder why os x let it run..
Thanks for all the help Jos.
I'll post the final code when I'm done with class.
John Schintone
User Profile
Collapse
-
Sorry about that Jos...
That was the wrong batch of code. I did override the paintComponent( ) method...
I'll read a swing tutorial before I post again ... I've learned my lesson. Tutorials tend to piss me off some times because they take to long to get to the point.Leave a comment:
-
Can't seem to figure out why, but on OS X this runs fine. when I run it in windows (xp) the windows don't have a background, I'm just getting the outline of the input boxes and the drawing area. ie it is all transparent. Any ideas?Leave a comment:
-
hmm yeah i'm guessing that's why this doesn't run in windows.
...Code:// Triangle.java // Triangle // // Created by John Schintone on 2/6/09. // Copyright (c) 2009 __MyCompanyName__. All rights reserved. import java.awt.Graphics; import javax.swing.*; import javax.swing.JApplet; import javax.swing.JPanel; import javax.swing.BorderFactory; import java.awt.Color;
Leave a comment:
-
Thanks for the help Jos. I managed to find a tutorial I could understand, and got this working quite nicely. It still uses the regular paint() method.
Thanks again.
John SchintoneLeave a comment:
-
I have had this finished for quite some time now. If anyone need help using the dll or wants to see some source, let me know ...Leave a comment:
-
Indeed... but I can't seem to call it. Unless I place null inside ie. Draw.paint(null );
...Code:here is my revised code... import java.awt.Graphics; import javax.swing.*; public class Triangle { public static void main (String[] args) { Triangle Draw = new Triangle(); Draw.paint(); } public int inputA()Leave a comment:
-
get input and draw the shape
Im trying to use data form input boxes ( integers) and draw a triangle with the numbers received. I can get the numbers fine but I can seem to grab them form the static class.
...Code:import java.awt.*; import java.applet.*; import javax.swing.*; public class Triangle { int a; int b; int c; public static int main (String[] args) { -
naa cards32.dll is the windows dll for solitar frecell etc. I Think have actually figured out the problem, not the referencing but the code to generate cards. Once its working flawlessly I will post it....Leave a comment:
-
Cards32.dll
Hi all.
I’m trying to write a card game using cards32.dll in VB 2005. I cant seem to find any examples or instructions that aren’t in VB6. I found one site but its kind of hard to follow what the hell is going on.
I have also tried to add cards32.dll as a reference but Visual Studio 2005 won’t allow it for some reason.
If I had just an example to display a card when i pushed a button i'd be on... -
WOW, thanks very much for all the advice and positive comments, looks like i have allot to read up on. I just started up school again so I'm gonna have to work on this during the weekends when free. I actually first wrote this code in XCode on my mac when I encountered all the problems. Hopefully i can start this coming weekend. your code is commented very well i can actually follow what your doing!!
Thanks again
ill get back...Leave a comment:
-
-
Exactly my point , I've tryed the same thing, all I wind up with is a WTF expression on my face lol
by the way, my reply above wasn't meant to be satyrical...Leave a comment:
-
i dont quite understand how the player array would be unitialized it should be 54
elements of "0". No ?
The killer code works fine, the index never falls out of range of killer because it is set. I am just grabbing items out of Allcards randomly.
shuf = rand() % 6 + 0;
Killer[0 ]= Allcrds[shuf];
Allcrds[shuf]=0;
shuf = rand () % 6 + 6;
Killer[1]= Allcrds[shuf];...Leave a comment:
-
Clue game Woes : ( Random runtime hangs
hey all
So I decided to be a little ambitious over the summer and create the game of clue in c. I figured it would give my self a GOOD refresher of the language and further understand functions arrays objects etc..
Any way, I encountered a strange logic error and kinda put it to the side until now.
This code is supposed to role the die, chose the killer and deal the cards to the players depending upon the... -
phew i finaly gave up on the macro and did it with vb..
I dont think the problem can be fixed in a macro.
...Code:Private Sub Command21_Click() If Me.Dirty = True Then RunCommand acCmdUndo DoCmd.Close acForm, "customer entry" DoCmd.OpenForm ("main") Else DoCmd.Close acForm, "customer entry" DoCmd.OpenForm ("main") End If EndLeave a comment:
-
-
Macro issue...closing current form
hey all
ok i have a macro set to a button(main menu ) on a customer entry form.
the problem is when the button(main menu) is clicked while the customer entry form is in edit mode (with the little pencil in the left hand corner) I get a “field cannot be null error…” which prevents the macro from running.Code:close close openform
if i change the macro to this it works,... -
try setting a relationship from the main table company to the other tables that also contain a company feild
xpun...Leave a comment:
-
Instead of going through all of that trouble why not just set the format of those textboxes to currency...Leave a comment:
No activity results to display
Show More
Leave a comment: