398 Posted Topics

Member Avatar for DavidKroukamp

Hey all, I have been wanting to make a cool game in jave such as a fighting game starting off simple with drwing stick figures :). But i was wondering why there are so many java games created in Japplet why not use swing- i know there are games out …

Member Avatar for DavidKroukamp
0
193
Member Avatar for shawnv100

well it depends, are you scanning the viruses using static analysis i.e checksum MD5, and disassembly - and checking for malcious code signatures, or are you emulating the the virus? there are other methods, sometimes both are used. Because if you are doing a simple md5 checksum scan you could …

Member Avatar for shawnv100
0
99
Member Avatar for Ashenvale
Member Avatar for sp85202

I must say your method does confuse me abit, so i created a bit of a neater one, which des what you ask, maybe you could disect it and then use it as you like: /** * @params accepts integer array * @returns integer which holds even number count */ …

Member Avatar for TrustyTony
0
5K
Member Avatar for huskarit

yes as everyone has mentioned you can use dispose() and you never really have to close a class once i has come to the end of all its executable code, it would have to be re-initiated to start its execution again

Member Avatar for DavidKroukamp
0
565
Member Avatar for DavidKroukamp

Hey all, I have been busy building my own chess game and as of now im a bit stomped. Well you see i have an object Board, this object will be initiated and it will create a new frame with various panels one of them being the panel which holds …

Member Avatar for JamesCherrill
1
247
Member Avatar for 117

[QUOTE=117;1753154]Thanks for the answer, but it's not really the flickering that bothers me the most. The biggest problem I have right now is to add a Container (JPanel), from another class and get it resized when the Main JPanel is resized. What comes to the absolute positioning part, everything seems …

Member Avatar for 117
0
4K
Member Avatar for gujinni

[QUOTE=gujinni;1772345]i want my calculator to compute more than two. I want it look like JFrame functions;[/QUOTE] you want your calculator to be able to do more then a single operation on multiple numbers, you would have to add an accumulator, which will be much like what you have now except …

Member Avatar for gujinni
-1
209
Member Avatar for TIM_M_91

[QUOTE=TIM_M_91;1779222]Hi guys what I want to do is set a new setSize which I can do but it just appears. Therefore what I want is for the setSize to move over time instead of just flicker and appear. Any help would be appriciated: [CODE] if (e.getSource() == set) { setSize(1000,1000); …

Member Avatar for JamesCherrill
0
143
Member Avatar for tabish saroha

[QUOTE=tabish saroha;1778500]I already connect with the server, but my question is that i want to check whether server is denied or exists..... means I wanna use a condition on ip address, whether IP exists or not ?[/QUOTE] Well if the client is in java surround the statement which initiates the …

Member Avatar for DavidKroukamp
0
204
Member Avatar for Gazzmonkey

[QUOTE=Gazzmonkey;1774168]Finally getting into concurrent programming but it's not easy for the novice like me, after all this work I still cannot get a successful compilation!!! A simple roundabout (traffic circle) is a circular junction of four streets where traffic flows in a one-way and one-lane circular stream around a central …

Member Avatar for JamesCherrill
0
802
Member Avatar for wallet123

[QUOTE=Ms New to Java;1774736]sir, if u will be able to run our program, u will see that it will require u to enter some basic information, such as name, address, and so on, but i dont want to just use JOptionPane, bcoz, everytime, it will ask for something , a …

Member Avatar for TIM_M_91
0
243
Member Avatar for pitamber

[QUOTE=pitamber;1771928]Hello, I was just wondering how i could write a TicTacToe program in java without arrays. I am new to programming and i don't know lot of stuffs, so any help would be appreciated Thanks[/QUOTE] Without arrays? That would to me be harder then doing it using arrays, if i …

Member Avatar for pitamber
0
1K
Member Avatar for htp367

[QUOTE=htp367;1774847]Thanks a lot for your hint but I am very new to java GUI so perhaps some sample code would be very helpful. :):)[/QUOTE] check this:[url]http://docs.oracle.com/javase/tutorial/uiswing/events/keylistener.html[/url] and here is another way using keybinders, which might serve your purpose better:[url]http://docs.oracle.com/javase/tutorial/uiswing/misc/keybinding.html[/url] here is an example on keybinders:[url]http://tips4java.wordpress.com/2008/10/10/key-bindings/[/url]

Member Avatar for htp367
0
720
Member Avatar for adil_bashir

