Forum: Java May 22nd, 2009 |
| Replies: 0 Views: 694 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 Oh, I also tried it in single quotes but with the same result. |
Forum: Java Apr 2nd, 2009 |
| Replies: 5 Views: 539 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 |
Forum: Java Mar 31st, 2009 |
| Replies: 5 Views: 539 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 Views: 885 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 Views: 885 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 |
Forum: Java Dec 11th, 2008 |
| Replies: 2 Views: 390 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 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 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 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 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 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 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 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 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 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 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 Your comments are very much appreciated.
I thank you all. |
Forum: Java Oct 27th, 2008 |
| Replies: 7 Views: 590 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 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 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 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 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 "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 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 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 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 Many Thanks
It has worked |
Forum: Java Oct 7th, 2008 |
| Replies: 7 Views: 989 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 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 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 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 Many thanks. This thread is closed. |
Forum: Java Nov 22nd, 2007 |
| Replies: 3 Views: 1,297 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 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 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 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 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. |