Search:
Type: Posts; User: keang
Search:
Search took 0.41 seconds; generated 39 minute(s) ago.
-
April 21st, 2014, 06:22 AM
Check out this thread http://www.coderanch.com/t/341679/GUI/java/Printing-res-dpi-images
-
April 11th, 2013, 04:16 AM
You're best bet is to look at the JGraph website.
-
April 10th, 2013, 12:04 PM
Cross posted at http://www.coderanch.com/t/608923/java/read-txt-file-jtable
-
April 10th, 2013, 11:59 AM
I think you can do this sort of thing with JGraph which is freely available.
-
March 13th, 2013, 10:55 AM
That information has nothing to do with what you are doing with the data, it's in the excel spreadsheet and will get loaded by the excel library. Is it POI you are using?
Try loading the excel...
-
March 13th, 2013, 05:08 AM
That depends on how it is stored on disk and how the library is designed. But in all probability yes it will take up far more space because spreadsheets are complex things. For example each cell...
-
March 12th, 2013, 04:59 AM
Have you tried loading several different size spreadsheets to see how the memory usage changes. You will possibly find a chunk of that 40Mb is a fixed overhead for using the library and so a doubling...
-
March 11th, 2013, 11:49 AM
You aren't calling the methods that add the icons and you in those methods you aren't adding the JLabels containing the icons to the container.
BTW I'm not sure about your code, you seem to be...
-
March 11th, 2013, 11:44 AM
No, removing all references to an object allows it to be garbage collected but there is no guarantee it will be. Whether or not the garbage collector runs and if it does whether or not it collects a...
-
February 18th, 2013, 08:30 AM
Create a StringReader for the string containing unicode escape sequences and then use the read() method to read it in. I think that will convert them to their real characters. If not try this code:
...
-
February 16th, 2013, 04:41 AM
Try the swing tutorial:
http://docs.oracle.com/javase/tutorial/uiswing/components/dialog.html
-
February 15th, 2013, 04:55 PM
Why not code your own JDialog that has the two input fields in it.
-
February 15th, 2013, 04:53 PM
Not sure about MS Access but there are other databases such as Apache Derby which you can bundle with your app and so you don't even need the user to have a database installed.
-
February 15th, 2013, 04:49 PM
Just read it in with a FileReader. It will automatically convert unicode notation to a character ie \u003e to '>' for you.
-
February 7th, 2013, 11:24 AM
public boolean hallIsClear()
{
boolean noItems = true;
for (int i = 0; i<hall.length; i++)
{
if (hall[i]>0)
noItems = false;
}
return noItems;
}
-
February 7th, 2013, 11:22 AM
public boolean hallIsClear()
{
boolean noItems = true;
for (int i = 0; i<hall.length; i++)
{
if (hall[i]>0)
noItems = false;
}
return noItems;
}
-
February 7th, 2013, 07:56 AM
/**
* if there are any items on the current tile, then one items is removed
* if there are more item on current tile, then robot remains facing same direction
* if no more item exist on current...
-
February 6th, 2013, 11:22 AM
Forget trying to get this code working, it just isn't the way to solve this problem.
You need to separate the questions and answers from the GUI components. You need a single GUI class that has a...
-
February 6th, 2013, 11:13 AM
I'm not 100% clear on what you are doing or why your main method keeps on creating new Robots but doesn't reset the values in the hall array which will be zeroed by the first Robot.
Can you explain...
-
February 6th, 2013, 11:04 AM
Or better still use an enum.
-
January 29th, 2013, 05:30 PM
Your program is only outputting the values in the text fields and so the rest of the file will be lost. You need to write out the values for the whole file.
-
January 29th, 2013, 05:25 PM
Hexagons hex = new Hexagons(this, rows, cols, hexWidth, hexHeight);
should be:
Hexagons hex = new Hexagons(this, row, col, hexWidth, hexHeight);
-
January 2nd, 2013, 10:51 AM
We don't write code to order but we will guide you if you want to do it yourself and it's not that hard a task.
EDIT: Ignore the paragraph below - I mis-read your post and thought you wanted to...
-
January 2nd, 2013, 05:17 AM
I've been coding in Java pretty much since it first came out in 1996 but was writing code in other languages for about 16 years before that.
-
January 1st, 2013, 05:02 PM
Glad to hear you have sorted it.
The line of code I provided was for insertion into your program at the start of the main method. It will print out the fully qualified path for the directory =...
|
Click Here to Expand Forum to Full Width
|