Michelle Ruth

Greenhorn
+ Follow
since Mar 09, 2014
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Michelle Ruth

I'm writing a java program with opengl and I'm trying to get it where the user would select something like lighting on in a JMenu and then it would turn the lighting on in the house/barn... I have a method called LightOn that I put gl.glEnable(gl.GL_LIGHT0); but it just doesn't seem to turn on when I call it from the action performed... Is there something I'm missing from my code that I'm supposed to use instead since I have tried it with a boolean.. So the boolean starts off as false and when the JMenuItem is clicked the actionPerformed will turn the boolean to true and call the method LightOn. In the display method I have what the light is supposed to be

Snippet of code in display method for lighting:



9 years ago
I need to delete the topic at this https://coderanch.com/t/646435/PHP/rotate-square-maths-equations-OpenGL that was created by me as I created in the wrong forum. As you can see I posted it in php instead of java.
So is there a way I can delete it. Thanks
9 years ago
So I need to create a square and make it rotate when the letter R is pressed and then make it stop when the letter R is pressed again. I need make it rotate using a maths equation that I can't figure it out myself right this moment and would greatly appreciate any help.

Code for square:


Code to control the square with Key Events


In the Square code there is a method to write an equation to rotate it but I can't figure that part out and would appreciate if anyone can shed some light on this and help me out. Thanks in advance.
9 years ago
Well I know what most of it means yes but its more the database part since my lecturer hasn't explained it that well and I'm mostly on my own doing this. Our lecturer did tell us though that we could use phpmyadmin and that's the database that I'm connecting to. So it does work with java but I can't get the query to work.
10 years ago

Joanne Neal wrote:JDBC Tutorial



And this will work using PHPMyAdmin?
10 years ago

Joanne Neal wrote:You've only created a PreparedStatement - you also have to execute it to actually fetch data from the DB. When you execute it you will get a ResultSet back - this is what you need to assign to the rs variable.



And how do I go about that exactly if you don't mind me asking
10 years ago

Stephan van Hulst wrote:

You should find out why rs is null. Did you forget to set it somewhere?



Well every time I didn't set it to null I kept getting an error so I'm unsure of what to do exactly
10 years ago
Well I had to set it to null because other than that Eclipse kept giving me an error

This is the program that is wrong but when I take out the = null I keep getting an error that tells me to initialize the variable


10 years ago
I'm getting an error on line 137 and all it is



The error happens only after I press a JButton and it is



There is a lot more to it but that has nothing to do with my code it's just the stuff with Eclipse anyway I want to know how do I fix this problem?
10 years ago
I'm writing a php form and I can't get the drop down boxes and check boxes to stick as in when I fill in my details but don't click something it will keep everything else filled but that one part that wasn't filled out. I can do it for the input text and radio buttons but I can't get it done for drop downs and checkboxes

10 years ago
PHP
Thank you gonna try and implement that into my code and see if it works
10 years ago
I'm writing a java program in eclipse of a tic-tac-toe game. I have to create it using JTextField's only I'm having trouble where the JTextField will only accept one letter and will only accept X and O is there any particular way to do this I started off with this piece of code



But it doesn't work so is there something I'm missing
10 years ago