Total members 11895 |It is currently Sat Dec 28, 2024 3:40 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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

Any Idea how can I make this program?

Sry, for my bad english




Author:
Newbie
User avatar Posts: 5
Have thanks: 0 time

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

pls, Help me


Author:
Newbie
User avatar Posts: 5
Have thanks: 0 time

dir ?

_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time

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 [];

}



Author:
Newbie
User avatar Posts: 5
Have thanks: 0 time

Yes, thx


Author:
Newbie
User avatar Posts: 5
Have thanks: 0 time
Post new topic Reply to topic  [ 5 posts ] 

  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?     -  
 help for making web pages using servlets     -  
 Mapping JSPs pages     -  
 How can I enable session tracking for JSP pages if the brows     -  
 multi-frameset and non-re-sizable html frame pages     -  
 display list     -  
 SEVEN SEGMENT DISPLAY     -  



Topic Tags

Java FX
cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com