Forum: Java Aug 5th, 2005 |
| Replies: 17 Views: 3,795 import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Inp extends JFrame{
JPanel panel;
JTextField field;
Container container;
InpKeyHandler... |
Forum: Java Aug 5th, 2005 |
| Replies: 17 Views: 3,795 Im not suggesting to make it read-only. What im saying is add a keylistener and whenever the user presses a key just update the textfield accordingly. The only reason I said uneditable is to... |
Forum: Java Aug 5th, 2005 |
| Replies: 17 Views: 3,795 A better alternative would be to disable text input altogether (call setEditable(false) on the text field. This deals with the problem of people putting in garbage input. Then all you need to do is... |
Forum: Assembly May 22nd, 2005 |
| Replies: 1 Views: 7,756 I recently bought this book online used, it came with no CD. Many of the code examples in this book rely on some file called IO.h that apparently came with the CD. I downloaded this file and I... |
Forum: Assembly May 20th, 2005 |
| Replies: 1 Views: 4,433 Was wondering what is the best book on assembly? There are many on amazon but some seem to get really bad reviews. Are there any online books that teach it in depth, it seems many of them are small... |
Forum: Getting Started and Choosing a Distro May 18th, 2005 |
| Replies: 9 Views: 2,828 Looking for one that is easy to install, lots of developement tools, good hardware auto-detection |
Forum: Windows NT / 2000 / XP May 17th, 2005 |
| Replies: 6 Views: 3,750 So if I formatted it then I should delete the partition anyway? |
Forum: Windows NT / 2000 / XP May 16th, 2005 |
| Replies: 6 Views: 3,750 |
Forum: Windows NT / 2000 / XP May 16th, 2005 |
| Replies: 6 Views: 3,750 I have a C and D drive, the D drive is a seperate HD from C, and has no essential files for running windows. I want to format the D Drive and eventually install some version of linux to it. Is it... |
Forum: Getting Started and Choosing a Distro May 15th, 2005 |
| Replies: 9 Views: 2,803 Nothing from Windows is installed on the D Drive (not any essential files for booting), it boots from C. SO would I be able to format and boot Linux from D without any problems? Im a newb when it... |
Forum: Getting Started and Choosing a Distro May 15th, 2005 |
| Replies: 9 Views: 2,803 I have 2 partitions currently, a C and a D drive. C is my main drive. I was wondering, would I have to format both C and D to install a dual boot system? Or would I just have to format the D drive... |
Forum: C++ Apr 21st, 2005 |
| Replies: 21 Views: 30,860 Thats what happened I think. I would get tons of DLL errors from programs that never used to give them after installing Microsoft Visual C++ 6.0 IDE. So I had to format my computer to fix it. |
Forum: Computer Science Apr 20th, 2005 |
| Replies: 1 Views: 3,267 I want to learn how to reverse engineer, what is a good starting point? I only know java atm but I have a book on HLA and a book on C. Would I have to learn both languages first or are there books... |
Forum: C++ Apr 20th, 2005 |
| Replies: 21 Views: 30,860 Yeah, we all know microsoft sells malware for $100. |
Forum: C++ Apr 20th, 2005 |
| Replies: 21 Views: 30,860 I used to have Microsoft Visual C++ and I deleted it. It screwed up my OS somehow and I had to reload windows. Downloaded bloodshed dev c++ and its working good. |
Forum: C Apr 20th, 2005 |
| Replies: 0 Views: 2,654 I've been asking around places about how I would intercept all UDP packets being sent from my computer and re-send them at a later time. I basically want to pause the packets for 100 milliseconds... |
Forum: C++ Apr 19th, 2005 |
| Replies: 21 Views: 30,860 I'm using windows though, know of any windows IDEs? |
Forum: C++ Apr 19th, 2005 |
| Replies: 21 Views: 30,860 What's the best free C Compiler or IDE available? |
Forum: Java Apr 2nd, 2005 |
| Replies: 6 Views: 1,670 Is it possible to view the java classes source code or to get it somehow?
I'd really like to see how some of the classes work if its possible |
Forum: Java Feb 16th, 2005 |
| Replies: 7 Views: 4,554 |
Forum: Java Feb 13th, 2005 |
| Replies: 1 Views: 1,522 If anyone can write how to listen for - + or * it'd be helpful |
Forum: Java Feb 13th, 2005 |
| Replies: 1 Views: 1,522 Im currently using method
getKeyText() and getKeyCode() like this
How do you listen for * - and + with keylisteners.
/ is the only one that works atm the rest won't get recognized for some... |
Forum: Java Feb 12th, 2005 |
| Replies: 1 Views: 14,876 Currently JTextField aligns all text to the left side, how do you change it so all text typed into it goes to the right side instead? |
Forum: Java Feb 10th, 2005 |
| Replies: 3 Views: 2,147 Post the whole thing and i'll tell you |
Forum: Windows Software Feb 8th, 2005 |
| Replies: 4 Views: 3,518 I thought certain languages didnt have the same type of access as others. |
Forum: Java Feb 8th, 2005 |
| Replies: 2 Views: 2,312 Can applets display images on the viewers hard drive somehow?
If so how would I do that?
And if I dont know the filenames but I know the directory, is there a way to do it? |
Forum: Windows Software Feb 7th, 2005 |
| Replies: 4 Views: 3,518 How exactly do they recover the files?? What would a program have to be written in to be a file recovery program? |
Forum: Java Feb 6th, 2005 |
| Replies: 6 Views: 5,403 Is the best way to check for 2 words of same type in a string to make a stringtokenizer and story every word in an array then compare it in a for loop?
seems like a hassle for comparing for same... |
Forum: Java Feb 4th, 2005 |
| Replies: 4 Views: 5,482 large = (number1 > number2 ? number1 : number2)
large = (large > number3 ? large : number3)
small = (number1 < number2 ? number1 : number2)
small = (small < number3 ? small : number3) |
Forum: Java Feb 4th, 2005 |
| Replies: 5 Views: 4,808 One more question, Say I have like 5 lines of text in a string
String s = "5 lines of text(pretend)"
and I want to reset this every time like s = ""
should I call System.gc() after I set s to... |
Forum: Java Feb 4th, 2005 |
| Replies: 7 Views: 1,650 If u dont understand deitels book read it again, best advice imo. has lots of source code to look at so u dont have to be writing programs to know what hes talking about
here are overloaded... |
Forum: Java Feb 4th, 2005 |
| Replies: 5 Views: 2,229 //This applet draws an animated bouncing ball with uniform speed.
//The ball starts at the center of the graphics page and bounces off
//the top and bottom
import java.awt.*;
import... |
Forum: Java Feb 4th, 2005 |
| Replies: 5 Views: 2,229 Use repaint() which calls method update(Graphics g), in your case page.
update clears the background of a drawing, then calls method paint which re-draws what you have. |
Forum: Java Feb 4th, 2005 |
| Replies: 5 Views: 4,808 lol, i meant the harder way I guess not the best. Is there a way of telling where a period should be by using some type of regular expression or string method?
Also, is this the best way for... |
Forum: Java Feb 4th, 2005 |
| Replies: 5 Views: 4,808 Topic is misleading I edited it.
What would be the best way to put a period at the end of a sentence without just adding it to the last word or last variable etc.
Like say i had
String s =... |
Forum: Java Feb 2nd, 2005 |
| Replies: 5 Views: 5,176 I found the method
in java.awt.Graphics
drawOval(int x, int y, int width, int height)
Draws the outline of an oval.
while(true){
drawOval(50,y,50,50);
repaint();
y++; |
Forum: Java Feb 2nd, 2005 |
| Replies: 5 Views: 5,176 You'd have to use repaint() I think, and keep re-drawing the oval just 1 pixel lower. I think theres a method called drawOval or something but dont remember what class it's in |
Forum: Getting Started and Choosing a Distro Feb 2nd, 2005 |
| Replies: 9 Views: 6,725 |
Forum: Getting Started and Choosing a Distro Feb 2nd, 2005 |
| Replies: 9 Views: 6,725 my D says MBR also, what does that mean |
Forum: Getting Started and Choosing a Distro Feb 2nd, 2005 |
| Replies: 9 Views: 6,725 how would I check if its primary or secondary |