Search Results

Showing results 1 to 40 of 60
Search took 0.01 seconds.
Search: Posts Made By: Grub
Forum: C++ 12 Days Ago
Replies: 2
Views: 194
Posted By Grub
May you post the code?
Forum: Java May 22nd, 2009
Replies: 0
Views: 594
Posted By 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...
Forum: OS X Apr 3rd, 2009
Replies: 2
Views: 923
Posted By Grub
sorry solved this a long time ago.
Forum: Java Apr 2nd, 2009
Replies: 5
Views: 535
Posted By Grub
Oh, I also tried it in single quotes but with the same result.
Forum: Java Apr 2nd, 2009
Replies: 5
Views: 535
Posted By Grub
Hi,

I was haste in marking as solved.

The idea of enclosing the respective paths in double quotes works when doing directly into the terminal, but from a java program using the ...
Forum: Java Apr 1st, 2009
Replies: 5
Views: 535
Posted By Grub
Forum: Java Mar 31st, 2009
Replies: 5
Views: 535
Posted By 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...
Forum: Java Feb 5th, 2009
Replies: 2
Solved: repaint()
Views: 811
Posted By Grub
So I have used a JPanel and a JFrame and paint() the JFrame as well! This has worked.

Many thanks
Forum: Java Feb 4th, 2009
Replies: 2
Solved: repaint()
Views: 811
Posted By Grub
Hi, I am sending a oval shaped ball across a screen and use the repaint() method controlled by a timer to move it.
public class Court extends JFrame implements Runnable
{

private int x = 10;...
Forum: OS X Jan 7th, 2009
Replies: 1
Views: 581
Posted By 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
...
Forum: C++ Dec 13th, 2008
Replies: 1
Views: 368
Posted By 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...
Forum: C++ Dec 12th, 2008
Replies: 4
Views: 1,269
Posted By Grub
Magic, thank you very much.
Forum: C++ Dec 12th, 2008
Replies: 4
Views: 1,269
Posted By Grub
Many thanks for your contribution. Please may you explain it. I would rather understand than simply copy and paste. Please if you do not mind.

Many thanks.
Forum: C++ Dec 12th, 2008
Replies: 4
Views: 1,269
Posted By 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
Forum: Java Dec 11th, 2008
Replies: 2
Views: 375
Posted By Grub
Forum: Java Dec 11th, 2008
Replies: 2
Views: 375
Posted By 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...
Forum: OS X Dec 10th, 2008
Replies: 2
Views: 923
Posted By 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...
Forum: Java Dec 9th, 2008
Replies: 5
Views: 2,974
Posted By Grub
Many thanks for the replies.

I have tried this

String creationDate = NativeInterface.nativeFileCreationDate(file.getAbsolutePath()); return creationDate;

it then throws a :...
Forum: Java Dec 9th, 2008
Replies: 5
Views: 2,974
Posted By 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
Forum: Java Nov 28th, 2008
Replies: 6
Views: 1,064
Posted By Grub
Results model class

class ResultsModel extends AbstractTableModel implements Comparator {

private List data;
private List plugins;
private List markedList;
...
Forum: Java Nov 28th, 2008
Replies: 6
Views: 1,064
Posted By Grub
Yes I shall do so when I get home. Also I have system.out.println(row); in the renderer class and the value of row ascends as normal by 1 but when it gets to 11 it then reverts back to 0, throwing...
Forum: Java Nov 28th, 2008
Replies: 6
Views: 1,064
Posted By Grub
Yes. The initial try catch handles this as there is no row the first time the table comes into existence. There after it works as normal until the last row that can be seen within the scrollpane...
Forum: Java Nov 26th, 2008
Replies: 6
Views: 1,064
Posted By 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...
Forum: Java Nov 17th, 2008
Replies: 2
Views: 525
Posted By Grub
Sorry, No information was given, it simply stopped. It did not throw an exception or anything at all. I have since rewritten the the code to make comparisons outside of the vector but I never got a...
Forum: Java Oct 30th, 2008
Replies: 4
Views: 3,058
Posted By Grub
Indeed, I am using the defaultTableModel. I will see how I may write my own so as to meet my objective. While it works, I am still not happy with it.

Many thanks for your help.
Forum: Java Oct 30th, 2008
Replies: 4
Views: 3,058
Posted By Grub
All the examples seemingly require that you get a value from a cell which is checked in the

getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean...
Forum: Java Oct 29th, 2008
Replies: 4
Views: 3,058
Posted By 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...
Forum: Java Oct 27th, 2008
Replies: 7
Views: 586
Posted By Grub
Your comments are very much appreciated.

I thank you all.
Forum: Java Oct 27th, 2008
Replies: 7
Views: 586
Posted By Grub
The question was is it possible? I never once implied I intended to do so. Is it possible to add functionality, if so under waht circumstance and how.

From what I can deduce from the replies,...
Forum: Java Oct 27th, 2008
Replies: 7
Views: 586
Posted By Grub
The problem is, I am not the author of the original and as such have not clue as to what methods the classes have and in which class.
Forum: Java Oct 27th, 2008
Replies: 7
Views: 586
Posted By 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?
Forum: Java Oct 22nd, 2008
Replies: 11
Views: 2,280
Posted By Grub
OK.

Say I have File1.txt with contents being "ABC".
Then I have File2.txt with contents being "ABC" different is the name only, yes. Both in dir A.

Then I have File1.txt in another dir say B...
Forum: Java Oct 21st, 2008
Replies: 11
Views: 2,280
Posted By Grub
What I am attempting to do is identify duplicate files. When I say duplicate I mean both 100% identical and those that are not necessarily 100% identical e.g. one file may have a different...
Forum: Java Oct 21st, 2008
Replies: 11
Views: 2,280
Posted By Grub
"computing and comparing the md5 checksum" This would mean that any change in the file no matter how small would change the md5 checksum. I do not think this would do. The comparison needs to be so...
Forum: Java Oct 20th, 2008
Replies: 11
Views: 2,280
Posted By 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...
Forum: Java Oct 14th, 2008
Replies: 1
Views: 2,151
Posted By 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,...
Forum: Java Oct 12th, 2008
Replies: 2
Views: 525
Posted By 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

...
Forum: Java Oct 8th, 2008
Replies: 7
Views: 956
Posted By Grub
Forum: Java Oct 7th, 2008
Replies: 7
Views: 956
Posted By Grub
How about Simply calling the New File[vector.size()] to resize the array every time the vector size either increases or decreases? Is resizing an array in such a fashion bad practice or something...
Forum: Java Oct 7th, 2008
Replies: 7
Views: 956
Posted By Grub
Many thanks for your attempt but even that does not work. The compiler objects to not knowing the method. I have tried more File methods like getName, length() and lastModified() all of which cannot...
Showing results 1 to 40 of 60

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC