User Profile

Collapse

Profile Sidebar

Collapse
xpun
xpun
Last Activity: Feb 27 '09, 08:17 PM
Joined: Apr 3 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • xpun
    replied to get input and draw the shape
    in Java
    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
    See more | Go to post

    Leave a comment:


  • xpun
    replied to get input and draw the shape
    in Java
    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.
    See more | Go to post

    Leave a comment:


  • xpun
    replied to get input and draw the shape
    in Java
    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?
    See more | Go to post

    Leave a comment:


  • xpun
    replied to get input and draw the shape
    in Java
    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;
    ...
    See more | Go to post

    Leave a comment:


  • xpun
    replied to get input and draw the shape
    in Java
    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 Schintone
    See more | Go to post

    Leave a comment:


  • xpun
    replied to Cards32.dll
    in .NET
    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 ...
    See more | Go to post

    Leave a comment:


  • xpun
    replied to get input and draw the shape
    in Java
    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()
    ...
    See more | Go to post

    Leave a comment:


  • xpun
    started a topic get input and draw the shape
    in Java

    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)
            {
    ...
    See more | Go to post

  • xpun
    replied to Cards32.dll
    in .NET
    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....
    See more | Go to post

    Leave a comment:


  • xpun
    started a topic Cards32.dll
    in .NET

    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...
    See more | Go to post

  • xpun
    replied to Clue game Woes : ( Random runtime hangs
    in C
    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...
    See more | Go to post

    Leave a comment:


  • xpun
    replied to Clue game Woes : ( Random runtime hangs
    in C
    bump ... help , it defies all reason
    See more | Go to post

    Leave a comment:


  • xpun
    replied to Clue game Woes : ( Random runtime hangs
    in C
    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...
    See more | Go to post

    Leave a comment:


  • xpun
    replied to Clue game Woes : ( Random runtime hangs
    in C
    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];...
    See more | Go to post

    Leave a comment:


  • xpun
    started a topic Clue game Woes : ( Random runtime hangs
    in C

    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...
    See more | Go to post

  • xpun
    replied to Macro issue...closing current form
    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
    End
    ...
    See more | Go to post

    Leave a comment:


  • xpun
    replied to Macro issue...closing current form
    nope undo error pops up and the macro is stopped......
    See more | Go to post

    Leave a comment:


  • xpun
    started a topic Macro issue...closing current form

    Macro issue...closing current form

    hey all

    ok i have a macro set to a button(main menu ) on a customer entry form.

    Code:
    close
    close
    openform
    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.

    if i change the macro to this it works,...
    See more | Go to post

  • xpun
    replied to One text box, multiple fields...
    try setting a relationship from the main table company to the other tables that also contain a company feild

    xpun...
    See more | Go to post

    Leave a comment:


  • xpun
    replied to Sum text boxes / from subform question
    Instead of going through all of that trouble why not just set the format of those textboxes to currency...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...