Total members 10261 | Gratitudes |It is currently Wed May 23, 2012 9:06 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 6 posts ] 
Author Question
 Question subject: JavaFX Favorites
PostPosted: Wed Jan 26, 2011 8:09 pm 
Offline
Newbie
User avatar

Joined: Wed Jan 26, 2011 8:06 pm
Posts: 5
Has thanked: 0 time
Have thanks: 0 time

Hi,

I`m totally newbie in JavaFX, however my teacher require me, that I create a program with JavaFX that will display Internet Explorer Favorites web pages ?

Any Idea how can I make this program?

Sry, for my bad english


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: JavaFX Favorites
PostPosted: Thu Jan 27, 2011 9:05 am 
Offline
Newbie
User avatar

Joined: Wed Jan 26, 2011 8:06 pm
Posts: 5
Has thanked: 0 time
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


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: JavaFX Favorites
PostPosted: Thu Jan 27, 2011 2:08 pm 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 2279
Location: Earth
Has thanked: 39 time
Have thanks: 61 time
dir ?

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: JavaFX Favorites
PostPosted: Thu Jan 27, 2011 5:19 pm 
Offline
Newbie
User avatar

Joined: Wed Jan 26, 2011 8:06 pm
Posts: 5
Has thanked: 0 time
Have thanks: 0 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 [];

}


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: JavaFX Favorites
PostPosted: Fri Jan 28, 2011 3:19 am 
Offline
Newbie
User avatar

Joined: Wed Jan 26, 2011 8:06 pm
Posts: 5
Has thanked: 0 time
Have thanks: 0 time
Yes, thx


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: JavaFX Favorites
PostPosted: Fri Jan 28, 2011 7:55 am 
Offline
Newbie
User avatar

Joined: Fri Jan 28, 2011 7:50 am
Posts: 1
Has thanked: 0 time
Have thanks: 0 time
:beee: java


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 6 posts ] 
Quick reply


  

 Similar topics
 Create new file with JavaFX
 JavaFX help

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: Google Adsense [Bot] and 1 guest



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team