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)
{...
Type: Posts; User: Hallowed
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)
{...
Well I got it working. Found out that apparently renaming the form method to something other than post will break it.. ha.
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...
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...
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...
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...
I found it :)
.setLocationRelativeTo(null);
Makes it centered.
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,...
Do you know of a way to make these center in the screen when they are first loaded?
Thank you. Totally forgot about that for some reason. =/ I'll try it out.
Works! =]
Wow it works! =D and it runs a lot smoother!
Thanks so much for showing me that :)
Yea true. I will try the dialog boxes, and see if it doesn't freeze anymore.
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...
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...
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?
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 ->...
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...
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...
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...
Yup. Look at the link I posted above its a jar file with working so far.
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...
Wouldn't that work for what your trying to do?
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)
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.
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...