Content visibility problem JavaFX TableView.

Hello!
I wrote a simple code to display the table with "data". There are also some TextFields and add the touch that takes the text of TextFields and adds it to the Table in a new line.
I have this problem that the table is correctly adding new lines, but it does not show its contents (the boxes are empty) and I have no idea where the problem is. Can anyone help?
Thanks in advance,
Filip
package javafxtable;

import javafx.application.Application;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.Event;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.control.cell.PropertyValueFactory;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.HBox;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
/**
 *
 * @author Filip Kania
 * [email protected]
 */

public class JavaFXTable extends Application {
 
        public class Product{
// creating fields for the Product class
        //ID integer
        private SimpleIntegerProperty id;
        //name String
        private SimpleStringProperty name;
        //quantity Integer
        private SimpleIntegerProperty quantity;
        //price per unit Double
        private SimpleDoubleProperty unitPrice;
        //summary price double
        private SimpleDoubleProperty sumPrice;
        
        public Product(int id2, String name2, int quantity2, double unitPrice2){
            this.id = new SimpleIntegerProperty(id2);
            this.name = new SimpleStringProperty(name2);
            this.quantity = new SimpleIntegerProperty(quantity2);
            this.unitPrice = new SimpleDoubleProperty(unitPrice2);
            this.sumPrice = new SimpleDoubleProperty(quantity2*unitPrice2);
        }
        //Getters and setters for the Product
        private String getName(){
            return name.get();
        }
        private int getID(){
            return id.get();
        }
        private int getQuantity(){
            return quantity.get();
        }
        private double getSumPrice(){
            return sumPrice.get();
        }
        private double getUnitPrice(){
            return unitPrice.get();
        }
        private void setName(String name){
            this.name.set(name);
        }
        private void setQuantity(int quantity){
            this.quantity.set(quantity);
        }
    }
 
 //fields for the JavaFXTable class
    private TableView<Product> table  = new TableView<Product>();
    private final ObservableList<Product> data = FXCollections.observableArrayList(
            new Product((int)1,"Sample1",(int)5,(double)19.99),
            new Product((int)2,"Sample2",(int)3,(double)75.99),
            new Product((int)3,"Sample3",(int)12,(double)3.49)
        );
    private TextField idT, nameT, quantityT, priceT;
          
        
    @Override
    public void start(Stage stage) {
        //title of main frame
        stage.setTitle("JavaFX TableView");
        //size of main frame
        stage.setWidth(750);
        stage.setHeight(430);
        
        //main group for the stage
        Group root = new Group();
        
        //main scene for the main group
        Scene scene = new Scene(root,Color.SILVER);
        
        //creating ID column and setting preffered width
        TableColumn id = new TableColumn("ID: ");
        id.setPrefWidth(50);
        id.setCellValueFactory(new PropertyValueFactory<Product,String>("id"));
        
        //creating name column and setting preffered width
        TableColumn name = new TableColumn("Name: ");
        name.setPrefWidth(150);
        name.setCellValueFactory(new PropertyValueFactory<Product,String>("name"));
        
        //creating all other columns with default width
        TableColumn quantity = new TableColumn("Quantity: ");
        quantity.setCellValueFactory(new PropertyValueFactory<Product,String>("quantity"));
        //mother column for prices
        TableColumn price = new TableColumn("Price");
        //unit price cooooolumn
        TableColumn unitPrice = new TableColumn("Per unit: ");
        unitPrice.setCellValueFactory(new PropertyValueFactory<Product,String>("unitPrice"));
        //summary price column
        TableColumn sumPrice = new TableColumn("Summary: ");
        sumPrice.setCellValueFactory(new PropertyValueFactory<Product,String>("sumPrice"));
        
        //adding unit and sum columns to price column
        price.getColumns().addAll(unitPrice, sumPrice);
        
        //setting preffered table size to the stage size
        table.setPrefSize(stage.getWidth()-250, stage.getHeight()-80);
         
        //TextFields for input data to table
        nameT = new TextField();
        nameT.setPrefWidth(80);
        quantityT = new TextField();
        quantityT.setPrefWidth(80);
        priceT = new TextField();
        priceT.setPrefWidth(80);
        idT = new TextField();
        idT.setPrefWidth(80);
        
        //GridPane for the TextFields to keep them nicely
        GridPane inputPane = new GridPane();
        inputPane.setHgap(10);
        inputPane.setVgap(10);
        inputPane.setPadding(new Insets(0,0,0,10));
        
        //putting TextFields and labels into GridPane
        inputPane.add((new Label("Name: ")),1,1);
        inputPane.add(nameT, 3,1);
        inputPane.add((new Label("ID: ")),1,2);
        inputPane.add(idT,3,2);
        inputPane.add((new Label("Price: ")),1, 3);
        inputPane.add(priceT,3,3);
        inputPane.add((new Label("Quantity: ")),1,4);
        inputPane.add(quantityT,3,4);
        
        //Creating button for adding data from textFields into table
        Button addBut = new Button("  Add  ");
        //EventHandler for button, while mouse clicked on it
        addBut.setOnMouseClicked(new EventHandler(){
            @Override
            public void handle(Event e){
                try{
                data.add(new Product(Integer.parseInt(idT.getText()),nameT.getText(),
                       Integer.parseInt(quantityT.getText()), Double.parseDouble(priceT.getText())));
                }
                catch(Exception ex){
                    System.out.println("Empty fields or illegal arguments passed.");
                }
            }
        });
        
        //adding button to GridPane
        inputPane.add(addBut, 1,6);
 
       //adding items to table
       table.setItems(data);
       
       //adding all columns to the tableView
        table.getColumns().addAll(id, name, quantity, price);       
        //crating VBox for whole thing
        HBox hBox = new HBox();
        hBox.setPadding(new Insets(10,10,10,10));
        hBox.getChildren().addAll(table, inputPane);
        
        //adding table to the main group
        root.getChildren().add(hBox);
               
        //setting scene as a stage Scene
        stage.setScene(scene);
        //showing the stage
        stage.show();
    }
    //launching
    public static void main(String[] args) {
        launch(args);
    }
}

