286 Posted Topics

Member Avatar for sirlink99

I am just starting out with c++, but I have a goal in mid. I have already programmed the logical portion of what I wish to acomplish in Java, but it doesn't work, because I can't set a usb to read only for the whole system in Java (if I …

Member Avatar for sirlink99
0
392
Member Avatar for sirlink99

I am attempting to encrypt and string and then decrypt it. I have the encryption part working, but when I try to decrypt it gives me an InvalidKeyException and says that it is missing parameters. Here is the code import javax.crypto.*; import java.security.*; public class Cryption { private Cipher c; …

Member Avatar for sirlink99
0
1K
Member Avatar for javanoob101

Hello! Long time no see. I believe the code you are looking for is the setDelay() command for the timer. Here is the documentation: http://docs.oracle.com/javase/6/docs/api/javax/swing/Timer.html Also if you wish to have multiple timers for different monsters then set an actionCommand for each timer

Member Avatar for javanoob101
0
284
Member Avatar for Start4me
Member Avatar for JamesCherrill
0
381
Member Avatar for game06

As James Cherrill said. you are making the player, but you are not painting it. Also is your map01 a grid for your snake to go on, or are you going to make levels like in my snake game? [This](http://www.mediafire.com/download/ayx5j42r95qqzi4/Snake_v41.jar) is the snake game I made a year or so …

Member Avatar for sirlink99
0
1K
Member Avatar for nurib

You may want to take a look at the java.net package. If you don't know how to write a standalone program you will allso want to take a look at the javax.swing package. Search up some tutorials to help you. The oracle website has many tutorials that will help you …

Member Avatar for Schol-R-LEA
0
334
Member Avatar for sirlink99

I am trying to use java to detect when a USB is inserted and to read from it. I am currently using javax.usb to try to accomplish this however I get this error (line 11) when running my program javax.usb.UsbException: The property javax.usb.services is not defined as the implementation class …

Member Avatar for sirlink99
0
601
Member Avatar for sirlink99

I am wondering how to copy files in cmd, but it isn't that simple. I know how to copy normally, but I would like to combine multiple items(Which I also know how to do). My problem comes in when I try to organize the files into folders My file structure …

Member Avatar for sirlink99
0
144
Member Avatar for sirlink99

Hello Everyone. I am making a sudoku solver for an assignment, and I ran into a problem of my 2D Integer array not updating. The input consists of a 9x9 puzzle with 0s for the missing values. I read this input and then place it into the 2D array. during …

Member Avatar for sirlink99
0
276
Member Avatar for sirlink99

I have a background image placed onto my website using css body { background-image: url(../Images/bg2.png); background-repeat:no-repeat; background-position: center bottom; background-size: 100% 100px; } and I was wondering how I could make it so that if the website is smaller than the browser window then the image sticks to the bottom …

Member Avatar for LastMitch
0
128
Member Avatar for sirlink99

I am attempting to write a very simple chat program to test out ServerSockets and Sockets, the code should work, but when the client make a connection to the server it does not move past the accept method. I know they connected because as soon as I close the client …

Member Avatar for JamesCherrill
0
474
Member Avatar for sirlink99

Hello. I am wondering if it is possible to use a windows 7 upgrade disk on a windows 8 machine. I know you can do a clean install with an upgrade disk, but I am just wondering if upgrading a windows 8 machine to a windows 7 is possible. Thanks

Member Avatar for margaret224
0
331
Member Avatar for laguardian

I am going to assume you are using a GUI, so when the user hits finished you need to use the .getText(); method to get the text from the text field, and store it in a variable. one you get all the text you then need to print out the …

Member Avatar for JamesCherrill
0
326
Member Avatar for codeorder
Member Avatar for sirlink99

I am making a game, and I am wondering how to make an image from a graphics object. I have tiles stored in an xml file. I then read from this file to make the level, however I would like to have a thumbnail for each level. This is why …

Member Avatar for richieking
0
82
Member Avatar for sirlink99

In my computer engineering class a friend and I have built a wireless robot which can turn and move forward. It is really basic. To make it a little more complex we have decided to put a webcam on the front of it, so that we can control it via …

Member Avatar for sirlink99
0
154
Member Avatar for sirlink99

I have rescently had one of my usbs stolen, and I am wonering how I could make a file that autoruns no matter if the user wants it or not. this program that I would make would find ips of the computer, and the name of the computer and user, …

Member Avatar for sirlink99
0
111
Member Avatar for sirlink99

I am wondering if there is a way to make a MySQL database using my java program without actually having a defined username for the admin. for example I would make a program that you could install on all computers in a network that connect to a newly made database …

Member Avatar for masijade
0
123
Member Avatar for sirlink99

I am trying to make a screen recorder, but I am having trouble converting the images I capture to a video. I have done some research, but JMF doesn't seem to work for me(maybe because I am running 64 bit), and I have not been able to find anything else. …

0
54
Member Avatar for sirlink99

I have devised a quick little program that captures the screen and puts it in a vector, but my problem is that when I go to save it gives me this error [code] - create processor for the image datasource ... Setting the track format to: JPEG - create DataSink …

0
54
Member Avatar for sirlink99

I ave a Toshiba laptop, and when I tried turning it on this morning it wouldn't turn on. First there was just a black screen, so I removed all power sources, and held down the power button to reset everything, then I plugged the power back in, and I managed …

Member Avatar for Jamesadam432
0
182
Member Avatar for sirlink99

I have an intel pentium(R) dual core t4200 and I am wondering what processor could replace this one? My laptop is 3 years old for extra information. Also, I know this is not the appropriate section for this question, but I I upgrade from 4 to 8 gigs of ram …

Member Avatar for caperjack
0
116
Member Avatar for sirlink99

I have a code that I am trying to use for AI, and I am getting a strange error like result, even though the program can execute. here is what is displayed when I print out the character array after converting to a string. [CODE] [Ljava.lang.Character;@2e3fe12e [/CODE] Here is what …

Member Avatar for NormR1
0
313
Member Avatar for sirlink99

I have a vista 64 bit, and I have a usb mouse plugged into it. After like 5-10 seconds the mouse just starts moving down. I have to unplug and replug the mouse, and then it stops. I did not change anything, but my 15 month old cousin was button …

Member Avatar for dangerstick
0
114
Member Avatar for sirlink99

When I run my code, and advance from level to level it works correctly, but when I would like to restart my program I cannot get the frame to reset. Here is my code [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Frame implements KeyListener{ GraphicsDevice vc; Player p …

Member Avatar for sirlink99
0
143
Member Avatar for sirlink99

I was watching a video on how they made Watson (the robot that was on jeopardy), and another one where a person made a simulation where triangles (animals) learned when to get food, and such, and then taught their offsprings, and then they learned more, and then the intelligence developed. …

Member Avatar for harinath_2007
0
177
Member Avatar for sirlink99

I am making a java game, and I have heard that when I use the Math.random() method it has greater chances of generating some numbers. is this true, and if so how can I fix it. If not which method generates numbers unequally? Thanks for your help.

Member Avatar for sirlink99
0
3K
Member Avatar for sirlink99

I have this line of code (repeated with a bit of change) [CODE] if (ropeChosen == 1){ g.drawImage(rope, 321, 0, 10, 505, this); g.drawImage(rope, 521, 0, 10, 704, this); g.drawImage(rope, 721, 0, 10, 703, this); g.drawImage(rope, 921, 0, 10, 702, this); if (p.idol2){ g.drawImage (idol, 275,485,100,100,this); }else{ g.drawImage (snake, 300,505,50,100,this); …

Member Avatar for sirlink99
0
112
Member Avatar for sirlink99

is there a way to remove the windows key effect on the local machine, so that my program doesn't minimize? I have tried an empty if statement, but that didn't do anything. Thanks for any help.

Member Avatar for dmanw100
0
96
Member Avatar for sirlink99

I am getting an access denied error when I am writing to the database I am using this line [CODE] LOAD DATA INFILE 'upload.txt' REPLACE INTO TABLE Test FIELDS TERMINATED BY ',' [/CODE] I have made sure I allowed remote SQL, and I made sure to give the user all …

Member Avatar for smantscheff
0
88
Member Avatar for sirlink99

I have a program that reads from a database, and then displays the results in a TextArea. Then when the user hists upload the file will be saved to a .txt file, and then uploaded to the database. But currently I am getting the original which looks like this in …

Member Avatar for mKorbel
0
233
Member Avatar for sirlink99

I reset my computer 2 days ago, and now it keeps freezing for like a second or two, and then it functions normally. I have barely any programs running. Steam Hamachi Skype Microsoft Security Essentials and internet or minecraft (on worst settings to make sure it doesn't lag) and it …

Member Avatar for caperjack
0
168
Member Avatar for sirlink99

I am making a website, and I would like to figure out what size the display portion of the browser is. Here is more of an idea of what I mean tabs and menu widgets if they have any browser window bottom portion of web browser I would like to …

Member Avatar for qazplm114477
0
100
Member Avatar for sirlink99

I am trying to write a program that can access my database from a remote computer and change it. How can I figure out the url of my database? according to my source it should be something like this [CODE] jdbc:mysql://host_name:port/dbname [/CODE] Thanks for your help.

Member Avatar for sirlink99
0
143
Member Avatar for sirlink99

My computer has a virus now, and yesterday it turned on just fine, but today it says it cannot start up. I have restarted the computer several times, and it doesn't start up. I have not done a cold boot, because I didn't think that would help. I run the …

Member Avatar for ilmkidunya
0
132
Member Avatar for sirlink99

I am having trouble displaying Hungarian letters that are read from a database. [URL="http://otletbarkacsbolt.hu/test.php"]Here[/URL] is the output and here is the code [CODE] <?php mySQL_connect("localhost","[SNIPPED]","[SNIPPED]") or die (mysql_error()); // connect to mySQL echo ("Connected to MySQL"); echo ("<hr /><br />"); mysql_select_db("otlethu1_aru") or die (mysql_error()); //connect to otlerhu1_faaru database echo ("Connected …

Member Avatar for sirlink99
0
479
Member Avatar for sirlink99

When I run my website I have random bits of php showing, and the background doesn't appear. Here is what bit is showing [CODE] "); } ?> [/CODE] and here is my code [CODE] <!DOCTYPE html> <head> <title>Website Name</title> <meta http-equiv="Content-Type" content="text/html; charSet=UTF-8"> <link rel="stylesheet" href="styles.css" media="screen" /> </head> <body> …

Member Avatar for sirlink99
0
158
Member Avatar for sirlink99

I have an issue reading from a database. here is the php code after I have connected to the database [CODE] echo ("Connected to MySQL"); echo ("<hr /><br />"); mysql_select_db("test"); echo ("Connected to database"); echo ("<hr /><br />"); $sql = mysql_query ("SELECT * FROM 'Product'"); while ($row = mysql_fetch_array($sql)){ echo …

Member Avatar for sirlink99
0
98
Member Avatar for sirlink99

I made a test database to store items in a database, but I keep getting an error when trying to import from a txt file. Here is my txt file [CODE] 1,Lánc 2,Fa 3,Csavar 4,Lakat [/CODE] How could I fix this problem? Also is there a reason I need to …

Member Avatar for sirlink99
0
819
Member Avatar for sirlink99

I have [URL="otletbarkacsbolt.hu"]this[/URL] website, which is still under development, and I am wondering why, when I go to Termékek it displays them all under each other, when in firefox, and opera it doesn't. here is the css [CODE] *{ margin: 0; padding: 0; } *{ text-decoration: none; } .wrapper { …

Member Avatar for sirlink99
0
107
Member Avatar for sirlink99

I am having trouble positioning divs beside each other 2 images one above the other with another image beside the 2 that are on top here is what that part looks like Html [CODE] <div class="leftDiv"> <img src="Images/contact_front.png" width="150px" height="150px"><br /> <img src="Images/contact_stairs.png" width="200px" height="150px"> </div> <iframe width="370" height="300" frameborder="0" …

Member Avatar for sirlink99
0
71
Member Avatar for sirlink99

Is there a way to make a div image transparent while the text in the div is not. here is my current code. [CODE] .body { width: 800px; height: auto; font-family: Arial; font-size: 11px; color: #000; background: url('Images/backg3.png'); opacity: 0.5; alpha(opacity=50); } .textbody { padding: 10px; color: #000000; font-weight: bold; …

Member Avatar for sirlink99
0
92
Member Avatar for sirlink99

I am trying to make a storyboard program, but I am having trouble displaying the currect amount of windows per page. my basic program looks like this [] = button to open editor [+] = add new button [>] = next page [<] = previous page Frame [] [] [] …

Member Avatar for sirlink99
0
143
Member Avatar for sirlink99

I am wondering how extremely basic physics engines work and how I could implement them. lets say I have a player class (like a frame, except it holds the variables for the players), and I would like to add gravity. Could I go something like this [CODE] Player p = …

Member Avatar for sirlink99
0
87
Member Avatar for sirlink99

I have a usb (with the other end cut off), and I noticed that it is not recognized by the computer. I am wondering how I could make it so that the computer recognizes it. I will eventually make a wireless connection to a camera (security camera) for my room. …

Member Avatar for hotmatrixx
0
209
Member Avatar for sirlink99

I have a program, and I would like to rotate the image (4 directions) I am wondering if there is an easy way to rotate the image. here is the code, and where I would like to rotate the image. [CODE] import java.awt.*; import java.awt.image.ImageObserver; import java.io.*; import javax.imageio.ImageIO; public …

Member Avatar for mKorbel
0
171
Member Avatar for sirlink99

I am getting this error. [CODE] Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 >= 0 at java.util.Vector.elementAt(Unknown Source) at Game.collision(Game.java:176) at Game.<init>(Game.java:20) at Frame.<init>(Frame.java:12) at Frame.main(Frame.java:31) [/CODE] The game was working, but when the enemies came on the screen it started lagging, so I made another thread, and just copied the …

Member Avatar for sirlink99
0
172
Member Avatar for sirlink99

I am writing code that opens notepad, but when I want to write an exclamation mark it throws an error; here is the code I am using to write the exclamation mark. [CODE] robot.keyPress(KeyEvent.VK_EXCLAMATION_MARK); robot.keyRelease(KeyEvent.VK_EXCLAMATION_MARK); [/CODE] Why is it giving me the error?

Member Avatar for JamesCherrill
0
714
Member Avatar for sirlink99

I would like to make a kind of archiver that can uncompress rar files. This project will evolve into a program that will guess the password until it unlocks the file. How would I be able to unzip the file using java, and submit a password if it asks for …

Member Avatar for sirlink99
0
1K
Member Avatar for airawind88

[QUOTE=happygeek;1377128]Well, I said it right here on DaniWeb in the "[URL="http://www.daniweb.com/reviews/review318591.html"]Web browser speed test: Chrome, Firefox, IE9, Opera and Safari head-to-head[/URL]" speed test ratings piece that we produced last month. If you want to know why it was fastest, I suggest you go and read that comparative speed test which …

Member Avatar for stve100
0
667

The End.