Search:

Type: Posts; User: Hallowed

Page 1 of 4 1 2 3 4

Search: Search took 0.48 seconds.

  1. How to check if a datetime from mysql is the same Date as another?

    I am trying to use this function:

    these variables are stored in datetime format of mysql.
    var1:2012-02-01 01:39:32
    var2:2012-02-02 01:47:11


    if (date('Ymd', $var1) == date('Ymd', $var2)
    {...
  2. Re: PHP HTML Forums & Javascript for entering Database Information

    Well I got it working. Found out that apparently renaming the form method to something other than post will break it.. ha.
  3. Re: PHP HTML Forums & Javascript for entering Database Information

    I did a little bit more editing and I just tried taking out the JavaScript all together from my newsInsert.php page. So now all I have in there is


    <?

    //the below section contains password...
  4. Re: PHP HTML Forms & Javascript for entering Database Information

    So truly I have no need to do anything with the values client side. The only trouble is that, well I guess since I was following the guidelines from that website, he advised that users send the form...
  5. PHP HTML Forums & Javascript for entering Database Information

    Soo... I'm a newb and need some help. I know this is a java forum, but I've yet to find anywhere else with such great members and support. =P

    I know this is a lot of information, so thank you for...
  6. Replies
    2
    Views
    1,705

    [SOLVED] Refreshing a JTabbedPane?

    Alright, yet another question. Below I have a sample of a JTabbedPane I've been working on.
    Every time the user clicks the sword icon it counts up.
    I used this code to make it update the count...
  7. Replies
    32
    Views
    1,015

    [SOLVED] Re: Newbish Question...(s)

    I found it :)

    .setLocationRelativeTo(null);

    Makes it centered.
  8. Replies
    32
    Views
    1,015

    [SOLVED] Re: Newbish Question...(s)

    I looked and I found CENTER_ALIGNMENT
    here: JDialog (Java Platform SE 6)
    well it says this anyway:

    Fields inherited from class java.awt.Component
    BOTTOM_ALIGNMENT, CENTER_ALIGNMENT,...
  9. Replies
    32
    Views
    1,015

    [SOLVED] Re: Newbish Question...(s)

    Do you know of a way to make these center in the screen when they are first loaded?
  10. Replies
    7
    Views
    3,083

    [SOLVED] Re: How to specify FileOutputStream location?

    Thank you. Totally forgot about that for some reason. =/ I'll try it out.
    Works! =]
  11. Replies
    32
    Views
    1,015

    [SOLVED] Re: Newbish Question...(s)

    Wow it works! =D and it runs a lot smoother!
    Thanks so much for showing me that :)
  12. Replies
    32
    Views
    1,015

    [SOLVED] Re: Newbish Question...(s)

    Yea true. I will try the dialog boxes, and see if it doesn't freeze anymore.
  13. Replies
    32
    Views
    1,015

    [SOLVED] Re: Newbish Question...(s)

    Well I haven't heard of or seen JDialog before. But I tried the cod you provided in the program, and it works, except that the dialogbox wont let me work with the other jframes I already made.. It...
  14. Replies
    32
    Views
    1,015

    [SOLVED] Re: Newbish Question...(s)

    Yes, a modal dialog windows would works just fine. But they are so ugly and unattractive with so minimal customization that it kind of defeats the point of making a GUI in the first place. :( Plus...
  15. Replies
    32
    Views
    1,015

    [SOLVED] Re: Newbish Question...(s)

    Also, I'd really like to know how to make the other frames disappear once I've collected the Users response. Any ideas how to set it up like this?
  16. Replies
    32
    Views
    1,015

    [SOLVED] Re: Newbish Question...(s)

    Source

    Alrighty first off here is this for fun: http://i51.tinypic.com/nb25xv.jpg

    Anyway here is how the program flows:
    The user will first be given an option of what to do: Login.java ->...
  17. Replies
    32
    Views
    1,015

    [SOLVED] Re: Newbish Question...(s)

    NewCheckInfo is called near the beginning of CheckInfo... Oh i forgot i changed it just to test something. I told it to call the login stuff again in CheckInfo lines 29-32. Before I did that it use...
  18. Replies
    32
    Views
    1,015

    [SOLVED] Re: Newbish Question...(s)

    It heads over to CheckInfo, there it sees that it needs more info so it loads up NewCheckInfo class. But that class just freezes. I added println statements like you said and it will go until the end...
  19. Replies
    32
    Views
    1,015

    [SOLVED] Re: Newbish Question...(s)

    Sorry here is the source
    Source
    I have no idea if I'm setting this up 'properly' and I can't figure out why after you login it wont load the next window. It's just white on my computer. =/
    As far...
  20. Replies
    32
    Views
    1,015

    [SOLVED] Re: Newbish Question...(s)

    Yup. Look at the link I posted above its a jar file with working so far.
  21. Replies
    9
    Views
    2,141

    Re: JTextField ActionListener

    well with a mouse listener you can't use event.isMetaDown() or event.isAltDown()? or whatever to tell if they are clicking on the field? or even use cordinates to make sure if they click in the right...
  22. Replies
    9
    Views
    2,141

    Re: JTextField ActionListener

    Wouldn't that work for what your trying to do?
  23. Replies
    9
    Views
    2,141

    Re: JTextField ActionListener

    So I checked my book and it looks like you can do a KeyListener for the frame..



    import java.awt.event.*;

    addKeyListener( this );


    public void keyPressed(KeyEvent event)
  24. Replies
    9
    Views
    2,141

    Re: JTextField ActionListener

    I'm curious how to do this as well. I'd like it if you could just auto-update simply because new text was put into the field at all.
  25. Replies
    2
    Views
    817

    Re: Programming AI for simple game?

    Sounds like you just need to come up with some good algorithms based on math that determine how many they want to take from the pile. Obviously they don't want to take the last one if it can be...
Results 1 to 25 of 78
Page 1 of 4 1 2 3 4