Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Ivan
I need help with Java Applet?
I need help updating the position of my moving circle in my Java Applet. Whenever I try to make it move faster it doesn't work. I need to be able to adjust the speed of the moving circle. What is wrong with my code?
import java.awt.*;
import java.applet.Applet;
public class phys extends Applet{
public static int height = 500;
public static int width = 500;
public static int radius = 126;
public static int y = 0;
public static int x = 0;
public static int xVel = 15;
public static int yVel = 15;
public void paint(Graphics g){
setBackground(Color.white);
setForeground(Color.black);
g.drawOval((width / 2 - radius), (height / 2 - radius), 2 * radius, 2 * radius);
g.drawOval(x, y, 5, 5);
if(x == 500 && y == 500){x = 0; y = 0;}
try{
Thread.currentThread().sleep(1000 / 60);
repaint();
}catch(Exception e){}
}
}
2 AnswersProgramming & Design8 years agoHow to print spaces in Batch with <nul set /p=?
I want to use <nul set /p= combination of commands to print spaces and tabs. How do I do this? I don't want to use echo as it results in a new line.
1 AnswerProgramming & Design8 years agoWindows DVD file library question?
On the Windows DVD there are a bunch of files. Among them is a file called "bootmgr". The problem I'm having is figuring out the extension of this file. I went and changed some properties so that Windows displays all file extensions but it's still not showing one for this file. I understand it's a boot manager of some sort but it just doesn't make sense, not to have a file extension if it is a file. Under that file is another boot manager but it has a file extension, it's called "bootmgr.efi", and I know what it does and why it's there. It's the other, unknown boot manager, that's bothering me as I don't know what it does and what kind of file it is? Does anyone know the answer to that?
1 AnswerSoftware8 years agoWhat versions of MS-DOS does the web browser Arachne run on?
I downloaded arachne and I'm wondering what version of MS-DOS must I get in order to be able to use it? Also, what is the earliest version of MS-DOS to allow the user access to the Internet? Thanks in advance!
1 AnswerSoftware8 years agoHow can I add multiple pauses in my Java program?
I have a Java program where I append text to a JTextArea. I have several lines of appending text and I wish to put a pause in between each one. The problem is when I use the conventional Thread.sleep() method, all the pauses happen at once and then the text gets appended. Why is this and how can I get around it?
2 AnswersProgramming & Design8 years agoHow can I hide the mouse when I hover it over a JTextField?
I have a JTextField and I wish to make the mouse invisible whenever the user hovers the mouse over it. Basically, make the mouse gone when it is positioned over the JTextField. Is there a way to do this?
I'm making this in Java.
1 AnswerProgramming & Design8 years agoHow does Windows recognize that programs are installed on your system?
If I install e.g. Battlefield 3, how does Windows recognize it as one of the installed programs on my computer? Does is have to do with registries? If so, where could I see the list (other than Control Panel - Installed Programs)?
1 AnswerSoftware8 years agoHow does Origin know which games are installed on your PC?
I downloaded Origin onto my desktop to be able to play on it as well as my laptop.The problem is when I transfer the corresponding files into the corresponding folders, from my laptop to my desktop, Origin still says: "Not able to run the game. It is not installed on your system.". There must be another folder with all the information somewhere. Where is this folder? I wish to copy it from my laptop to my desktop.
1 AnswerSoftware8 years agoIs is possible to send messages to other computers using Batch?
My friend and I are connected to a WIFI home network with our two laptops. I wish to send him a message using Batch. Is this possible? I've read a lot on using Batch and the 'net send' command to communicate but this doesn't see to work if you are not in a school-like computer network. Is there a way to achieve this?
3 AnswersProgramming & Design9 years agoHow to print out number from one to ten in Nasm Assembly (x86)?
I want to make a loop that prints numbers from one to ten. How could I do this?
1 AnswerProgramming & Design9 years agoHow to make a bootable Assembly program which prints integers from 1 to 10?
I wish to make a bootable Assembly program which prints integers from 1 to 10. How can I make this?
2 AnswersProgramming & Design9 years agoDoes anyone know any full Assembly(x86) tutorials for programming in Windows?
I want to find a good, complete Assembly programming tutorial for programming in Windows. Do you know any links? Help is greatly appreciated.
1 AnswerProgramming & Design9 years agoNeed help with an Assembly (x86) program?
I want to make a program which prints out numbers from 1 to 10, with the least amount of code. How can I achieve this?
2 AnswersProgramming & Design9 years agoHow can I add word wrap to my TextArea, in Java?
I want to add word wrap to my TextArea but the problem is that I want to keep it the size of my window. The method 'setLineWrap()' does not work with the TextArea, only with the JTextArea. How can I accomplish what I want?
2 AnswersProgramming & Design9 years agoHow to get instant key input in Java?
I want to make a program which takes in key input and makes something happen. How can I make the program so that pressing Ctrl - R does something?
5 AnswersProgramming & Design9 years agoWhere can I find a Malbolge compiler?
I'm looking for a compiler for the esoteric programming language Malbolge. Where can I find one?
1 AnswerProgramming & Design9 years agoHow to make a simple bootloader?
I want to make a simple bootloader that just loads a file. How can I do that? What's the simplest code I need in order to make this happen?
1 AnswerProgramming & Design9 years agoHow do you make the TextArea black in Java?
I want to make a window with a TextArea that's black. I'm making this program in Java. How can I do this? Also, will the solution work for a TextField?
3 AnswersProgramming & Design9 years agoHow can I solve a Java problem?
I made a graphical game in Java and every time I run it and wish to move in game I need to click the mouse first. Otherwise, nothing works. How can I solve this problem. I believe it's something to do with "setFocus" but I'm not sure. I can't post the code as there is too much of it.
3 AnswersProgramming & Design9 years agoI need to make a Java program that tests out my processors speed?
Does Java have a way of finding out the speed of the processor or must I improvise with huge numbers and them trying to measure the time it took to perform a calculation with them? If there is a way how could I do it? Code description would be appreciated!
3 AnswersProgramming & Design9 years ago