Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
5
Posts with Upvotes
5
Upvoting Members
5
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
~16.2K People Reached
Interests
Coding, C#, Java, C, computers and games in general
PC Specs
I7-3550, 16Gb Corsair Vengence DDR3-Ram, 7950HD raedon GFX, Steelseries G7 keyboard, Roccat Kone[+]…
Favorite Forums
Favorite Tags

25 Posted Topics

Member Avatar for Krokcy

Hey! So I am having trouble with this [problem](projecteuler.net/problem=18)! Basically you have to find the path that gives the largest sum down this tree: 75 95 64 17 47 82 18 35 87 10 20 04 82 47 65 19 01 23 75 03 34 88 02 77 73 07 …

Member Avatar for Krokcy
1
300
Member Avatar for Krokcy

Hey! Im doing a project, where i have to manage a bunch of different appliences. I´ve made a custom generic collection class that has a few different search methods. Now the collection class has to hold all of the different appliances (so they all inherits from the same superclass: Appliance). …

Member Avatar for Ketsuekiame
0
258
Member Avatar for Krokcy

Hey! Im fairly horrible(and new) at networking :) But i have been trying to setup a Mumble server on my newly accuired Raspberry Pi (running debian wheezy). Now the server works internally. And have setup a virtul server path with my D-LINk router to my servers local ip. But nobody …

Member Avatar for Krokcy
0
287
Member Avatar for Krokcy

Hey! So i have started learning c, quite refreshing when i normally code in Java :) I have this task where i need to store three int values in an unsinged int via bitwise operators. Its for a RGB picture where the colour is limited to 256. I have done …

Member Avatar for WaltP
0
202
Member Avatar for Krokcy

Hey :) First off this might actually be a network problem! But im also uncertain of the java code and how networking works in java. The program is basically just to transfer a file if that matters! So this is my code for setting up the connections: Server: //connection(s) private …

Member Avatar for Krokcy
0
287
Member Avatar for slim.helu.92

