Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
~7K People Reached
Favorite Forums
Favorite Tags
java x 45
c++ x 12
Member Avatar for skp888

hello, my problem is: i have a function that i pass a pointer to so that it can update a variable for me. when this function is called normally the variable updates and everything works fine. BUT when i call this function *as a seperate thread*, and pass it the …

Member Avatar for skp888
0
248
Member Avatar for Grub

Hi, I have a JTable with a tablecellrenderer I have extended from the defaultTableCellrenderer. In my Table model on which the table is based, I have an algorithm that searches each cell making comparisons, when it finds rows with similar values, it adds colour A to an arrayindex and continues …

0
94
Member Avatar for Grub

Hi, I would like to know if it is possible to link files to one another. If so how do I go about doing so or better may you point me to some reading material on how it can be done. Many thanks

Member Avatar for Grub
0
112
Member Avatar for Grub

Hi. I am writing a mac program that among other things, allows a user to create unix links to files. Now I am using the runtime.exec() method to run the ls -s command e.g. ls -s dir1/fileName dir2/NewfileName This works but becomes difficult if the path name to the file …

Member Avatar for JamesCherrill
0
145
Member Avatar for Grub

Hi, I am sending a oval shaped ball across a screen and use the repaint() method controlled by a timer to move it. [ICODE]public class Court extends JFrame implements Runnable { private int x = 10; private int y = 200; private int r = 3; /** Creates new form …

Member Avatar for Grub
0
148
Member Avatar for Grub

Hi, I am trying to create a symbolic link from one dir to another. However, from the command terminal, I type the entire dir path e.g. ln -s full/dir/path 2/filename full/dir/path/linkName I then get an error informing me that the destination does not exist. I removed the linkName so I …

Member Avatar for zsaltzberg
0
108
Member Avatar for Grub

Hi, is there a place from where I can get or read up on the C ++ standard library for the mac? Something similar to Sun's java documentation. I am looking for GUI libraries and others such as handling files not opening for streaming but to get attributes of files …

Member Avatar for Salem
0
102
Member Avatar for Grub

Hi is it possible to get the file creation date of files on the mac using c++? If so, may you assist me on how do I go about doing so? Many thanks

Member Avatar for Grub
0
352
Member Avatar for Grub

Hi It is possible to execute terminal commands in java, but is it possible to then get the output or result of the terminal command as input into a java program? If so, may someone tell me how or point to materials that I can read. Many thanks

Member Avatar for Grub
0
189
Member Avatar for Grub

Hi is there a way of getting a file creation Date for a file class object? I am trying to do so on a mac. Many thanks

Member Avatar for Grub
0
253
Member Avatar for Grub

Hi, I am writting code for a Jtable. Now in this Jtable I list file files based on different attributes, including CRC Hash. Now I have a table that has 6 columns. the data Model extends the Abstract data Model. In my data Model I have two particular methods for …

Member Avatar for quuba
0
178
Member Avatar for Grub

Hi. I am attempting to update a Jtable with details of all the files on my computer. I am running Windows XP home edition version 2002 with service pack 3. Intel(R) pentium(R) 4 CPU 3.20 GHz [ICODE] for (int i = 0; i<r.size(); i++) { Vector v = new Vector(); …

Member Avatar for Grub
0
77
Member Avatar for Grub

Hi I have a program that finds duplicate files and lists them in a Jtable. I have modified the default Table Renderer to change the colour of the cells but I want them to have more than two colours. Say Blue for the first set of say 5 files all …

Member Avatar for Grub
0
2K
Member Avatar for Grub

I have a .jar file; in this .jar file I have many .class files but no .java files for these class files. Is it possible to add functionality to the program? If so how?

Member Avatar for Grub
0
120
Member Avatar for Grub

Hi, Is it possible to compare files by hash code? If so how do I do this. I am attempting to locate duplicates. Simply calling the file.sashCode() generates a hash code but if a duplicate file is located the hash code if different, depending on name and location. Naturally you …

Member Avatar for ~s.o.s~
0
1K
Member Avatar for Grub

Hi I have a program that has a JTree that lists of all the directories on my computer. I also have a JList in and an add button. Now I am trying to select or highlight a directory in the JTree, click the add Button and then update the JList …

Member Avatar for brianlevine
0
320
Member Avatar for Grub

Hi I have stored File objects in a vector. Now I which to call the methods of the file objects stored in the Vector. Unlike C++ you cannot simply refer to the vector by index e.g. vector[i].getAbsolutPath() nor can you simply call vector.elementAt(i).getAbsolutePath(); I have made a File[] array = …

Member Avatar for Grub
0
114
Member Avatar for Grub

Hi. The program I am writing is for a mac and am doing so in Java. I am writing a program that finds Identical files or very similar files, not necessarily identical but very Similar. Now I can thus far compare files by name but some files are identical but …

Member Avatar for javaAddict
0
124
Member Avatar for Grub

Hi, I have the following class and main method: [code=cplusplus] class Employee { vector<string> v; string name; int i; public: Employee(){} Employee(string &n): name(n), i(0){} void read(vector<string *> &vec) { string n; for(int i = 0; i !=3; i++) { cin>>n; Employee e(n); vec.push_back(&n); } } }; int main() { …

Member Avatar for Grub
0
262
Member Avatar for Grub

Hi, I have written a Solitaire game program and have made a history of moves so the user may either go back on moves and make another choice or go forward after having gone back. Now I am using a vector to store the moves. When the user has made …

Member Avatar for Jim Larkin
0
154
Member Avatar for Grub

I am writting a program that makes use of a vector of objects. Every time I add an object the windows system encounters a problem and needs to be closed. [code=c++] #include<iostream> #include<fstream> #include<string> #include<vector> using namespace std; class Catalogue { public: string vendor; string item; float price; int code; …

Member Avatar for Grub
0
94
Member Avatar for Grub

Hi, I am trying to display my floating point values as money in a machine. Now When I display the value 0.60, the zero is omitted from the end and as such is displayed as 0.6. I need to display it as 0.60. Many thanks in advance.

Member Avatar for Grub
0
83
Member Avatar for Grub

Hi I am creating a house search programme. the objective of this programme is to sell houses within a range specified by the potential buyer. Now the buyer would type in the amount he is willing to spend and the houses closest to this range should be presented to him/her …

Member Avatar for Ezzaral
0
106
Member Avatar for Grub

Hi I am doing a vending Machine application. Now I can insert denominations from 5 10 20 50 1pound and 2 pounds. Is there a way of filtering the most efficent coin combination to pay for the snack. e.g. I have a snack for 45 pence. I insert 2 pounds …

Member Avatar for masijade
0
101
Member Avatar for Grub

Hi I am creating a vending machine application that takes coins. It takes 5p, 10p 20p 50p £1 and £2 coins. Now I need to keep track of all the coins when inserted e.g. if I insert 2 pounds in 5p coins. When I chose to refund the money I …

Member Avatar for Ezzaral
0
86
Member Avatar for Grub

Hi I am making an vending machine application. Now the vending Machine takes 5, 10, 20, 50 pence and 1 pound coins. Now I create a String object and use this to read input from the user i.e. read the denomination (Money e.g. 5 or 10 pence) the user enters. …

Member Avatar for eranga262154
0
83
Member Avatar for Grub

Hi, I am wondering if there is a more graceful manner in which to clear the console window previously printed values apart from using a loop in which the println(); is repeated. Many thanks.

Member Avatar for jwenting
0
68
Member Avatar for Grub

Hi, I have a project on which I am working. I have two classes. A box Class which is of an undefined capacity and is only defined when an instance of the box class is made and I have an item class of which instances of it must be stored …

Member Avatar for masijade
0
80