Add an exe into a vi

Hello,
I have a program written, but I want to add an .exe before the program runs, how can I do this in Labview 6.1?
So when I run my program, the exe file must first run, then I press a button NEXT en then I come in my real program! Can anybody help me?
Kind regards,
Simon.

Hi,
see the attached image it will help you.
cheers
vicky
Attachments:
untitled.bmp ‏3055 KB

Similar Messages

  • How can i add my components into dcomcnfg.exe?

    I have created a component a  out-process Server and  registered but I can't find it in
    dcomcnfg.exe.
    how can i add my components into dcomcnfg.exe?

    chenkuan,
    Sorry but you have posted to a forum that deals exclusively with questions/issues about customizing and programming Microsoft Project, a planning and scheduling application. I suggest you delete this post and find a forum appropriate for your issue.
    John

  • Install more than one exe into one folder or into some subfolders of the same folder

    Hi!
    I want to do at least one of the following:
    1. I want to install several exes (built with LV app builder) into one directory because they belong together.
    2. Make several subfolders under the same top level folder aand install exes into each of them.
    The (top level) folder should be the "company" folder. The subfolders are for the applications.
    For example:
    c:\company\app1\app1.exe
    c:\company\app1\app1setup.exe
    c:\company\app2\app2.exe
    etc.
    This may also reside under the "program files" folder.
    If i try to do so, i encounter some problems setting up the build specifications. If i have more than one build spec. for exes i cannot add them to the same folder. At least if they contain the same external files, e.g. dlls.
    If i try to make one installer per exe, i get an error message telling me that the same folder (my "top level folder") already exists in the registry and cannot be added a second time. This is also true if i try to make a new project instead of having several installer build specs in one project.
    I use Labview 2009 (engl.) under Windows Vista (german).
    If anyone has some help for me or encounters similar problems please let me know.
    Holger
    Message Edited by HolgerD on 09-26-2009 10:13 AM
    Solved!
    Go to Solution.

    Hi Holger,
    the build directories should be different for each build, but you can copy the executables into one folder manually (tested successfully in WinXP). For multiple installers, put each installer build in a separate directory, and install all to the same program files subfolder. Works with XP (tested!), so this must be a Vista issue...
    Please build the four specs in attached project and run both installers to the same directory - should be working...
    Best regards,
    Sebastian
    Attachments:
    calc.dll.zip ‏73 KB

  • Add BGinfo.exe to image.wim

    Is there a way to add BGinfo.exe to images created with MDT?
    The way that I did it was this way (which it didn't work):
    - Created sub-folder in root of C: (e.g., C:\BGINFO)
    - Added BGinfo.exe, and BGConfig.bgi to folder
    - Created shortcut of BGConfig.bgi, and copied it to C:\programdata\Microsoft\Windows\Start Menu\Programs\StartUp
    - Browse to \\SERVER\DeploymentShare\Scripts\LiteTouch.vbs, and Capture Reference PC
    After capturing the Reference PC, I created a new Task Sequence to deploy out this new image.  When I deployed it out, I noticed that the wallpaper turned back, and BGinfo.exe did not display info.  I had to change the theme back to Windows
    7, and launch the shortcut in order for it to work.  So, that was more of a post-imaging step...
    How would you guys go about this?

    Sure. If you want to just make this a post-install task:
    On a reference or test machine machine, put the .exe and .bgi file where you want. Make a desktop shortcut to the exe and modify it to load the .bgi file. Set the target of the shortcut with something like this:
    %SystemRoot%\BGInfo64.exe %SystemRoot%\BGConfig.bgi /timer:0 /NOLICPROMPT
    In MDT, add an app with a custom script that places the .exe and. bgi in the same place as your test machine. And place the shortcut in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup - That's the all users start folder.
    Here's how I'd set up a script for this, but there are many ways to skin that cat:
    First, make a temp folder to hold your files for import into MDT. In that folder make another called SystemDrive. Under that make folders/files like this:
    SystemDrive\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\RunBGInfo.lnk
    SystemDrive\Windows\bginfo.exe
    SystemDrive\Windows\bgconfig.bgi
    install.cmd
    Contents of install.cmd:
    XCOPY "%DEPLOYROOT%\Applications\YourAppNameHere\SystemDrive\*.*" %SYSTEMDRIVE%\ /E /Y
    Import your temp folder as an app with source files. Make sure to change YourAppNameHere in the .cmd file to the name of the folder when you import this app into MDT. The install command for the app is just "install.cmd". 

  • What is Add On EXE Full Path???

    Hi All........
    Could u plz tell me what is the field "Add On EXE Full Path" in "Add On Registration Data Generator". I'm working in C#. plz send me a descriptive answer i'm very confuse about that and I could not make a add-on for SBO
    Thanks
    Padma

    Hi Padma,
    Just click on the browse button and select your EXE.
    (Or) paste the EXE path (E.g: c:\SAP\Proj1\Output.Exe) into the edit box.

  • What is difference between distribution list and share point group? Can we add distribution list into person and group column of share point list?

    what is difference between distribution list and share point group? Can we add distribution list into person and group column of share point list?

    there is a workaround you can try, create audience and add DL to them and deal with the audience or convert DL to groups
    https://social.technet.microsoft.com/Forums/en-US/02f0d773-8188-4d94-a448-0c04d838b0cf/distribution-lists-in-sharepoint?forum=sharepointgenerallegacy
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

  • How do I add multiple images into one file?

    I'm sure this is something that's been covered in another post (or even in the help portal) but I think my wording in my search terms are not correct or... I don't know, because I just can't find what I'm looking for.
    I want to know how to add multiple images into one file/one image, both horizontally and/or vertically. To give you an idea of what I mean, check out :
    http://www.best10apps.com/apps/comic-story,531596060.html
    If you scroll down, you'll see a heading entitled : Screenshots of Comic Story. Notice how there's 3 pictures (divided by borders). 2 of those pictures are side by side, and 1 of them is below the first 2 pictures.
    I want to know how to add different pictures/images and put them into one picture.

    One way is to create template PSD files and populate them with your images using Photoshops scripts.
    Photo Collage Toolkit UPDATED June 12, added Picture Package Support via PasteImageRoll and BatchPicturePackage scripts.
    The package includes four simple rules to follow when making Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.
    There are eleven scripts in this package they provide the following functions:
    TestCollageTemplate.jsx - Used to test a Photo Collage Template while you are making it with Photoshop.
    CollageTemplateBuilder.jsx - Can build Templates compatible with this toolkit's scripts.
    LayerToAlphaChan.jsx - Used to convert a Prototype Image Layer stack into a template document.
    InteractivePopulateCollage.jsx - Used to interactively populate Any Photo Collage template. Offers most user control inserting pictures and text.
    ReplaceCollageImage.jsx - use to replace a populated collage image Smart Object layer with an other image correctly resized and positioned.
    ChangeTextSize.jsx - This script can be used to change Image stamps text size when the size used by the populating did not work well.
    PopulateCollageTemplate.jsx - Used to Automatically populate a Photo Collage template and leave the populated copy open in Photoshop.
    BatchOneImageCollage.jsx - Used to Automatically Batch Populate Collage templates that only have one image inserted. The Collage or Image may be stamped with text.
    BatchMultiImageCollage.jsx - Used to Automatically Batch Populate Any Photo Collage template with images in a source image folder. Easier to use than the interactive script. Saved collages can be tweaked.
    BatchPicturePackage.jsx - Used to Automatically Batch Populate Any Photo Collage template with an image in a source image folder
    PasteImageRoll.jsx - Paste Images into a document to be print on roll paper.
    Documentation and Examples

  • How to re-add the iPhone into the Find My iPhone and than to find the last known possition?

    Hello,
    I've got my iPhone stolen yesterday in the bar.
    In the morning I tried find it by Find My iPhone app but I hit the "remove" button by mistake. Is it possible to reverse this acction even without the iPhone in the hand?
    I need to re-add the iPhone into the iCloud (Find My iPhone) and than to find the last known possition. It's serial number is C3******39D
    Thank you
    Libor
    <Edited bu Host>

    Ringtones are a one-time only download from the store. You will need to connect the device that you downloaded it on to your computer's iTunes and do File > Devices > Transfer Purchases to copy it over to the Tones part of your computer's iTunes library and you can then sync it to your other device(s).

  • How to add an item into the Newsstand

    How to add an item into the Newsstand.  Please do NOT reply using  "tech-language." Use standard- normal everyday English. Thanks,
    Don Otlin
    Franklin Square, NY

    Open Newsstand. Tap on the "Store" button in the upper right. Any newspaper or magazine you download from the store will appear in Newsstand.

  • How to add PDF files into a slides? (Flash 8)

    I am new to flash and I am using Macromedia Flash 8. My task is simple enough: I need create a Presentation with Screens from PDF files: I have 10-12 PDF files which I want convert into flash presentation.
    I have read this tutorial:
    http://w3.id.tue.nl/fileadmin/id/objects/E-Atelier/Phidgets/Software/Flash/fl8_tutorials.p df
    Chapter 11: Basic Tasks: Create a Presentation with Screens.
    I'm having trouble how to add PDF files into a slides: I want insert a whole pdf file as separate slide, without splitting pdf file into separate elements: pictures, text, etc. I tried import pdf file into Flash, wheen import there is shown prompt how program should process this pdf file(add in stage, library, as keyframes, etc) , not clear which option is correct for my task. What I got is pdf file splitted into multiple images, text, - which is not what I want. I want keep PDF files without changes, preserve original design and formatting, just convert this pdf into flash, so presentation will consist of PDFs organized in correct order, then add navigation buttons and some effects. How to solve this task?

    Just to avoid potential confusion... PDF is an Adobe format, but Flash 8 is/was not.  Flash 8 came out before Adobe bought Macromedia.  Even today, I don't believe anything has been done to accomodate direct integration of PDF content in Flash.

  • How to add text vertically into a Word margin with C# (using namespace: Microsoft.Office.Interop.Word)

    I need to add text vertically in a word document outside the margins.  How can I do this with Microsoft.Office.Interop.Word and C#?
    Leonard Swarczinski Software Developer Postal Center International

    Hi Leonard,
    According to your description, do you want to add text vertically into Page Header/Footer? I wrote a sample  for you.
    using Microsoft.Office.Core;
    using Microsoft.Office.Interop.Word;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    namespace AddTextToWord
    class Program
    static void Main(string[] args)
    CreateNewDocument();
    Console.ReadLine();
    private static void CreateNewDocument()
    Object oMissing = System.Reflection.Missing.Value;
    Microsoft.Office.Interop.Word.Application oWord;
    Microsoft.Office.Interop.Word.Document oDoc;
    oWord = new Microsoft.Office.Interop.Word.Application();
    oWord.Visible = true;
    oDoc = oWord.Documents.Add(ref oMissing, ref oMissing, ref oMissing, ref oMissing);
    String HeaderText = "Hello everyone!";
    WdParagraphAlignment wdAlign = WdParagraphAlignment.wdAlignParagraphCenter;
    AddHeader1(oWord, HeaderText, wdAlign);
    private static void AddHeader1(Application WordApp, string HeaderText, WdParagraphAlignment wdAlign)
    Object oMissing = System.Reflection.Missing.Value;
    WordApp.ActiveWindow.View.Type = WdViewType.wdOutlineView;
    WordApp.ActiveWindow.View.SeekView = WdSeekView.wdSeekPrimaryHeader;
    Microsoft.Office.Interop.Word.Shape textBox = WordApp.ActiveDocument.Shapes.AddTextbox(MsoTextOrientation.msoTextOrientationVertical, 150, 10, 40, 40);
    textBox.TextFrame.TextRange.Text = HeaderText;
    WordApp.ActiveWindow.View.SeekView = WdSeekView.wdSeekMainDocument;
    If I misunderstood or anything wrong, please let me know and you can get more information from below articles.
    Office development in Visual Studio
    http://msdn.microsoft.com/en-us/office/hh133430.aspx
    Abhout: AddTextbox Method
    http://msdn.microsoft.com/en-us/library/office/aa171543(v=office.11).aspx
    How to: Programmatically Insert Text into Word Documents
    http://msdn.microsoft.com/en-us/library/vstudio/6b9478cs.aspx

  • To add new record into the table Data Service client

    When I am trying to add new record into the table Employeedetails using Data Service client it is giving a sql exception: "java.sql.SQLException: Violation of PRIMARY KEY constraint 'PK__EmployeeDetails__6383C8BA'. Cannot insert duplicate key in object 'EmployeeDetails'. Severity 14, State 1, Procedure 'PC-P41403 null', Line 1."
    Code:
    DataService ds=DataServiceFactory.newDataService(getInitialContext(),"EmplDetApp","ld:EmplDetAppDataServices/EmployeeDetails");
    EmployeeDetailsDocument edoc=EmployeeDetailsDocument.Factory.newInstance();
    edoc.addNewEmployeeDetails();
    //here I set the primary key value empid
    edet.setEmpid("1212");
    edet.setEmpname("manu");
    ds.submit(edoc);
    Error
    EmpName 5 java.sql.SQLException: Violation of PRIMARY KEY constraint 'PK__EmployeeDetails__6383C8BA'. Cannot insert duplicate key in object 'EmployeeDetails'. Severity 14, State 1, Procedure 'PC-P41403 null', Line 1
    com.bea.ld.dsmediator.DataServiceException: java.sql.SQLException: Violation of PRIMARY KEY constraint 'PK__EmployeeDetails__6383C8BA'. Cannot insert duplicate key in object 'EmployeeDetails'. Severity 14, State 1, Procedure 'PC-P41403 null', Line 1
         at com.bea.ld.dsmediator.update.JDBCAdaptor.save(JDBCAdaptor.java:247)
         at com.bea.ld.dsmediator.update.DataServiceMediator.submit(DataServiceMediator.java:528)
         at com.bea.ld.dsmediator.update.DataServiceMediator.submit(DataServiceMediator.java:245)
         at com.bea.ld.ServerBean.submit(ServerBean.java:529)
         at com.bea.ld.Server_ydm4ie_EOImpl.submit(Server_ydm4ie_EOImpl.java:910)
         at com.bea.ld.Server_ydm4ie_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:492)
         at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:435)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:430)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
         at java.lang.Thread.startThreadFromVM(Unknown Source)
    Caused by: java.sql.SQLException: Violation of PRIMARY KEY constraint 'PK__EmployeeDetails__6383C8BA'. Cannot insert duplicate key in object 'EmployeeDetails'. Severity 14, State 1, Procedure 'PC-P41403 null', Line 1
         at weblogic.jdbc.mssqlserver4.TdsStatement.processWarning(TdsStatement.java:1178)
         at weblogic.jdbc.mssqlserver4.TdsStatement.parseMsWarning(TdsStatement.java:1089)
         at weblogic.jdbc.mssqlserver4.TdsStatement.getMoreResults(TdsStatement.java:756)
         at weblogic.jdbc.mssqlserver4.TdsStatement.execute(TdsStatement.java:210)
         at weblogic.jdbc.mssqlserver4.TdsStatement.executeUpdate(TdsStatement.java:97)
         at weblogic.jdbc.mssqlserver4.TdsStatement.executeUpdate(TdsStatement.java:1455)
         at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:147)
         at com.bea.ld.dsmediator.update.JDBCAdaptor.save(JDBCAdaptor.java:151)
         ... 15 more
    But I am not sure why it is giving an exception as Violation of PRIMARY KEY.
    The update method works fine for the same client.
    The exception only happens when I am trying to insert a new record.
    Please help me to figure out this problem.

    If you are absolutely sure that you do not have such a row already in your table, open a case with customer support and reference CR321312. I believe the work-around is to put ld-server-core.jar in your client classpath.
    Correction: put ld-server-app.jar in the client classpath
    Edited by mreiche at 09/17/2007 3:28 PM

  • How to add one column into the t.code: cat2

    Hi
    I am userexits
    here i want to add one column into the t.code: cat2 at particular location, and that added field have to display the data what i am selcting in that transaction.
    how to do this...
    thankx

    hi,
        CATS0005           
        CATS0007           
        CATS0009        
        CATS0010        
        CATS0012.
        Go through the documentations of above Enhancements to solve ur problem. I am not able to understand ur exact requirement. that is y i gave some more Enhancements.

  • How to add one infocube into multiple Multiproviders

    Dear Experts,
            I got a task to add one infocube into many(10) multiproviders. As per my knowledge,I have to add it manually by going through each and every multiprovider. Like this i have to do it for around 15 Infocubes and it's really time killing activity.
        Request you to help me out, is there any easier way to achieve this.
    Thanks in advance for your valuable assistance.
    Regards,
    Ramesh-Kumar.

    HI,
    You have to add each Infocube manually....Because after adding you have to assign Chars and KFs in the Multiprovider to the Particular Infoproviders...So you have to do this Task Manually only...There is no such one go process.....
    Thanks

  • Add combo box into table pagination

    I want to add combo box into JavaFX table with pagination. Something like that:
    import javafx.application.Application;
    import javafx.beans.property.SimpleStringProperty;
    import javafx.collections.FXCollections;
    import javafx.collections.ObservableList;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Pagination;
    import javafx.scene.control.TableColumn;
    import javafx.scene.control.TableView;
    import javafx.scene.control.cell.PropertyValueFactory;
    import javafx.scene.layout.AnchorPane;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    import javafx.util.Callback;
    public class MainApp extends Application
       final ObservableList<Person> data = FXCollections.observableArrayList(
       new Person("1", "Joe", "Pesci"),
       new Person("2", "Audrey", "Hepburn"),
       new Person("3", "Gregory", "Peck")
       private Pagination pagination;
       public static void main(String[] args) throws Exception
      launch(args);
       public int itemsPerPage()
       return 1;
       public int rowsPerPage()
       return 5;
       public VBox createPage(int pageIndex)
       int lastIndex = 0;
       int displace = data.size() % rowsPerPage();
       if (displace > 0)
      lastIndex = data.size() / rowsPerPage();
       else
      lastIndex = data.size() / rowsPerPage() - 1;
       VBox box = new VBox(5);
       int page = pageIndex * itemsPerPage();
       for (int i = page; i < page + itemsPerPage(); i++)
       TableView<Person> table = new TableView<>();
       TableColumn numCol = new TableColumn("ID");
      numCol.setCellValueFactory(
       new PropertyValueFactory<Person, String>("num"));
      numCol.setMinWidth(20);
       TableColumn firstNameCol = new TableColumn("First Name");
      firstNameCol.setCellValueFactory(
       new PropertyValueFactory<Person, String>("firstName"));
      firstNameCol.setMinWidth(160);
       TableColumn lastNameCol = new TableColumn("Last Name");
      lastNameCol.setCellValueFactory(
       new PropertyValueFactory<Person, String>("lastName"));
      lastNameCol.setMinWidth(160);
      table.getColumns().addAll(numCol, firstNameCol, lastNameCol);
       if (lastIndex == pageIndex)
      table.setItems(FXCollections.observableArrayList(data.subList(pageIndex * rowsPerPage(), pageIndex * rowsPerPage() + displace)));
       else
      table.setItems(FXCollections.observableArrayList(data.subList(pageIndex * rowsPerPage(), pageIndex * rowsPerPage() + rowsPerPage())));
      box.getChildren().add(table);
       return box;
       @Override
       public void start(final Stage stage) throws Exception
      pagination = new Pagination((data.size() / rowsPerPage() + 1), 0);
       // pagination = new Pagination(20 , 0);
       //pagination.setStyle("-fx-border-color:red;");
      pagination.setPageFactory(new Callback<Integer, Node>()
       @Override
       public Node call(Integer pageIndex)
       if (pageIndex > data.size() / rowsPerPage() + 1)
       return null;
       else
       return createPage(pageIndex);
       public static class Person
       private final SimpleStringProperty num;
       private final SimpleStringProperty firstName;
       private final SimpleStringProperty lastName;
       private Person(String id, String fName, String lName)
       this.firstName = new SimpleStringProperty(fName);
       this.lastName = new SimpleStringProperty(lName);
       this.num = new SimpleStringProperty(id);
       public String getFirstName()
       return firstName.get();
       public void setFirstName(String fName)
      firstName.set(fName);
       public String getLastName()
       return lastName.get();
       public void setLastName(String fName)
      lastName.set(fName);
       public String getNum()
       return num.get();
       public void setNum(String id)
      num.set(id);
    I suppose that this can be done with StackPane but I need some other more universal way to do this because I want to expand the table size. I need to place there the combo box always in a fix position.
    Ref http://stackoverflow.com/questions/21147261/add-combo-box-into-table-pagination

    Hi. You can do it using an AnchorPane:
    AnchorPane.setBottomAnchor(comboBox, 40.0);
    AnchorPane.setLeftAnchor(comboBox, 12.0);
    The complete  example :
    import java.util.List;
    import javafx.application.Application;
    import javafx.beans.property.SimpleStringProperty;
    import javafx.collections.FXCollections;
    import javafx.collections.ListChangeListener;
    import javafx.collections.ListChangeListener.Change;
    import javafx.collections.ObservableList;
    import javafx.scene.Scene;
    import javafx.scene.control.Pagination;
    import javafx.scene.Node;
    import javafx.scene.control.ComboBox;
    import javafx.scene.control.TableColumn;
    import javafx.scene.control.TableView;
    import javafx.scene.control.TextArea;
    import javafx.scene.control.cell.PropertyValueFactory;
    import javafx.scene.layout.AnchorPane;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    import javafx.util.Callback;
    public class TablePager extends Application {
        final ObservableList<Person> data = FXCollections.observableArrayList(
                new Person("1", "Joe", "Pesci"),
                new Person("2", "Audrey", "Hepburn"),
                new Person("3", "Gregory", "Peck"),
                new Person("4", "Cary", "Grant"),
                new Person("5", "De", "Niro"),
                new Person("6", "Katharine", "Hepburn"),
                new Person("7", "Jack", "Nicholson"),
                new Person("8", "Morgan", "Freeman"),
                new Person("9", "Elizabeth", "Taylor"),
                new Person("10", "Marcello", "Mastroianni"),
                new Person("11", "Innokenty", "Smoktunovsky"),
                new Person("12", "Sophia", "Loren"),
                new Person("13", "Alexander", "Kalyagin"),
                new Person("14", "Peter", "OToole"),
                new Person("15", "Gene", "Wilder"),
                new Person("16", "Evgeny", "Evstegneev"),
                new Person("17", "Michael", "Caine"),
                new Person("18", "Jean-Paul", "Belmondo"),
                new Person("19", " Julia", "Roberts"),
                new Person("20", "James", "Stewart"),
                new Person("21", "Sandra", "Bullock"),
                new Person("22", "Paul", "Newman"),
                new Person("23", "Oleg", "Tabakov"),
                new Person("24", "Mary", "Steenburgen"),
                new Person("25", "Jackie", "Chan"),
                new Person("26", "Rodney", "Dangerfield"),
                new Person("27", "Betty", "White"),
                new Person("28", "Eddie", "Murphy"),
                new Person("29", "Amitabh", "Bachchan"),
                new Person("30", "Nicole", "Kidman"),
                new Person("31", "Adriano", "Celentano"),
                new Person("32", "Rhonda", " Fleming's"),
                new Person("32", "Humphrey", "Bogart"));
        private Pagination pagination;
        public static void main(String[] args) throws Exception {
            launch(args);
        public int itemsPerPage() {
            return 1;
        public int rowsPerPage() {
            return 5;
        public VBox createPage(int pageIndex) {
            int lastIndex = 0;
            int displace = data.size() % rowsPerPage();
            if (displace > 0) {
                lastIndex = data.size() / rowsPerPage();
            } else {
                lastIndex = data.size() / rowsPerPage() - 1;
            VBox box = new VBox();
            int page = pageIndex * itemsPerPage();
            for (int i = page; i < page + itemsPerPage(); i++) {
                TableView<Person> table = new TableView<Person>();
                TableColumn numCol = new TableColumn("ID");
                numCol.setCellValueFactory(
                        new PropertyValueFactory<Person, String>("num"));
                numCol.setMinWidth(20);
                TableColumn firstNameCol = new TableColumn("First Name");
                firstNameCol.setCellValueFactory(
                        new PropertyValueFactory<Person, String>("firstName"));
                firstNameCol.setMinWidth(160);
                TableColumn lastNameCol = new TableColumn("Last Name");
                lastNameCol.setCellValueFactory(
                        new PropertyValueFactory<Person, String>("lastName"));
                lastNameCol.setMinWidth(160);
                table.getColumns().addAll(numCol, firstNameCol, lastNameCol);
                if (lastIndex == pageIndex) {
                    table.setItems(FXCollections.observableArrayList(data.subList(pageIndex * rowsPerPage(), pageIndex * rowsPerPage() + displace)));
                } else {
                    table.setItems(FXCollections.observableArrayList(data.subList(pageIndex * rowsPerPage(), pageIndex * rowsPerPage() + rowsPerPage())));
                box.getChildren().addAll(table);
            return box;
        @Override
        public void start(final Stage stage) throws Exception {
            ObservableList<String> options =
                    FXCollections.observableArrayList(
                    "Opt1",
                    "Opt2",
                    "Opt3");
            final ComboBox comboBox = new ComboBox(options);
            pagination = new Pagination((data.size() / rowsPerPage() + 1), 0);
            //   pagination = new Pagination(20 , 0);
            pagination.setStyle("-fx-border-color:red;");
            pagination.setPageFactory(new Callback<Integer, Node>() {
                @Override
                public Node call(Integer pageIndex) {
                    if (pageIndex > data.size() / rowsPerPage() + 1) {
                        return null;
                    } else {
                        return createPage(pageIndex);
            AnchorPane anchor = new AnchorPane();
            AnchorPane.setTopAnchor(pagination, 10.0);
            AnchorPane.setRightAnchor(pagination, 10.0);
            AnchorPane.setBottomAnchor(pagination, 10.0);
            AnchorPane.setLeftAnchor(pagination, 10.0);
            Scene scene = new Scene(anchor, 400, 250);
            AnchorPane.setBottomAnchor(comboBox, 40.0);
            AnchorPane.setLeftAnchor(comboBox, 12.0);
            anchor.getChildren().addAll(pagination, comboBox);
            stage.setScene(scene);
            stage.setTitle("Table pager");
            stage.show();
        public static class Person {
            private final SimpleStringProperty num;
            private final SimpleStringProperty firstName;
            private final SimpleStringProperty lastName;
            private Person(String id, String fName, String lName) {
                this.firstName = new SimpleStringProperty(fName);
                this.lastName = new SimpleStringProperty(lName);
                this.num = new SimpleStringProperty(id);
            public String getFirstName() {
                return firstName.get();
            public void setFirstName(String fName) {
                firstName.set(fName);
            public String getLastName() {
                return lastName.get();
            public void setLastName(String fName) {
                lastName.set(fName);
            public String getNum() {
                return num.get();
            public void setNum(String id) {
                num.set(id);

Maybe you are looking for

  • Help with embedding fonts in swf file

    Hi, I am haviing a problem with my fonts displaying in my swf file. I created the flash site using CS4 on a mac. I thought the fonts were embedded but when I tested the swf in safari and firefox the fonts disappeared are all scrunched up in 1/2" on t

  • I can't install the adobe flash player.

    when i want to install adobe flash plyer they ask me after a password, but i don't know which password it is. i thought it is the password of this website. but it doesnt't work. please help me. i need the flash player for my facebook account. so plea

  • Online test applications

    HI Java experts, I am creating an java online test application, i got strucked in the following scenario. Scenario : My task is when my application starts running other operating system command and menus should be disabled. The operating system comma

  • Deleting Startup items

    In my /Library/StartupItems folder VirtualBox is in there and I have long since uninstalled it from my computer. Is it safe to delete?

  • Timekeeper Layout for Projects

    I need to put the payroll hours types as the first item on the timekeeper entry screen and then the project/task/exp type after. I have read that Oracle expects to see the the TK Project List as the item 1 in the Timekeeper Layout Attributes on the p