Rakoczi Markus

Greenhorn
+ Follow
since Mar 13, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rakoczi Markus

Thanks for all your replies, it was a great help to me!
10 years ago
No, the Node class doesn't have any superclass (except the Object), and the getData() method returns a String.
10 years ago
Hello,

I need to create a Node class for a binary tree with String data, here follows my class



I got the following hints on the commented line

cannot find symbol
symbol: method compareTo(Object)
location: variable data of type String
where String is a type-variable:
String extends Object declared in class Node
----
(Alt-Enter shows hints)


the error at compile time is:
error: cannot find symbol return this.data.compareTo(((Node)_otherNode).getData());
symbol: method compareTo(Object)
location: variable data of type String where String is a type-variable: String extends Object declared in class Node


what's wrong with my code?

10 years ago
Hello,

my question is about GC.
Suppose I have an acyclic double linked list like: Start<->A<->B<->C<-> ... <->NULL. If I set Start->Null, will be the rest of the list eligible for garbage collection or not?
What happens if I have a circular linked list? Should I set each object next and prev to null to be eligible for garbage collection?

Thanks.
11 years ago
Hello,
i think you should wrap in an Anchor pane and bind it to the margins.
11 years ago
There are files in the .mozilla folder where you don't have access or maybe they are temporary in the Cache folder . (Actually if I stop Firefox the program doesn't give error on .mozilla folder).
The solution was to handle the java.nio.file.NoSuchFileException
11 years ago
Thanks for everyone, problem solved!
11 years ago

surlac surlacovich wrote:

Rakoczi Markus wrote:
my problem is when i start the program it visits only 5 directories with it's subdirectories, but in my /home folder there are much more directories.
What's wrong with my implementation?


There must be no files in "home" folder and it's subfolders.



Sorry, but what do you mean by "no files in home folder and it's subfolders" ?

@Mansukhdeep Thind

Here is a picture with folder content :


In the source code on my computer of course the path is "/home/myUserName" and the screenshot as well.

only the folders below are visited
.thumbnails
.macromedia
Workspace
.netbeans
.mozilla

in .mozilla folder at one point i get the following ERROR:

java.nio.file.NoSuchFileException: /home/myUserName/.mozilla/firefox/mwad0hks.default/lock
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:143)
at sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:96)
at java.nio.file.Files.readAttributes(Files.java:1675)
at java.nio.file.Files.size(Files.java:2264)
at test_files.Test_Files$1.visitFile(Test_Files.java:36)
at test_files.Test_Files$1.visitFile(Test_Files.java:32)
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:135)
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:199)
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:199)
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:199)
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:199)
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:69)
at java.nio.file.Files.walkFileTree(Files.java:2591)
at java.nio.file.Files.walkFileTree(Files.java:2624)
at test_files.Test_Files.main(Test_Files.java:32)




11 years ago
Hello,

i have the following code:



my problem is when i start the program it visits only 5 directories with it's subdirectories, but in my /home folder there are much more directories.
What's wrong with my implementation?
11 years ago
Hello

I not experienced with regex expresions, and i want to check if a textfield contains white spaces, so i read the textfield content and matches with a regex expression
for example:



is my regex expression complete enough to check for any posibile white space content?

Thanks.
11 years ago
Thank you, thank you - it's working.
11 years ago
Hello,

i have a program that should load images from a selected folder and add them to a TilePane, all the loading process it's made within a Task. My problem is when the image loading thread want's to access the TilePane it stops. How should i implement this to work well and fast with folders where there are up to 50-60 images each one more than 2 MB.

11 years ago
Hello,

i want to create a small image file browser (using java swing) that outputs image thumbnails in one of the window area (the green area in the attached picture). What would be the proper swing component, to implement the respectiv area JTable or JPanel with JButtons, any other suggestion?
I want to implement operations like select, right click with mouse, or change color when the cursor is on the thumbnail.
11 years ago