Hello. The code below works. Check your property of product class definition.

import javafx.application.Application;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.event.Event;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.control.cell.PropertyValueFactory;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.HBox;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
/**
 *
 * @author Filip Kania
 * [email protected]
 */

public class JavaFXTable extends Application {

     public    class Product{
// creating fields for the Product class
        //ID integer
        private SimpleIntegerProperty id = new SimpleIntegerProperty() ;
        public SimpleIntegerProperty idProperty() {return id;}
        public void setId(Integer value){id.set(value);}
        public int getID(){return id.get();}

        private SimpleStringProperty name = new SimpleStringProperty() ;
        public SimpleStringProperty nameProperty() {return name;}
        public void setName(String value){name.set(value);}
        public String getName(){ return name.get();}

        private SimpleIntegerProperty quantity = new SimpleIntegerProperty();
        public SimpleIntegerProperty quantityProperty() {return quantity;}
        public void setQuantity(Integer value){quantity.set(value);}
        public int getQuantity(){return quantity.get();}

        //price per unit Double
        private SimpleDoubleProperty unitPrice = new SimpleDoubleProperty();
        public SimpleDoubleProperty unitPriceProperty() {return unitPrice;}
        public void setUnitPrice(Double value){unitPrice.set(value);}
        public Double getUnitPrice(){return unitPrice.get();}

        private SimpleDoubleProperty sumPrice = new SimpleDoubleProperty();
        public SimpleDoubleProperty sumPriceProperty() {return sumPrice;}
        public void setSumPrice(Double value){sumPrice.set(value);}
        public Double getSumPrice(){return sumPrice.get();}

         public Product(int id2, String name2, int quantity2, double unitPrice2){
            this.id = new SimpleIntegerProperty(id2);
            this.name = new SimpleStringProperty(name2);
            this.quantity = new SimpleIntegerProperty(quantity2);
            this.unitPrice = new SimpleDoubleProperty(unitPrice2);
            this.sumPrice = new SimpleDoubleProperty(quantity2*unitPrice2);
        }

    }