[QUOTE=adil_bashir;1771875]hello everyone, I have implemented RSA algorithm in java but now i am asked to determine the time for encrypting variable length messages(plain text). As an example, i have to find the time in which input message of length 3 will get encrypted, similarly the time in which input message …

Member Avatar for DavidKroukamp
0
262
Member Avatar for Kert

[QUOTE=Kert;1774166]Thanks, but why I can't use the "==" to compare an int and an Integrer. I'm using it at the moment and everything seems to be working...[/QUOTE] In object oriented languages such as Java, the 'int' type is a primitive , whereas the 'Integer' type is an object. Objects provide …

Member Avatar for DavidKroukamp
0
214
Member Avatar for Syrne

[QUOTE=Syrne;1773388]Bump, sorry you answered my second question wonderfully, but I'd still like to know where to find the source code for the predefined Java functions. Thanks for any further help![/QUOTE] Hmm well, in netbeans IDE i know you can right click on a predefined function->Navigate->Go to Source (Ctrl+Shift+B)

Member Avatar for peter_budo
0
757
Member Avatar for enterpise

[QUOTE=enterpise;1773988]I have implement the chat sever.When I start to type the message to the server It says"Server has close the connection: java.io.EOFException" I don't what went wrong with my code. Can you plz have a look at it or give me some advice. [CODE]public class threadMiddle extends Thread { public …

Member Avatar for enterpise
0
202
Member Avatar for Matthew N.

[QUOTE=Matthew N.;1773580]Oops, forgot to say that.. I've found some tutorials on Google about downloading files in Java, but I'd like to build it so that I have a progress bar, and it downloads it in zip format, to keep files smaller, and make updating quicker.[/QUOTE] well, use one of the …

Member Avatar for DavidKroukamp
0
490
Member Avatar for cmps

[QUOTE=amirbwb;1773985]I am trying to create an application that will: 1) ask the person to enter a number (ex: 321) 2) the application will display each number on a line ex:3 2 1 Rules: Don't use looping and don't use arrays Someone told me it could be done but I can't …

Member Avatar for cmps
0
126
Member Avatar for ujjwale

[QUOTE=ujjwale;1771969]How to set the path variable.?[/QUOTE] see here:[url]http://java.com/en/download/help/path.xml[/url] , [url]http://java.sun.com/j2se/1.4.2/install-windows.html[/url] ,[url]http://docs.oracle.com/javase/tutorial/essential/environment/paths.html[/url]

Member Avatar for javalover
0
138
Member Avatar for MohEzzat

[QUOTE=MohEzzat;1771275]I ask for help if any one know how to filter words from text file. if the file contain(book,books,booking,..)I want the filter to retrieve only book and booking also if it contain(get and got)choose only the verb "get". any help Thanks.[/QUOTE] Couldnt you try the contains() method for strings?[code] public …

Member Avatar for stultuske
0
192
Member Avatar for syd919

[QUOTE=syd919;1769992]Hello people,I hope everyone is well. I am having problems with my connection string. It seems its not detected at all. I am designing a Silverligtht app with a Linq to SQL connection for the data. Here is my code.[CODE] ConnectionStringSettings settings = ConfigurationManager.ConnectionStrings["DataConnect"]; string connection = settings.ConnectionString; DataContext dataContext …

Member Avatar for thines01
0
252
Member Avatar for javitis

[QUOTE=javitis;1770394]Hello to everyone! I am working on a simple application like a search engine.It searches in an index(a txt file with filenames). If a match is found, it displays the complete path where the keyword is contained and opens the path. It's a movie catalog and searches for the movie …

Member Avatar for stultuske
1
304
Member Avatar for wonderlandslost

