Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

JavaFX Program to display IE Favorites web pages

Wed Jan 26, 2011 8:09 pm

Program with JavaFX that will display Internet Explorer Favorites web pages ?

Any Idea how can I make this program?

Sry, for my bad english



Re: JavaFX Favorites

Thu Jan 27, 2011 9:05 am

Has anybody know with what command I can get all directory files names ?
I can`t find in tutorials.

pls, Help me

Re: JavaFX Favorites

Thu Jan 27, 2011 2:08 pm

dir ?

Re: JavaFX Favorites

Thu Jan 27, 2011 5:19 pm

Ok, I do it, now I wanted that will show only fdile name, not all directory
Code:
import javafx.stage.Stage;

import javafx.scene.Scene;
import javafx.scene.paint.Stop;
import javafx.scene.paint.Color;
import javafx.scene.effect.DropShadow;
import javafx.scene.paint.LinearGradient;
import java.lang.System;

import com.javafx.preview.control.TreeItem;
import com.javafx.preview.control.TreeItemBase;
import com.javafx.preview.control.TreeView;
import java.io.*;
import java.lang.String;



var w = 500;
var h = 300;

var tree = TreeView {
        effect:DropShadow{offsetY:3 offsetX:3}
    root: TreeItem {

        def home_name = System.getProperty("user.name");
        data: new File("C:/Documents and Settings/{home_name}/Favorites")
        expanded:false
        //isLeaf: isLeaf
        createChildren: createChildren;
    }
}



function createChildren(item:TreeItemBase):TreeItemBase[] {
    def file = item.data as File;

    if (file.isDirectory()) {
        return for (f in file.listFiles())
        {
           
            TreeItem {

                var xz = f.split("/"); // <-- this wont work
                data: xz[1];

                createChildren: createChildren;
                //isLeaf: isLeaf;

            }
        }

    }
   
    return [];

}


Re: JavaFX Favorites

Fri Jan 28, 2011 3:19 am

Yes, thx

Post a reply
  Related Posts  to : JavaFX Program to display IE Favorites web pages
 Need Java program for display the CPU usage     -  
 What is JavaFX     -  
 Create new file with JavaFX     -  
 How to design these JSP pages?     -  
 Mapping JSPs pages     -  
 help for making web pages using servlets     -  
 How can I enable session tracking for JSP pages if the brows     -  
 multi-frameset and non-re-sizable html frame pages     -  
 SEVEN SEGMENT DISPLAY     -  
 Here is how to display any 2d array     -  

Topic Tags

Java FX