 //fields for the JavaFXTable class
    private TableView table  = new TableView();
    private final ObservableList data = FXCollections.observableArrayList(
            new Product((int)1,"Sample1",(int)5,(double)19.99),
            new Product((int)2,"Sample2",(int)3,(double)75.99),
            new Product((int)3,"Sample3",(int)12,(double)3.49)
        );
    private TextField idT, nameT, quantityT, priceT;

    @Override
    public void start(Stage stage) {
        //title of main frame
        stage.setTitle("JavaFX TableView");
        //size of main frame
        stage.setWidth(750);
        stage.setHeight(430);

        //main group for the stage
        Group root = new Group();

        //main scene for the main group
        Scene scene = new Scene(root,Color.SILVER);

        //creating ID column and setting preffered width
        TableColumn id = new TableColumn("ID: ");
        id.setPrefWidth(50);
        id.setCellValueFactory(new PropertyValueFactory("id"));

        //creating name column and setting preffered width
        TableColumn name = new TableColumn("Name: ");
        name.setPrefWidth(150);
        name.setCellValueFactory(new PropertyValueFactory("name"));

        //creating all other columns with default width
        TableColumn quantity = new TableColumn("Quantity: ");
        quantity.setCellValueFactory(new PropertyValueFactory("quantity"));
        //mother column for prices
        TableColumn price = new TableColumn("Price");
        //unit price cooooolumn
        TableColumn unitPrice = new TableColumn("Per unit: ");
        unitPrice.setCellValueFactory(new PropertyValueFactory("unitPrice"));
        //summary price column
        TableColumn sumPrice = new TableColumn("Summary: ");
        sumPrice.setCellValueFactory(new PropertyValueFactory("sumPrice"));

        //adding unit and sum columns to price column
        price.getColumns().addAll(unitPrice, sumPrice);

        //setting preffered table size to the stage size
        table.setPrefSize(stage.getWidth()-250, stage.getHeight()-80);

        //TextFields for input data to table
        nameT = new TextField();
        nameT.setPrefWidth(80);
        quantityT = new TextField();
        quantityT.setPrefWidth(80);
        priceT = new TextField();
        priceT.setPrefWidth(80);
        idT = new TextField();
        idT.setPrefWidth(80);

        //GridPane for the TextFields to keep them nicely
        GridPane inputPane = new GridPane();
        inputPane.setHgap(10);
        inputPane.setVgap(10);
        inputPane.setPadding(new Insets(0,0,0,10));

        //putting TextFields and labels into GridPane
        inputPane.add((new Label("Name: ")),1,1);
        inputPane.add(nameT, 3,1);
        inputPane.add((new Label("ID: ")),1,2);
        inputPane.add(idT,3,2);
        inputPane.add((new Label("Price: ")),1, 3);
        inputPane.add(priceT,3,3);
        inputPane.add((new Label("Quantity: ")),1,4);
        inputPane.add(quantityT,3,4);

        //Creating button for adding data from textFields into table
        Button addBut = new Button("  Add  ");
        //EventHandler for button, while mouse clicked on it
        addBut.setOnMouseClicked(new EventHandler(){
            @Override
            public void handle(Event e){
                try{
                data.add(new Product(Integer.parseInt(idT.getText()),nameT.getText(),
                       Integer.parseInt(quantityT.getText()), Double.parseDouble(priceT.getText())));
                }
                catch(Exception ex){
                    System.out.println("Empty fields or illegal arguments passed.");
                }
            }
        });

        //adding button to GridPane
        inputPane.add(addBut, 1,6);

       //adding items to table
       table.setItems(data);

       //adding all columns to the tableView
        table.getColumns().addAll(id, name, quantity, price);
        //crating VBox for whole thing
        HBox hBox = new HBox();
        hBox.setPadding(new Insets(10,10,10,10));
        hBox.getChildren().addAll(table, inputPane);

        //adding table to the main group
        root.getChildren().add(hBox);

        //setting scene as a stage Scene
        stage.setScene(scene);
        //showing the stage
        stage.show();
    }
    //launching
    public static void main(String[] args) {
        launch(args);
    }
}