[QUOTE=wonderlandslost;1769474][CODE] public class Drawer { //Declare array for shapes to be stored in public Parent myShape[] = new Parent[10]; //ERROR RECEIVED: Exporting nonpublic type through public API /* * Description: This method will allow the items to be entered into the array * and will place them in the first …

Member Avatar for wonderlandslost
0
307
Member Avatar for BleepyE

[QUOTE=BleepyE;1770445]Hi guys, I need some help. Im trying to create a comment system in an applet. When a user enters a new comment all previous comments are shown below. The comments are taken from two text fields. At the moment im just storing the latest 2 comments in variables, I …

Member Avatar for DavidKroukamp
0
133
Member Avatar for baseballer

[QUOTE=baseballer;1770461]I'm just trying to teach myself how to use java.util.zip, but I'm struggling with one part I think. The code below is what I have so far, I'm just not sure how to actually get it to read in a zip file? Any help would be much appreciated. [CODE] import …

Member Avatar for DavidKroukamp
0
129
Member Avatar for bela_code

[QUOTE=bela_code;1770410]need a complete code for a car class with the following attributes; make model colour registration no of seats wheel type (alloy or hubbed) engine size (in cc)[/QUOTE] Not many people are willing to do all your work for you. Rather try Googling and asking questions on things you dont …

Member Avatar for NormR1
0
119
Member Avatar for kris222

[QUOTE=kris222;1770118]Hey can someone help me with my java program you have to A-Z to Z-A here s what i ve done so far: class az { public static void main(String[]args)throws Exception { String x="abcdefghijklmnopqrstuvwxyz"; int ctr; for(ctr=1;ctr<=26;ctr++) { char z=x.charAt(26); System.out.print(z); } } }[/QUOTE] Hmm why not just:[code] String x …

Member Avatar for stultuske
0
111
Member Avatar for Vampiricx3

[QUOTE=Vampiricx3;1770128][code]import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { boolean _active = true; String _username = System.getProperty("user.name").toLowerCase(); String _os = System.getProperty("os.name").trim().toLowerCase(); public Main() { try { while(_active) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.print(_username + "@" + _os + ":~$ "); String command = br.readLine(); if(command.equals("cf")) { new commandCreateFile(); } …

Member Avatar for DavidKroukamp
0
166
Member Avatar for WigglesMcMuffin

[QUOTE=WigglesMcMuffin;1770048]Hello, This isn't the typical "I wrote a heap sort that doesn't work, help me please" thread, instead, I'm one step before that. I'd really like to [B]understand[/B] the innards of a heap sort before I attempt to write one. I'd like to give it a go from scratch, or …

Member Avatar for DavidKroukamp
0
219
Member Avatar for glebovg

[QUOTE=glebovg;1768964]We just started arrays and I have no idea how to do this problem. Could you post some code so I can get started. I really do no understand arrays. Thanks.[/QUOTE] check here:[url]http://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html[/url] here:[url]http://www.roseindia.net/java/beginners/arrayexamples/index.shtml[/url] and this:[url]http://www.learn-java-tutorial.com/Java-Arrays.cfm[/url]

Member Avatar for zeroliken
0
266
Member Avatar for gedas

[QUOTE=gedas;1767318]Hi guys, i have been having some problems parsing a list of strings. lets say i have a list that has the following strings [code] List<String> list = new ArrayList<String>(); list.add("Process A Started"); list.add("Process B Started"); list.add("Process B Finished"); list.add("Process A Started"); list.add("Process C Started"); list.add("Process D Started"); list.add("Process C …

Member Avatar for NormR1
0
219
Member Avatar for FALL3N

[QUOTE=FALL3N;1766973]ok I realize that was an unfairly long question, and I change it to can you (or anyone else) explain to me what the install + deinstall methods for the Caret interface do and how they work? Oh, and how to write the two ChangeListener methods... I wrote all the …

Member Avatar for FALL3N
0
1K
Member Avatar for sharvil_maniyar

[QUOTE=sharvil_maniyar;1767305]Thanks for taking time and replying NormR1.. But actually the stupidest thing happed with this code.. I just changed the JDK from 1.6 to 1.7 and then tried this code and it worked with no errors... And since, all other are working flawlessly...[/QUOTE] I think thats because the Nimbus style …

Member Avatar for JamesCherrill
0
810
Member Avatar for M.Waqas Aslam

[QUOTE=waqasaslammmeo;1767000]hello ! basically i am working on .net , but now i want to learn java , is there any software like visual studio for .net .if yes then please can any one tell me or provide me any helpful link. Best Regards M.Waqas Aslam[/QUOTE] Hmm yes i do agree …

Member Avatar for M.Waqas Aslam
0
177
Member Avatar for DavidKroukamp

Hi all, I'm in my 2nd year of software development (doing C#) and having come from a Java background, and having programmed a few GUI's in C#/Visual Studio's; I was wondering... Like in Java You can use an IDE to build a GUI, however you can also simply add Frames, …

Member Avatar for DavidKroukamp
0
341
Member Avatar for bhallarahul

[QUOTE=bhallarahul;1762920]i want to use use javamail Api and i am not able to understand which server i use or is there is any other api available which is better then javamail Api.please suggest me[/QUOTE] if you havent already, this would be a great way to start [url=http://java.sun.com/developer/onlineTraining/JavaMail/contents.html]Fundamentals of the JavaMail …

Member Avatar for bhallarahul
0
148
Member Avatar for bhallarahul

[QUOTE=bhallarahul;1762918]hi everyone you guys helped me many time this time again i need your help Actually i want to learn struts frame work and i read the content of 2-3 sites but i m not able to learn how to run my first simple application. Can any one help me …

Member Avatar for bhallarahul
0
132
Member Avatar for shean1488

[QUOTE=shean1488;1763005]Hi everybody. I'm working on my program. And have this output storred in the object puzzle: [CODE]Puzzle is: 1 5 9 13 2 6 10 14 3 7 11 15 4 8 12 16 2 6 10 14 3 7 11 15 4 8 12 16 5 9 13 1 …

Member Avatar for DavidKroukamp
0
312
Member Avatar for Stjerne

[QUOTE=Stjerne;1763089]Hi guys, So I'm doing an assignment right now. One of the tasks is about listing files. It wants you to insert a name, either directory or a certain file, and give you a message with some informations. So I'm trying to finish the part where I enter a directory …

Member Avatar for stultuske
0
182
Member Avatar for dantinkakkar

The problem is, that I want to read data and analyze it from a promiscuous network device programmatically using java. Using existing software like WireShark/DarkStat is NOT a solution. I wanna do it myself. Any hints on where do I start? Please try not post duplicate topics/threads. because too me …

0
83
Member Avatar for sha11e

Found the link that might help: [url]http://lists.apple.com/archives/java-dev/2005/Feb/msg00838.html[/url] and here:[url]http://www.trinity.edu/mstroud/spanish/accents.html[/url] most importantly from the second link is: "You can enter lots of different characters by holding down the Alt key and entering number combinations on the Num pad (make sure NumLock is on)"

Member Avatar for stultuske
0
3K
Member Avatar for drico7041

[QUOTE=drico7041;1763410]Hey, I created a phone directory program. But I was wondering if I could get some hints on how I could create a txt file and add, delete names and numbers on the txt file. [CODE]import java.util.*; import java.lang.*; import java.lang.Object; import jpb.*; public class PhoneDir { private static LinkedList …

Member Avatar for dantinkakkar
0
3K
Member Avatar for mohamed moamen

[QUOTE=mohamed moamen;1762615]yes , am already user sockets but i don't know ho i do private chat[/QUOTE] Hmm another method to the above, may be having the client send its messages along with a few parameters such as the user to who its too, you'd separate the two, search through the …

Member Avatar for dantinkakkar
0
445
Member Avatar for shean1488

havent checked your code but i dont think you want this:[code] for (Cell[] myPuzzle : puzzle) { for (int i=0; i<myPuzzle.length; i++) { for (int j=i+1; j<myPuzzle.length; j++) { if (myPuzzle[i].getValue() == myPuzzle[j].getValue()) count++; } }[/code] should it not be:[code]for (Cell myPuzzle : puzzle) {[/code]

Member Avatar for stultuske
0
268
Member Avatar for Hussam Alahmadi

[QUOTE=Hussam Alahmadi;1762848]i can not understand my Home work plz help me this is the Question ...... Problem 1. Write a program in which you will do the follwing: 1. Declare a two-dimensional array of double with 12 rows and 30 columns to store daily temperatures for one year assuming each …

Member Avatar for DavidKroukamp
-1
137
Member Avatar for riahc3

[QUOTE=riahc3;1755163]Great, I perfer the 3 digit milisecond count. Is the locale the default system locale or the default locale from the machine the code was complied from? Besides, doesnt hurt to leave it.[/QUOTE] Isnt the system locale from the one the user put in when they first installed windows i.e …

Member Avatar for riahc3
0
439
Member Avatar for HBK_100

[QUOTE=HBK_100;1762324][CODE] private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: String sql="Select BADGE_NUMBER,FIRST_NAME from POLICE_TABLE"; try { Class.forName("org.apache.derby.jdbc.ClientDriver").newInstance(); Connection con= (Connection) DriverManager.getConnection("jdbc:derby://localhost:1527/Traffic Ticket System","Administrator","admin1234"); /*As we are creating a connection on a local computer we will write the url as jdbc:mysql://localhost:3306 */ Statement stmt=con.createStatement(); ResultSet rs = …

Member Avatar for JamesCherrill
0
183
Member Avatar for mohamed moamen

[QUOTE=mohamed moamen;1755977]How i can do a server that can be handle a very large number of clients (in same time) between 250,00 to 1,000,000 clients or more ? , Because when large number of clients connect to the normal server that failed.[/QUOTE] what do you mean? have you tried a …

Member Avatar for mohamed moamen
0
249

The End.