At the university im at the first time we ever coded java was in [JEdit](http://www.jedit.org/) . Its simple and you don't have to fumble with compiling in command prompt (which honestly when writing really simple programs can be the hardest part, at least i had a lot of trouble with …

Member Avatar for peter_budo
0
174
Member Avatar for Krokcy

Hey! So i'd like to learn the JMF api. And to start i wanted to build an application that can capture frames/video from a webcam. Now, i started by trying to list all the devices: Vector info = CaptureDeviceManager.getDeviceList(null); if (info == null || info.size()==0) System.out.println("No Capture devices known to …

Member Avatar for harinath_2007
0
551
Member Avatar for TarkiB

As James said in your context it doesnt really make sense. However if you are printing the value you can use the DecimalFormat class, ie.: DecimalFormat df = new DecimalFormat ("0.00"); float someFloat; //some code System.out.println(df.format(someFloat)); Not sure if there is a better/easier way, but this is how i normally …

Member Avatar for JamesCherrill
0
440
Member Avatar for sammoto

Do something like: //... int lastNum = duplicate.remove(duplicate.size()-1); return lastNum + calculateSumArrayListHelper(duplicate);

Member Avatar for curiousgeorgem
0
3K
Member Avatar for Krokcy

So i have a working network file transfer program now (if you want to see some of the code look at my other '[article](http://www.daniweb.com/software-development/java/threads/426357/networking-in-java-not-doing-it-right)'). But now that im trying larger files, im running into a problem where i run out of memory (which is understandable when the array is 1 …

Member Avatar for Krokcy
0
4K
Member Avatar for 47pirates

Not sure this is what you want. Your question isn't very well explained. public void actionPerformed(ActionEvent e) { if(e.getSource() == JTable()) { JButton.doClick(); } }

Member Avatar for Zaad
-1
212
Member Avatar for godzab

JFrame.isActive() Test should be returned false if the frame has been disposed!

Member Avatar for NormR1
0
690
Member Avatar for Gen.Asura

We use [Java in Two Semesters](http://www.amazon.co.uk/Java-Two-Semesters-Quentin-Charatan/dp/0077122674/ref=sr_1_1?ie=UTF8&qid=1340640603&sr=8-1) at my university. Its really good, albeit abit slow but thats good for newcomers:) It covers alot of the basic conecpets of programming plus a good amount of the java framework!

Member Avatar for Krokcy
0
128
Member Avatar for enakta13

You an use the two methods James gave you to accomplish that: if(e.getSource() == aButton) { //get text already in your text field //add a to that //put text back in text field }

Member Avatar for Krokcy
0
290
Member Avatar for Krokcy

EDIT: Im an idiot. The hand-shake like mechanic i put in where the server waits for the client to respond was the reason it was so slow, removed it and it worked. I misunderstood/forgot how streams work.. Ok. So i just started learning how to use the network utility there …

0
428
Member Avatar for pendo826

As far as i can tell this code just returns the key three times? : for(Map.Entry<String, Employee> theEntry : map.entrySet()) { System.out.println("Employee Name:\t" + theEntry.getKey()); System.out.println("Employee Id:\n" + theEntry.getKey()); System.out.println("E-mail:\n" + theEntry.getKey()); } If you want to get the information you need to call it through the Employee object ie. …

Member Avatar for Krokcy
0
188
Member Avatar for Krokcy

Is there anyway, through java, to tell whether a tv connected to your computer is turned on or off? Or if its not build into java is there any way to even do this in windows? Because nothing change in windows or my raedeon driver when i turn my tv …

Member Avatar for Krokcy
0
282
Member Avatar for mehnihma

Without reading all of the code, you cant change a variable/object from another class when you declare it as 'private'. If you declare it as 'protected' you should be able. protected JRadioButton jrbError;

Member Avatar for mehnihma
0
224
Member Avatar for shean1488

Not sure if this is what you want, but its a tutorial of how to get the memory used by an object: http://www.roseindia.net/javatutorials/determining_memory_usage_in_java.shtml

Member Avatar for shean1488
0
333
Member Avatar for Mbot

Could you post the code where you are calling this method? its sounds to me like the problem would be there, since the highlightning is working, just not stopping.

Member Avatar for Mbot
0
289
Member Avatar for andy8521

Im a first year univeristy programming(Computing) student. The core book in my java class is: *Quetin Charatan and Aaron Kans: Java in two semsters. Third edition* Its really quite good if you are new to object oriented programming aswell. If you have done c++, c# or the like before quessing …

Member Avatar for Krokcy
0
270
Member Avatar for joankim

You should start your for loop counter at 0. Not only because your for loop doesnt quite work as it is now, it raises to a power one less than what the user asks for. But also because its good coding practice!

Member Avatar for NormR1
0
2K
Member Avatar for Krokcy

Im creating a banking system for a university assignment. Basically I have been struggling with encrypting user data. Its a first year assignment (in a 3 year bachelor) please bear this in mind when commenting x))) [CODE] //The constructor sets the global veriable key to a user defined value. //The …

Member Avatar for stultuske
0
152
Member Avatar for Krokcy

Oka. So i have this rather simple program, basically i want it to be able to count the number of hours it has been open. My problem is that i am trying to use [CODE]import java.util.date; Calendar calendar = Calendar.getInstance();[/CODE] And apperently this does not update after the program has …

Member Avatar for Krokcy
0
189
Member Avatar for Krokcy

Hey! I just startet fildeling around with c++ a week or so ago. I have some experience in Java and python. Anyways, i wanted to make this simple hangman game; [code] #include <cstdlib> #include <iostream> #include <string> #include <fstream> using namespace std; void exit(int exitcode); char hus[] = {'h', 'u', …

Member Avatar for VernonDozier
0
1K

The End.