Tags: Java

Similar Questions

  • Content visible .bar

    Developers who previously developed for meego or symbian know that the content of qml is visible by the decompression of the deb files or sis using certain tools. The two files are the installation for symbian and meego files. To protect the content, most of the developers will put in qrc qml so the qml is compiled in the binary instead of just packed along in Setup only files. Is this issue also affected blackberry Installer. bar.

    Yes, he does. BAR can be easily unpacked. QRC packaging is recommended. Also, keep in mind some of us, decompile the CDR files is not a big problem.

    Most important here is that BlackBerry is not really allow the download of BARs without control. If you distribute them, your problem.

  • How maintain "created content" visibility of the data despite my sorting preferences?

    I go to my account and choose "created content" to display in my details. However, when I sort the items by, say 'year' I lose all data "created content" until I got close the file and reopen it via 'my computer '. How can I solve this problem of sorting?

    Hey SweetNess0,

    Happen you to all folder locations

    This should not happen under normal circumstances.

    Please see if the problem persists in the two scenarios below.

    Scenario 1: Check in safe mode

    Just to cover all bases, test the behavior in safe mode. Safe mode starts Windows with a limited set of files and drivers. So if the problem is not reappear when you start in safe mode, you can eliminate the default settings and basic as possible cause device drivers.

    Reference: start your computer in safe mode

    Scenario 2: New user account

    If you have another user account, or better still, if you create a new user account, you can test this behavior in the other account. This will help determine if the problem is related to the corrupted profile.

    For a full tutorial on the same, see: create a user account

    Previous post the results so that we can analyse this issue.

    Kind regards

    Shinmila H - Microsoft Support

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • JavaFX Tableview not link with the controller class (JDK 8)

    I have my 1.7 update javaFX applications java java 1.8. It seems now FXML TableView component will not be binding with reference to controller class Java. Thank you.

    FXML file:

    < fx:id = "dvTypeTbl" '49.0' = layoutX TableView on = '145.0' prefHeight = '388.0' prefWidth '800,0' = >

    < columns >

    "< TableColumn maxWidth ="5000.0"minWidth ="10.0"prefWidth ="420,0"text="%device.type.main.view.table.column.name ">

    < cellFactory >

    < com.stee.rcm.gui.fxml.FormattedTableCellFactory align = "LEFT" / >

    < / cellFactory >

    < cellValueFactory >

    < PropertyValueFactory property = "dtName" / >

    < / cellValueFactory >

    < / TableColumn >

    < / columns >

    < / TableView >

    Controller of Java class:

    / public class DeviceTypeMainController implements {bootable

    @FXML private static TableView < DeviceTypeTable > dvTypeTbl;

    @Override

    Public Sub initialize (URL url, rb ResourceBundle) {}

    With this reference now it will get null pointer

    DtList ObservableList < DeviceTypeTable > = dvTypeTbl.getItems ();

    }

    }

    It seems that static fields don't get injected into the JDK 8.

    I can't inject static fields has never officially supported. The documentation for @FXML and FXMLLoader are pretty awful, but no example in the official tutorial use static fields with the @FXML annotation. This seems to be a really bad design still: imagine later you decided to re-use the file FXML twice in your application: the second controller would replace the field injected by the first controller.

  • Content principal problem IE 6 pushed down

    Hello
    I've seen discussions of other people with similar problems, but of course I can't find in mine. :-( I use Dreamweaver CS3. I have two columns, and content of the main column is pushed towards the middle of the page. Of course, it was only in Explorer 6 and 5.5. I tried to make it work on this page:
    Example of Page

    It seems that this is probably something with the CSS as it is with all pages. The CSS page is here: Style sheet location


    Thanks a lot for helping me with this.
    See you soon,.
    Janell

    Janell1 wrote:
    > Hi,.
    > I've seen discussions of other people with similar problems, but of course, I have
    > can't find it in mine. :-( I use Dreamweaver CS3. I have two columns,
    > and content of the main column is pushed towards the middle of the page. Of course
    > This is only to explore 6 and 5.5. I tried to make it work on this
    > page:
    > http://www.septemberentertainment.com/a_ned/indexv.html
    >
    > It seems that this is probably something with the CSS as it is with all
    > pages. The CSS page is here:

    Hello

    Try to cut out the se (conditional comments) in the head of your page
    and replace it with the modified, placing directly above the
    closing...


    HTH

    --
    Chin chin
    Sinclair

  • Content duplication problems?

    We have a new banner of an agency, we want to use in an e-mail. It has buttons for each social media site. If I use it as an image, I can't image map to individual links, which I've always understood to be not ideal anyway. So, we got the buttons separated from the banner. But, I can't place an image on an image or I get an error of content overlap, so I can't do the hyperlink for each other in this way.

    Any ideas? Here is the image as one set of image in order to get an idea of what we are trying to do. http://images.go.SecureWorks.com/EloquaImages/clients/SecureWorksInc/%7B1ae4fd14-6F22-4AC0-8dd2-cff9e7e7f628%7D_6009_T1-letter-logoBar.PNG

    Third proposal Jeff to break to the top of the image, in fact is farily easy to implement. Here's a very quick idea of what the code should look like:

    Dell logo Let's connect:

    This assumes you have a relatively easy access to each image and, although obviously, you'll need to take some time to make sure that it looks the way you want, but this will give you the basic structure.

  • RoboHelp 2015 Dynamic Content Filter problem

    I implemented the new dynamic content filtering feature in a set of merged help projects. The output is reactive HTML5.

    Our scenario is so super user connects to the user interface and lance help, they get all the help content, but when another user logs in, they will see everything except what I've marked as SuperUser_Only.

    I initially tested the output and filtering by displaying the icon filter and checked the filter behaved how I expected. I was disappointed with the option "Select default" is not how I expected, but it wasn't a deal breaker.

    Since we want to deploy the filter with the URL and not users to see the filter option, I got the URLS (thanks William van Weelden) and with those basic tests were performed. Basic tests I mean I have to copy/paste a URL in the browser and supported on INPUT, see the results, then copy and paste another URL in the browser and press ENTER and see the results. It worked a couple of times and I have tried the feature work and said our development team that would work.

    However, after a few more copy/pastes the content has not changed, but if I press F5 to refresh, it would then display the appropriate content. So sometimes I had to close the browser completely and reopen and then paste it again, and it would display the appropriate content. But now the filter stopped working at all. I have a total control of the server and are not all of the changes. I tried both Chrome and IE and cleared the browser cache and nothing makes the work of filtering now.

    Here are two URLS I tested with, with Xs for the IP address of the server. We have context-sensitive help and here's to a screen which the subject is named FOOD.htm.

    http://xxx.XX.XX.xxx:8080/helpRH/help/en/mergedProjects/planning/food.htm?filter=enduser:N OT_SuperUser_Only

    http://xxx.xx.xx.xxx: 8080/helpRH/help/en/mergedProjects/Planning/FOOD.htm?filter=SuperUser:SuperUser_Only

    Anyone have any ideas on how to make dynamic content filtering still works?

    frizzopc wrote:

    Then... I think I learn! Maybe I built the groups and the filters incorrectly. Can I create a group named role, with two filter options: superuser and not_superuser?

    Exactly. If you select about to a group, it will be only non-certains other items in the same group. The choice simple/multi selection is given for a single group.

    Hope that clears the issue with "Select by default" as well.

  • Html with jquery content integration problems

    Hey people muse.

    I am currently struggling with a very annoying problem:

    I have a piece of html code with jquery bits in there (it is a plugin to 360 °). For some reason, it doesn't seem to work when I upload it to my server and try it.

    I tried the steps suggested in this thread: HELP! Add Jquery to Muse! , but whenever I remove the parts of the "JS Include" section, I get warnings and errors in the page. The plugin works, even if...

    Does anyone know a workaround on this one?

    Thanks in advance

    Hi Florian.

    The trick is to wait for the page to load, then call your Jquery dependent scripts. That being said, try to insert this code in 'properties-> metadata-> HTML to head Page'-->

    And insert this code via "object-> Insert HTML code '-->

    Class = "spool".

    ID = 'image '.

    image data = "images/bild # .jpg".

    data-cw = 'true '.

    Framework data = '36 '.

    data-length = "6".

    data / speed = '3 '.

    data-speed =-'0.2 '.

    data-brake "0.2" = >

    Please choose a product:

    I would like to know if it works for you.

    - Abhishek Maurya

  • Layer visibility problems

    The layers of first three as stated have filled with information, but it seems that I must have turned off visibility in these layers, but they always display the information is still there in the layers panel. And the paper is now wired. I hope that its not deleted. Any ideas? Thanks for your time!

    layers.JPGwireframe.JPG

    Place the cursor of the mouse on the eye of a layer in the layers panel and hold it pressed until only the ToolTip is displayed. Read and see if the tip help

  • Installation of Oracle Content Management problem - apr_bucket_type_pipe

    Hi all


    I have intalled Content Server according to the installation guide

    Content server port: 5000
    Admin Server Port: 5001
    Web Server Root: idc
    Web Server: Apache

    then enter the following entries in the file httpd.conf

    LoadModule IdcApacheAuth /app/ucm/server/shared/os/linux/lib/IdcApache2Auth.so
    IdcUserDB Stellent "app/ucm/server/data/users/userdb.txt."
    < /idc location >
    Order allow, deny
    Allow all the
    DirectoryIndex portal.htm
    IdcSecurity idc
    < location >

    Then I restart my IAS (. / opmnctl startall) and guests system my that undefined symbol: apr_bucket_type_pipe.
    My version of the ICD is 10.1.3.1.0.

    You have an idea?

    Thank you

    Dennis

    Hello

    You can post entries that you put in the httpd.conf file? A sample file entry should be like this:

    LoadModule IdcApacheAuth D:/oracle/ucm/ots/shared/os/win32/lib/IdcApache22Auth.dll
    OTS IdcUserDB "D:/oracle/ucm/ots/data/users/userdb.txt".

    /OTS alias "D:/oracle/ucm/ots/weblayout.

    Order allow, deny
    Allow all the
    DirectoryIndex portal.htm
    OTS IdcSecurity

    where ots is the root of webrelative for the instance of CS

    Thank you
    Srinath

  • "Prioritize the visible content" in Google PageSpeed Insights

    Hi all

    I know that some measures are not controllable in Muse.

    Should this question do more with the HTML vs literally 'prioritize' content? I just want to be sure, there is nothing I can do to achieve this.

    Thank you!

    PageSpeed comment:

    Your page requires back and forth to render the above content at the time of the network. For best performance, reduce the amount of HTML code necessary to render the content above both.

    The entire HTML response was not sufficient to make the content above both. This indicates generally, additional resources after parsing HTML, were required to display content above both. Prioritize content visible which is necessary for rendering above both by registering directly in the HTML response.

    • None of the final content above at the same time could be made even with the complete HTML response.

    Google makes more important or even essential, to create web pages, how they think they should be created. They prefer even a style inline on the separation of semantically structured content with cascading style. Well, just read their proposals on things like Google AMP, and you will get a notion of where are all these "tips". He sends just a thrill in the back of the web...

  • Linked file moves around on the change of layer visibility

    Guys I'm confused, could not understand how 'fix' file (pin down) an embedded AI in ID.

    Draw vector maps in artificial intelligence, now compose in ID, I have encountered any problems [CS6]:

    1. the card is a great vector map with layers, info, areas and roads

    2. in the ID, the same card is used in different zooms in their widows, where, the selective layers are hidden, using "Object Layer Options."... »

    OOPS!

    3. hide a layer and move the content!

    Question: y at - it no way to PIN down related content!

    BUG?

    This is so the logic I tried to imagine and invented a solution, but the fix not working, it seems a bad logic or at least there should be an option to simply pin-the-content


    The fix:

    1. ensure that all layers also spread them (or at least the ones you intend to hide) in all directions (x and y)

    2. hide a layer should not affect the "limits" of content (visible). If so it will effect a change in the content of ID

    This problem solved has worked and so I extended the object (Fortunately it was a large background rectangle) of complete line of content for. Phew!

    (answer key embedded related) edited by: Nikhil Varma

    Looks like that maybe you selected "Art" or "Bounding Box" for the harvest option when you've placed the graphic. Change the visibility of the layer would change the dimensions of those boxes of cultures.

  • TableView my column by clicking on header to sort

    I'm new to javaFx and is working on TableView
    my application needs sorting that is provided by sortorder (true) but I have given value of about 100,000 lines (10 columns each of the strings of length 30).
    Works much better Swing Jtable sorting

    Any suggestion on how to improve the performance of sorting.

    PS: I have something in my mind for another method of sorting and then load the table with sorted data but it is not a good solution as then data are necessary to load again and again in tableview.

    Thank you

    I think you're about as good answer that can be given now. Sorting seems to be significantly slower than the underlying list sorting: this is a bug and you should report it.

    There is currently very little API allowing you to change the implementation of the sort that is used. In JavaFX8, TableView introduced a sort() method. I have not studied this well, but if you're in a situation where you can use the JDK8 early access version you might consider subclassing TableView and substituting the sort() method.
    Take a look through existing bug, especially [url https://javafx-jira.kenai.com/browse/RT-19479] RT-19479 and issues reports related.

    Update: I played with the substitution of TableView.sort and it seems to work as expected. See [url http://stackoverflow.com/questions/16805845/javafx-tableview-sort-is-really-slow-how-to-improve-sort-speed-as-in-java-swing] swapped question.

    Update (again): I found how to fix it in JavaFX 2.2. The problem is getting the correct data model.

    Edited by: James_D 30 may 2013 07:07

    Edited by: James_D 30 may 2013 12:16

  • Serious problem of closure with invisible text boxes cursed (CC)

    Total Hi,

    I have a serious problem with InDesign closing. I'm working on a nearly finished book who has texts and images. For this book, I also use InCopy. All the text boxes are assigned.

    When I worked on the book, I noticed three text boxes are missing. Because I didn't know when it happened and DIND'T want to get all the corrections I did by then, I decided to copy the text boxes missing from a backup I had. It worked, even the links with InCopy worked.

    InCopy has shown me that there are two links assigned to these boxes, so I just deleted one of the links to each of the three missions. Seemed so far until I updated the table of contents. I had two entries for these text boxes. I checked and on a spread seems to be dublicated areas of text that can only be seen when I "select all." They also appear on the layers panel. There I can select separately.

    The problem is that InDesign will stop when I try to move the spread or try to remove these text boxes. When I copy the spread, it gives me a perfect, even copy text. These areas of copied text can be edited and deleted. Remove the links concerned had no influence on the problem.

    Now, I deleted all content visible and any spread. My document now contains only the first single release and the second 'cursed', spread two-sided. There is no missions more. When I create a table of contents on the page first, alone, it shows me the three entries that should not be there. When I copy the spread he still 'perfect', as if there is nothing wrong with the spread. I have three areas of text with the text, I don't see in the spread of "cursed".

    Please help me! How can I get rid of these cursed text boxes? I use InDesign CC on a Windows 7 (64 bit) system.

    Thank you!

    Tami

    If the file is corrupted try to export it as IDML, to open and work with it.

    If that doesn't work, try opening IDML in an XML Editor (there are several similar BBedit which are able to read zip files) and try to find the damaged item and to fix it. Do it on a copy, because failure could destroy everything.

  • Problems using BufferApp with Mozilla

    I try to save content I find on the internet using the mozilla browser. I have a BufferApp account, but with content buffering problems. My website http://www.5v5flag.com is a newer site, but this should not create any problems with get content for my blog. Everyone has problems with Mozilla BufferApp.com

    Is the difficulty in using the site (such as a Web site) or the BufferApp extension (http://bufferapp.com/extensions)?

    If this is a common problem, people of BufferApp support might be best placed to answer, but if they are confused, we might be able to spot a conflict of add-on or another factor that they have not heard before.

Maybe you are looking for