Weird TabPanel and Sub panel's title

Hi All,
I have a TabPanel and having a few sub panel.
If they are in a form without a base context, everything is fine - The panel title displayed as "Page Title"
<Form>
<Field name="Main Tab">
<Display class="TabPanel"/>
<Field name="Page Title">
<Display class="EditForm"/>
</Field>
</Field>
</Form>
However, if the form used with a base context = "variables",
Then I can't control what will be displayed in sub panel's title.
It always shows "variables.Page Title", looks weird. Anyway to overwrite this title?
code below:
<Form baseContext="variables">
<Field name="Main Tab">
<Display class="TabPanel"/>
<Field name="Page Title">
<Display class="EditForm"/>
</Field>
</Field>
</Form>

Use this when specifying a base context:
<Field name=":Page Title">

Similar Messages

  • Loading independent sub vis in sub panels and calling from main vi

    Hi all,
    I have trying to work on the following requirement.
    I have a main vi with a file browzer and sub panel - Channel . I will select a channel configuration text file which contains Analog and digital channels names. ''
    My vi will read that file and loads and Channel VI in the sub panel - Channel.
    Now the CHANNEL VI has a tab control with 2 pages analog and digital. Each page again has sub panels i,e. sub Panel - Analog and sub-Panel-Digital.
    Analog VI with some knob controls which are binded to Signals are displayed in the sub Panel - Analog.
    Digital VI with some boolean controls  which are binded to Signals are displayed in the sub Panel - Digital.
    These vis will show the values acquired from the hardware.
     I want to provide the user to load any channel configuration file and acquire the data. For the first time the execution is working fine. The next time when I tried to load a new configuration file. it says "Invoke node in main cvi <Append> Method Name <b>Run VI</b> and the new configuration is not loaded.
    The following logic is implemented as a sub vi to load and close the sub panel vi.
    VI Load logic:
    VI CLose Logic
    So please let me know where am i doing wrong.
    Before loading the new configuration file Iam calling the close logic . But still is not working.
    Thanks in Advance.
    Ramesh.

    Can you post a vi snippet? It would be helpful to see your logic flow, I'm wondering if your problem is that you've got "remove vi" node at the end after you have already closed the vi reference - but can't tell if same vi reference are used as in the case of top diagram.
    -DP
    New Controls & Indicators made using vector graphics & animations? Click below for Pebbles UI

  • Handling User Events in sub panel vis and main vis with same Event reference Number.

    Hi All, Iam trying to work to handle events in both subpanel vi and main vi.
    I have a main program, and 2 sub vi. I will load the sub VI in 2 sub panels in main vi. Each sub pael vi has controls on it.
    I have created 2 User events for 2 sub panels vi. One user event consits of a Cluster with 2 Booleans (x & Y) and Other User Event consists of cluster of 2 unsigned 8 Numbers (a & b). These are created and registered in the main Vi and event register refnum is passed to the subpanel vi from the main panel vi.
    I have Event structure in main panel and sub panel vis.
    In one sub panel vi, When the value of one boolean(i.e. X) in the clusters changes, the Events structure in sub panel vi should perform some operation in sub panel vi only. When the value of other boolean (i.e. Y) changes it should perform some operation in main vi. I will try to Generate user event with the x value and Y value changed based on the control clicks in the sub panel vi.
    The OTher panel vi should behave in the smae way when the a & b value changes.
    The "Generate User Event" is working fine some times and sometimes there in no event triggered in the sub panel vi or main vi.
    Please let me know what is the problem Ramesh.

    There is a lot of talking, but not much understanding.  It'd be better if you posted some example VI's of what you are trying to do so that the words will make sense.
    One thing I can tell you is that you don't want to have two event structures handle the same event reference number.  You want to have two event registrations with each one going to its own event structure.

  • How do I get the Basic and camera calibration sub panels in the develop modual to come back after they go away on there own?

    I was working on images and then when I picked a different image the basic and camera calibration sub panels disappeared. How do I get them back?

    Right click on one of the other headers and a popup will appear and you can select the ones you need to view.

  • Captivate 5 export and import legend and sub title issue

    when
    i export a legend and sub title for revisiont and then import it
    i get a white text on withe background why ?
    my font on the project are white is it because of this ?
    Thanks

    let me explain better :-)
    in captivate 5 there a feature for people to export legend and sub title so some one could revise the slide text etc...
    i exprt it in word format but the doc created  we could reed the text cause the text is white on a white background
    any idea ?
    Thanks

  • Sub Panel and References

    Hi
    I've a Main.vi including one sub panel to run two different SubVIs sequentially.
    In SubVI1 I want to create a reference that I can use in SubVI2.
    How can I pass the reference from SubVI1 to SubVI2 so that it is still valid in SubVI2?
    I try to do this with a functional global but inside SubVI2 i get the error message: 1025.
    (see attached example)
    Laschko
    Solved!
    Go to Solution.
    Attachments:
    SubPanel_and_Ref.zip ‏31 KB

    Laschko wrote:
    How can I pass the reference created in SubVI1 to SubVI2 if I must stop the SubVI1 before SubVI2 starts?
    You can't. I didn't look at your code, but I'm guessing this is the problem you have.
    Generally, LV automatically destroys a reference when the hierarchy it was created in goes idle. The hierarchy is determined by the top level VI, which is either a VI where you press the run arrow or a VI you run using the Run VI method (which I'm assuming is what happens in your case). Today there is no way of disabling this behavior. Hopefully in the future NI will change it so that references are only destroyed when no one actually uses them.
    The only way to handle this today is to make sure the reference is first created in a hierarchy which will stay in memory. This can be either your main hierarchy or a daemon which you call in the beginning and has the task of creating the references.
    Try to take over the world!

  • How to get the values of all elements and sub elements from  following xml

    how to get the values of all elements and sub elements from following xml...
    <?xml version="1.0" encoding="UTF-8" ?>
    <List_AML_Finacle xmlns="http://3i-infotech.com/Cust_AML_Finacle.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://3i-infotech.com/Cust_AML_Finacle.xsd List_AML_Finacle.xsd">
    <TransactionID>TransactionID</TransactionID>
    <Match>
    <Src_Matched_Field>Src_Matched_Field</Src_Matched_Field>
    <List_Matched_Field>
    <FSFM_Matches>
    <NUMBER>NUMBER</NUMBER>
    <TERROR>TERROR</TERROR>
    <TU>TU</TU>
    <NAMEU>NAMEU</NAMEU>
    <DESCRIPT>DESCRIPT</DESCRIPT>
    <KODCR>KODCR</KODCR>
    <KODCN>KODCN</KODCN>
    <AMR>AMR</AMR>
    <ADDRESS>ADDRESS</ADDRESS>
    <SD>SD</SD>
    <RG>RG</RG>
    <ND>ND</ND>
    <VD>VD</VD>
    <GR>GR</GR>
    <YR>YR</YR>
    <MR>MR</MR>
    <CB_DATE>CB_DATE</CB_DATE>
    <CE_DATE>CE_DATE</CE_DATE>
    <DIRECTOR>DIRECTOR</DIRECTOR>
    <FOUNDER>FOUNDER</FOUNDER>
    <TERRTYPE>TERRTYPE</TERRTYPE>
    </FSFM_Matches>
    <OfacMatchDetails>
    <UID>UID</UID>
    <TITLE>TITLE</TITLE>
    <SDNTYPE>SDNTYPE</SDNTYPE>
    <REMARKS>REMARKS</REMARKS>
    <ID_UID>ID_UID</ID_UID>
    <IDTYPE>IDTYPE</IDTYPE>
    <IDNUMBER>IDNUMBER</IDNUMBER>
    <IDCOUNTRY>IDCOUNTRY</IDCOUNTRY>
    <ISSUEDATE>ISSUEDATE</ISSUEDATE>
    <EXPIRATIONDATE>EXPIRATIONDATE</EXPIRATIONDATE>
    <ADDRESS1>ADDRESS1</ADDRESS1>
    <ADDRESS2>ADDRESS2</ADDRESS2>
    <ADDRESS3>ADDRESS3</ADDRESS3>
    <CITY>CITY</CITY>
    <STATEORPROVINCE>STATEORPROVINCE</STATEORPROVINCE>
    <POSTALCODE>POSTALCODE</POSTALCODE>
    <COUNTRY>COUNTRY</COUNTRY>
    </OfacMatchDetails>
    </List_Matched_Field>
    </Match>
    </List_AML_Finacle>

    avoid multi post
    http://forum.java.sun.com/thread.jspa?threadID=5249519

  • How to get rid of scroll bars in sub panels when displaying a VI which is part of a class?

    I am writing an application that applies different analyses to a set of data. The program must be flexible configurable. To not clutter the GUI with too much elements I ended up with the idea to load the needed user interfaces for each specific analysis dynamically into a single sub panel when needed. This works well without any problem.
    Due to the fact that all analyses share some common functionality I have decided to use LabVIEW classes for implementation. Each class has one VI representing the user interface to show in the sub panel.
    This works also well BUT the sub panel always shows a horizontal and vertical scroll bar I don't want to see!
    I have already learned that I need to change the user interface VI to a custom "Window Appearance" and disable the "Show scroll bar" properties. But this seems to work only for "normal" VIs but not for VIs that are part of a class.
    Any ideas?
    Ingo
    Solved!
    Go to Solution.

    Thanks Pixar, this was the right tip!
    Although: there seems to be a difference between "normal" VIs and VIs that are members of a class.
    For "normal" VIs it is sufficient to set the property to "Off While Running" and it works as expected.
    VIs part of a class need the "Always Off" setting" which is only accessible via right click on the scroll bars but not via the VI's properties box.
    Thanks and Regards
    Ingo

  • Feature Request:  Standard Keyboard Navigation in Media Browser and Project Panel

    It's been a while since I've had time to submit a feature request.  I've wanted to see this one for a while.  If you agree, please submit your own feature request here: http://www.adobe.com/go/wish/
    System Navigational Keyboard Shortcuts in Media Browser and Project Panel
    Windows (and I'm sure Mac) has a standard set of keyboard and mouse navigational shortcuts for keyboard and mouse.  I'm so used to using them in daily browsing (both in Windows Explorer and in any web browser) that missing them in the PPr Media Browser, or getting a different result in the Project Panel, is still very jarring and slows my workflow (even after having used Premiere Pro [again] since version CS4).
    I propose that the Media Browser and Project Panel should honor the OS defaults for keyboard and mouse folder/file navigation.  A few of the standard (Windows) keyboard and mouse navigational shortcuts are listed below (listed in order of most helpful to my own work):
    Moust Back Button = "BACK"
    ALT + LEFT ARROW = "BACK"
    UP, DOWN, LEFT, RIGHT = steps through the various folders within the view.
    UP, DOWN walks through the directory tree while RIGHT expands the currently selected folder and LEFT contracts that directory (twirl down, etc).
    ENTER opens a folder.
    ALT + UP = "Folder Above"
    ALT + RIGHT ARROW = "FORWARD"
    F2 Renames a folder
    ENTER "takes" that name to the clip. (current functionality used ENTER to rename a file/folder).
    ESC cancels the renaming operation.
    Pressing Enter on any piece of Media or Title, etc should take an "expected" action acording to it's context.  (i.e. ENTER on a video clip would load it inot the Source Monitor.  ENTER on a Title would open it in the Title Editor.  ENTER on a folder would take us into that folder).
    These functions exist in both Windows Explorer as well as most modern Web browsers.  When browsing files and Project folders, it's what I've come to expect.  It's muscle memory, if not intuitive.  I realize that many of these keyboard commands are already in use in other windows/panels of the application, therefore, these commands should be Panel-specific (i.e. ALT+LEFT works differently in the Media Browser and Project Panel than it does on the Timeline/Sequence).  And as always, when making such changes (i.e. changing the behavior of ENTER to F2), this set of keys should be highly configurable based on preference:
    Preference:
    checkbox:  Use OS-specific navigational keyboard and mouse commands in Media Browser and Project Panel
    checkbox:  Use the (very few) "classic" Adobe keyboard commands in the Media Browser and Project Panel
    The most common habit I find myself doing in the Media Browser is clicking the BACK button on my mouse—only to realize, yet again, it doesn't work that way in PPr.
    The most common habit I find myself doing in the Project Panel is pressing F2 to rename a folder/bin.  Of course that doesn't work.  And when I've renamed it, I press ENTER to save the name, but that only moves me to the next folder ready to rename it, too.  I also find, out of habit, I try to navigate the bins using the arrow keys and then open the bin/folder using ENTER.  Instead, my bin is asking for a new name and I hit ESC to avoid renaming it—now THERE's a shortcut that works the way it should. 
    I realize this feature may be controversial to some, since it's not the way we're used to doing things in PPr.  However, I'm sure there are just as many out there, like me, who are confounded as to why PPr has never worked with the "conventional" navigation shortcuts found throughout the rest of the operating system, be it Windows or Mac.
    If you agree with this feature request, please submit your own feature request here: http://www.adobe.com/go/wish/

    Nice ideas Jeff.
    There is a site - Flash Catalyst Wishlist/Ideas where you can post these ideas so that the community can vote on them.

  • Bug with workflow that creates a folder and sub folder with the same name.

    Hi,
    I've found a possible bug in SharePoint 2010 workflows. I only have access to SharePoint 2010 and SharePoint Designer 2010 over my companies intranet, afaik I don't have access to to logs or anything server side so sorry for the any missing information.
    I had some problems with a workflow in one list that needed to create some folders and subfolders in a second list. The production version did a lot more so I setup a test area with 1 list and a workflow that only does the folder creation part and have managed
    to consistently replicate this problem.
    The test list has two columns, [title] and [sub folder title]
    The workflow starts by getting the values for [title] and [sub folder title] into variables.
    It then creates a folder in the same list with the same name as [title], and then creates a sub folder under this with the name from [sub folder title]
    So the resulting structure would be:
    Test List:-
        List item with fields [title] and [sub folder title]
        [folder: title]:-
            [folder: sub folder title]
    If both folder names are different (e.g Folder1 and Folder2) then it works perfectly fine, if both folder names are the same (regardless of character case, e.g. samefolderName and sameFolderName) then the workflow fails.
    As part of the test i made the first action of the workflow to log the message "Workflow Started" to the history list. When the workflow fail there's nothing logged in the history list other than the error: "The workflow could not update the
    item, possibly because one or more columns for the item require a different type of information."
    Creating a sub folder with the same name as it's parent works fine manually but for some reason a workflow can't seem to do it in one action.
    As there's no history list entries before the error it looks like the workflow is just failing to start but if i do something like add an if statement to check if [title] and [sub folder title] are the same, and only create the subfolder when they are not
    then it runs fine doing what it's set to.
    The function of the workflow in our office was for convenience so were just working without it. Just wanted to post to see if anyone else has come across this/could try to replicate or explain this  and see if it's a SharePoint bug or something specific
    to our setup.
    thanks,
    Martin

    not sure about the specifics of your workflow, but if you're querying the list for the folders... keep in mind that a list lookup will only ever bring back ONE item... even if there are several items that meet the filter criteria... example: if i search
    a list for an item assigned to "john doe", there may be 15 tasks that meet the criteria, and it'll only grab one... this is why SP Designer WARNS you when your list lookup may exhibit this behavior.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Problem with multiple sub-panels through Enum case structure: "The VI is not in a state compatible with this operation"

    Hello,
    I am using LabVIEW 8.0 and I am attempting to create a sub-panel that displays the front panel of a sub-vi depending on the selection made by the user via the Enum dropdown menu.  I have wired the Enum to a case structure and applied identical coding to each individual case structure except for obviously changing the sub-vi source.  However, I receive an error "The VI is not in a state compatible with this operation."  I was able to successfully make a single sub-vi work within a sub-panel using a true/false case structure and the exact same coding.  However, now that I am using an Enum box wired to a case structure, I receive this error.  I have attached my block diagram as well.  Could anyone assist me as to where it is that I am going wrong?
    Thanks in advance!
    Solved!
    Go to Solution.
    Attachments:
    enum subpanels.JPG ‏22 KB

    torm wrote:
    I have attached my block diagram as well
    I only see a picture. Can you attach the VI instead? At what point do you close the reference?
    torm wrote:
    I have wired the Enum to a case structure and applied identical coding to each individual case structure except for obviously changing the sub-vi source.
    Well, if the code is identical except for the source, only the source should be inside the case, right? Why duplicate code?
    LabVIEW Champion . Do more with less code and in less time .

  • Is there a way to color layers and sub layers in Fireworks?

    Hello all,
    I'm trying to find a way to colorize the layers and sub layers in the layer panel in Fireworks CS5.5, like you can in Photoshop. I work in a small web design company doing GUI design and when I pass the files on to the developers they are asking for easier ways to sort the content of various layers and sublayers at a glance. In Photoshop you can apply a color to a layer or group in the layrs panel and that works great for an internal labeling scheme. Is there anything like this built into Fireworks or are there any add-ons from a 3rd party etc. that would allow this? It wold save a lot of trouble and time for us. I can't find anything anywhere about it, but it may be that my search terminology is poor. I'm not sure how you would word a search for this kind of feature. I keep getting information about applying colors to shapes etc rather than colorzing the labeling of layers panel itself.
    Thanks in advance for any help or information!

    Thanks for the information,
    I was relatively certain there wasn't a native way to do this. I was hoping maybe someone had created a plug-in but as you say, I could see where it would be very difficult to modify the internal workings of the software like that.
    I went ahead and put in a feature request per the link you provided... maybe someday that will do some good haha! I use sublayers and pages currently and have on a few occasions used states. I have a few options that are open to me if it were just me doing the work but I work with a couple developers and they know how to get around in Fireworks enough to make a slice and select needed objetcs (as long as I group complex shapes and mult-tier effects) but that is about all they do and are willing to know about "design" software lol! They like the sublayers because I think it's similar in behavior to the database and coding software they use. I have convinced them of the beauty of pages for alternate colors and versions of the same site but that is about as far as they are willing to go right now.
    They want to mainly be able to quickly turn off specific text and certain effect layers as needed so they can sort slicing faster and see where the desired objects and layers are at a glance. We've been using sub layers to break things up between these components but they aren't as happy with that because it still means often having to read the names on the layers palette and when you have an extensive project with many items in the layers panel, it gets hard to read at times. It also addes even more folders to sort through becuase of the high level of specicifity. It's not a deal breaker, just a way to speed up the workflow and keep tension down haha! The onion method sounds interesting but I'll have to demo it first and see how easy it is to fool with hiding various combinations... you know how "coders" can be sometimes
    Thanks for the input! Here's to hoping Adobe thinks this feature is worth it in the future! Can't see where it would be terribly difficult to add!

  • ActiveX controls disappear when VI is loaded in a Sub-Panel with Start Modal Dialog usage

    Hi,
    I have a subpanel in a VI (VI1) in which another VI (VI2) is loaded. VI1 is used as a module for an Action step in TestStand. VI2 has ActiveX controls like ExpressionEdit and Adobe PDF reader etc. VI1 loads VI2 in a sub-panel and calls Start Modal Dialog.vi. I have set 'Show front panel when called' to true for VI1 so that the VI pops up when the sequence is run. When the sequence runs and when the Start Modal Dialog VI is called from VI1, all ActiveX controls in VI2 (loaded in the sub-panel) disappears. Here is the screenshot of the frontpanel of VI1 when the sequence is run:
    This problem occurs in TestStand 4.2.1, TestStand 2010 and TestStand 2010 SP1 (as far as I have tested. May occur in older versions too). In the attached file, VI1 is 'ExprEdit Test.vi' and VI2 is 'SubpanelLoad.vi'. The attached sequence is developed in TestStand 2010 SP1.
    How can this issue be solved?
    Thank you,
    Ganesh Kumar
    Solved!
    Go to Solution.
    Attachments:
    Subpanel Load ExpressionEdit problem.zip ‏23 KB

    Hi,
    An update on this issue: I tried changing the order of loading the VI in the SubPanel and the start modal dialog. I called start modal dialog and then loaded the VI (VI2) in the SubPanel. When I ran the sequence, the activeX controls did not disappear (I was pretty sure that the ActiveX controls in VI2 would not disappear since I am calling Start Modal Dialog before loading the VI in the Subpanel). Then I just changed the sequence of operations back to the previous order (loading the Subpanel with the VI and then calling the Start Modal Dialog). When I ran the sequence, the activeX controls where still displayed. But when I ran the sequence with the VI1 backup (that I had taken before making all these modifications) the activeX controls were not displayed. I a nutshell, I now have 2 versions whose codes are the same. But when I run the sequence with action steps for these VIs, the activeX controls disappear when the unmodified backup VI runs and does not disappear when the modified VI is run. I have attached the files that I used along with the sequence file. The details are as follows:
    ExprEdit Test (Not Working).vi - The unmodified backup VI for which the ActiveX controls disappear.
    ExprEdit Test (Working).vi - The modified VIs in which the ActiveX Controls do not disappear (But same code as ExprEdit Test (Not Working).vi).
    ExpreEdit Test.seq - The sequence file containing 2 action steps one each for theabove mentioned VIs.
    SubpanelLoad.vi - The VI that contains activeX controls and is loaded in the SubPanel.
    Note that the sequence is created in TestStand 4.2.1.
    Thank you,
    Ganesh Kumar
    Attachments:
    Subpanel Load ExpressionEdit problem.zip ‏36 KB

  • Weird Positioning for Skinned Panel in Flex Builder 3

    In the previous versions of the Flex Builder 3, even for the
    Flex Builder 3 Beta Milestone 4, my custom skinned Panel component
    worked fine. So I have an image skin and then I put into Flex
    Builder, set the 9 slice settings, did some adjustments to the
    headerHeight. And when I add a child component to the Panel
    component, it will automatically be placed beneath the Panel's
    title (like a VBox layout), position it inside the panel.
    But now, compiling with the same files and css in the new
    Flex Builder 3 final release, the Panel does not position the
    children components correctly anymore. The children are still
    positioned in a VBox layout but the first child started from the
    point 0,0 of the Panel. So, the first child is overlapping the
    Panel's title and all the children seems to go out of the Panel a
    bit. This isn't what it used to be(that's to automatically position
    them in the content are of the Panel component or at least within
    the 9 slice middle area).
    A Panel that isn't skinned at all works fine.
    Is there anything I have to change or do to solve this?
    Thanks.

    Looks like what I am having is something close to that except
    that my problem is related to the borderSkin and not the
    borderStyle. But I have seen some of the comments talking about the
    borderSkin problem too.
    What I have done now is I use the Flex 3 public release but
    copied the sdk from the previous beta version and compile with that
    sdk.
    It kind of resolves that panel bug problem(since I am just
    using the old version) but I am sure I will be missing out any new
    features that the new Flex 3 public release has.

  • Print jTable with a header and footer panel

    Hi Folks,
    I'm currently at a sticking point in a project I'm playing around with. I have a data set of around 300 objects that i'd like printed out in a table. Now, I've gotten the display part down without a hitch but printing the data as well as a header panel and footer panel has been eluding me. I'd basically like something like this...
    Name: some name Order date: some date
    Address: some address Shipped To: some address
    somewhere Some city, some state, etc
    in some city
    Date | Title | Etc | Etc | Etc
    date1 title1 5 $3.00 $15.00
    date1 title1 5 $3.00 $15.00
    date2 title1 5 $3.00 $15.00
    date2 title1 5 $3.00 $15.00
    Total purchases: $60.00
    Total Items: 20
    # of Orders: 2
    Am I barking up the wrong tree by making the first and third sections panels and the second section a table? If not, how the heck do I accomplish this? Most of the time the table has been multiple pages as well - I only need section one on the first page and section three on the last page, but whatever is easiest really.
    My current approach has been basically to make a custom printables, print the first section, figure out how high it was, print the second section and hope for the best, but the third would never show up because it'd never go over two pages.
    Any help would be very much appreciated.
    Thanks,
    Stephen
    Edited by: stephenliberty on May 7, 2009 9:11 AM - more specific subject

    I suppose as a quick update, this is as far as I've gotten and will likely get-
    public class PrintForm extends JFrame implements Printable{
        JComponent headerPanelForPrint;
        JComponent footerPanelForPrint;
        JTable dataTableForPrint;
        public void setPieces(JComponent header, JTable table, JComponent footer){
            this.headerPanelForPrint = header;
            this.footerPanelForPrint = footer;
            this.dataTableForPrint = table;
        public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) throws PrinterException {
            graphics.translate((int)pageFormat.getImageableX(), (int)pageFormat.getImageableY());
            TableFormat tableFormat;
            if(pageIndex>0){
                tableFormat = new TableFormat(0, footerPanelForPrint.getHeight());
            } else {
                headerPanelForPrint.printAll(graphics);
                tableFormat = new TableFormat(headerPanelForPrint.getHeight(), footerPanelForPrint.getHeight());
            MessageFormat footer = new MessageFormat("Page - {0}");
            Printable table = dataTableForPrint.getPrintable(PrintMode.FIT_WIDTH, null, footer);
            int printme = table.print(graphics, tableFormat, pageIndex);
            if(printme == table.NO_SUCH_PAGE){ return table.NO_SUCH_PAGE; }
            return Printable.PAGE_EXISTS;
    class TableFormat extends PageFormat {
        double footerHeight;
        double headerHeight;
        public TableFormat(double headerHeight, double footerHeight){
            this.headerHeight = headerHeight;
            this.footerHeight = footerHeight;
        @Override
        public double getImageableHeight() {
            return super.getImageableHeight() - ( this.footerHeight + this.headerHeight );
        @Override
        public double getHeight() {
            return super.getImageableHeight() - ( this.footerHeight + this.headerHeight);
        @Override
        public double getImageableX() {
            return 0;
        @Override
        public double getImageableY() {
            return this.headerHeight;
    }It works very well with just a header and the table, but I still have not been able to get a footer to show up in the appropriate spot or (preferably) on the last page.
    Edited by: stephenliberty on May 8, 2009 12:29 PM

Maybe you are looking for

  • IPhone 4S 5.0.1 upgrade to 6.1.3 by on air. Is it possible?

    Good day! Exuse me for my fluent English-I am from Russia)) I have Bought a new iphone 4s 64 GB recently. It has 5.0.1 firmware. Today it offered me to update on air to 6.1.3. (it's strange,because ios 7 is actually now) Can I do it or my iphone will

  • Small differences between while canceling invoice.

    Hello, While checking the accounting documents I  have notices that there are small differences between the GR document invoice document. The differences has occurred on GR\IR account and stock account  during canceling the invoice and is 0.01 EUR. T

  • Played with files/folders when trying to add 2nd library all messed up now.

    I know there are many threads on this subject. First when I got my new laptop I transfered my library. It worked but the folder listings looked different/odd to me. Now husband decided he wanted a nano and I tried to add 2nd library to my laptop. I t

  • Can you sinc 6th gen ipod w ipad mini without using a computer? Does apple have a cable?

    I travel a lot and I'd like to sinc my 6th gen ipod nano using my ipad mini rather than having to bring my asus laptop.  Is there an apple cable to connect the devices so I can pull the itunes to the ipad from the cloud and transfer to the ipod nano?

  • IMovie '08 exporting problem

    I don't know if this question was asked before, but my movie plays perfectly normally when i play it in imovie, but after i export it, when i open it in itunes i just get a black image with music playing. can someone tell me what is wrong with it? i'