Search Results

Showing results 1 to 40 of 45
Search took 0.01 seconds.
Search: Posts Made By: Grub ; Forum: Java and child forums
Forum: Java May 22nd, 2009
Replies: 0
Views: 694
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: Java Apr 2nd, 2009
Replies: 5
Views: 539
Posted By Grub
Oh, I also tried it in single quotes but with the same result.
Forum: Java Apr 2nd, 2009
Replies: 5
Views: 539
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: 539
Posted By Grub
Forum: Java Mar 31st, 2009
Replies: 5
Views: 539
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: 885
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: 885
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: Java Dec 11th, 2008
Replies: 2
Views: 390
Posted By Grub
Forum: Java Dec 11th, 2008
Replies: 2
Views: 390
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: Java Dec 9th, 2008
Replies: 5
Views: 3,111
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: 3,111
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,148
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,148
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,148
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,148
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: 530
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,222
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,222
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,222
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: 590
Posted By Grub
Your comments are very much appreciated.

I thank you all.
Forum: Java Oct 27th, 2008
Replies: 7
Views: 590
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: 590
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: 590
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,407
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,407
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,407
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,407
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,273
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: 530
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: 989
Posted By Grub
Forum: Java Oct 7th, 2008
Replies: 7
Views: 989
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: 989
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...
Forum: Java Oct 7th, 2008
Replies: 7
Views: 989
Posted By 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. ...
Forum: Java Oct 6th, 2008
Replies: 1
Views: 353
Posted By 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...
Forum: Java Nov 23rd, 2007
Replies: 3
Views: 1,297
Posted By Grub
Many thanks. This thread is closed.
Forum: Java Nov 22nd, 2007
Replies: 3
Views: 1,297
Posted By 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...
Forum: Java Nov 20th, 2007
Replies: 3
Views: 1,093
Posted By Grub
It is precisely what I have done. But if something is say 45 pence. And I had earlier inserted 2 pounds and a fifty pence piece only. Then it takes the 2 pound I would rather the machine took the...
Forum: Java Nov 20th, 2007
Replies: 3
Views: 1,093
Posted By 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....
Forum: Java Nov 20th, 2007
Replies: 10
Views: 3,970
Posted By Grub
I am afraid the requirement is only through the java code. the logic eludes me.
Forum: Java Nov 19th, 2007
Replies: 10
Views: 3,970
Posted By Grub
Sorry, my question is, how do I compare the integer values (price) of the houses to a user defined integer and determine which has the closest value to the user defined integer.
Showing results 1 to 40 of 45

 


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

©2003 - 2009 DaniWeb® LLC