Fixed Layout of Components

I am creating a platform-independent application that is composed of 7 JPanels and 1 Panel. I need to put all these (J)Panel classes into one Jpanel. My problem is the individual panels are of different sizes. I have tried using GridBoxLayout but cannot let all of the components show. Most of the components are only drawn in reaction to events brought forth by the other components. This means that, initially, the rest of the components are empty. Please help cause i'm kinda desperate. How do I give these components "fixed" sizes. They all tend to shrink when they're empty.
Appreciate your help. - Noel

Can use absolute positioning to set things by pixel.
make it not resizable.
setResizable(false);
place frame on screen also using pixels
setBounds(100,100,500,400);
will work better on all platforms if you set default things
like font size and type.
turn off layout manager
setLayout(null);
then use setBounds statements
Examples:
panel.setBounds(getInsets().left+230 ,getInsets().top+12,248,65);
or like:
panel.setBounds(new Rectangle(10,20,30,40));
10 = x
20 = y
30 = width
40 = heigth
I'm sure there are lots more methods to use check out
API docs on setBounds
You may also be able to use GridBagLayout
has x and y weight statements

Similar Messages

  • Recommended way to design a book chapter with a set of fixed layouts?

    I am starting on a book and am trying out Indesign CS6.
    This is a science book, and the bulk of it uses only a couple of layout formats, typically with 3 images and some text frames at fixed positions. Each page content is independent of each other (i.e. text does not flow to the next page)
    I could design the layouts (or templates) for the left and right facing pages and even set them as master pages. However, any individual page could be on the left or right facing page and the image positions are slightly different due to the gutter. Even if I override each item properly, inserting a single page at the beginning shifts all the pages from left to right and vice versa, leading to mispositioned text and images. If I had a 2-page spread master page, it would end up with duplicate objects instead. I'm trying Master Pages now because I might foresee slight adjustments to the page layout midway through the project, and don't want to reposition/resize everything over again. Ideally it should be adjustable from a single location...?
    Is there an elegant way to resolve this? I am familiar with Javascript but have not dealt with it in Indesign yet, so I'm very open to using it if necessary.
    Thanks in advance for any input.

    Thanks Ankit. I have actually gone through several Master Page tutorials and am already overriding objects from the various Master Pages I am using.
    The problem is, if I have a 2-page spread for a Master Page, inserting a page before the spread (quite common during this project) that uses the Master Page will result in duplicate objects on each page. i.e. the page will contain BOTH my overridden objects from the left side plus the master page components on the right side. It becomes a complete mess.
    If I had a 1-page Master Page for a particular layout, it would only be for the left facing page, and I would face the same problem when inserting pages again.
    From what I see now, Master Pages are meant for completely static components on the page and not for fixed layouts.

  • How do i add Edge animate .oam files to Fixed Layouts Epubs in Indesign cc 2014?

    How do i add Edge animate .oam files to Fixed Layouts Epubs in Indesign?

    Hi,
    There is a bug on iOS7 which does not let edge animate work correctly here. This issue will happen on iPad and not on Mac OS.
    There is a similar thread that explains in detail this issue you are facing:
    https://forums.adobe.com/thread/1513879
    Regards,
    Pooja

  • In a fixed-layout epub is there a way to turn off the faux spine effect for just one pair of pages?

    I'm formatting a graphic novel as a fixed-layout epub.  Because the pages are generated in Manga Studio with an intended print target, it by far makes the most sense to just use a single, large image for each page.  I'm coding the .opf, .xhtml, and .css files by hand, and I more or less understand everything I'm doing.
    Because the pages are often full bleed, I actually want the faux book chrome afforded by having <meta property="ibooks:binding">true</meta>.  The shadow effect in the gutter gives a nice deliniation between the pages without me having to do anything additional with the formatting.
    However... a handful of pages in the book are two-page spreads.  These look good enough with the shadow spine in the middle, but they would obviously look better without it.  What I'd like to do is identify these particular page pairs as two-page spreads and turn the binding chrome off for just that page pair.  I could of course "fake it" by adding a shadow to the pages themselves (except the spreads) and turning off the binding chrome on the entire book, but it'd be a lot easier to be able to do it in software.
    Apple's formatting guide mentioned nothing of the sort, and searching for a while hasn't turned up anything (not even anyone asking the same question so far as I can tell).  I'm guessing this isn't possible, but it never hurts to ask.  Anybody know of a way to do this?

    Just found this... Sorry to waste the post...
    http://reviews.cnet.com/8301-13727_7-20083707-263/managing-mac-os-x-lions-applic ation-resume-feature/?tag=mncol;title

  • How to use a table to layout af components?

    i've been trying to figure out how to use a regular table
    to layout some components that are not databound ..
    I couldn't figure out how to use simple html
    Ie: the verbatim tag didn't like having unclosed tags...
    so i couldn't compile
    <f:verbatim>
    <table><tr><td>
    </f:verbatim>
    then my af controls
    i tried using a <af:table value="{1,2}">
    so it could render a row...
    but there is no <TR> equivalent... and it shows the column headings..
    and the presence of the table is too obvious (scroll bar .etc. and have
    to do a ton of css classes to make headers disappear..etc)
    anyway to nicely layout controls?

    Try the h:panelGrid component.
    http://www.jsftoolbox.com/documentation/help/12-TagReference/html/h_panelGrid.html

  • How do I create a fixed layout landscape-only epub3 in Indesign?

    Hi
    I have been trying to create a fixed layout epub3 from indesign without results.
    What I've done is to create a book with 4 pages in layout format 1034px/768px, each of them with text and pictures. I gave the text a style with the paragraph and exported in epub3 format.
    When I upload this to the ipad it works as a epub2, the layout is not fixed.
    When I open the files and read the code it actually is like a epub2, there is no fixed layout meta tag, there is no page dimension in each page, in the css the body size is auto and so on.
    I also opened the files and added without any result the following in the .opf file.
    <meta property="rendition:layout">pre-paginated</meta> (this should create the fixed layout option)
    <meta property="rendition:orientation">landscape</meta> (this should create a landscape only view)
    <meta property="rendition:spread">none</meta> (this should create a one page at a time view)
    Is there a way of achieving what I want or it simply is a functionality not yet introduced?
    Thanks for any advice

    InDesign CS6 or earlier is not designed for creating fixed layout EPUB files. Essentially it would have to be done in a very painful, very manual process. Anne-Marie Concepcion describes the process in this Lynda.com video:
            Creating a Fixed-Layout EPUB      
    The Rorohiko product is the best thing going at the moment.

  • Another Blank Page in Fixed Layout Epub

    Having trouble with a blank page in this epub (link to epub file on acrobat.com).
    I've read a couple of threads, and have exported the indd as an indb and reopened (trying to mitigate the possibility of the file being corrupt). I had to fix a date in the content.opf that was in the MM/DD/YYYY format (reformatted to YYYY-MM-DD). To repackage the epub, I created a new zip file, and added the mimetype file first, and then added the META-INF and OEBPS folders. Everything checks out at EPUB Validator (beta) Results. The file looks horrid in Adobe Digital Editions 3.0, but looks great in Calibre.
    As you can see from the file name, I've tried a number of things to try and deduce the issue (deleting multiple pages, one at a time, to see if there was an issue with a specific page, tried to build the epub without a cover image...)
    It's always the 3rd page that is blank, even after removing multiple pages, which I find curious.
    Any insights from others that have dealt with these problems trying to get Fixed Layout epubs from InDesign CC 2014 into Google Play Books is very much appreciated.

    Hi,
    The file is missing here: (link to epub file on acrobat.com). Could you post it again?
    Did you see your exported FXL EPUB in any other reader? iBooks is recommended but Readium also supports FXL EPUB and would be equally good to verify this issue.
    Regards,
    Pooja

  • InDesign CC ePub Fixed Layout not showing up as an Export option

    I am trying to export an ePub Fixed Layout, but when I go to Export, I only have the ePub option - No Fixed Layout. I have updated to the latest version on Cloud and have restarted my computer. Any solutions?

    What operating system are you running? If you're running Mac OS X 10.6, you will not be able to download the latest version which is InDesign CC 2014. That is required for ePub Fixed Layout.

  • How do you add read aloud to a fixed layout book?

    I have seen some ibooks (childrens books) with read aloud abilities. I know you have to do some programming but what program do you use to edit the code, can you preview it in ibooks (on ipad) if you modify the code, and is there a non-programming way to add audio/speech to your ibooks through ibooks author? Does anyone know the process or what steps and programs needed to add the read aloud feature to an ibook? (I know there are many others out their who would like to know the answers to these questions). Thanks.
    Also, I have HD images (2000x1462) for my ibook in ibooks author and when I preview it on an ipad 2, it downsizes it to regular quality (like 1400x1200 ish). Since I don't yet own an iPad 3, do the images stay HD quality when an ibook (from ibooks author) is viewed on an iPad 3?

    Okay, I just finished building my Ibook in Ibooks Author. I tested one of the free ibooks (Peter Rabit) and liked how it reads to you. I have read many articles and other posts here on Apple.com and everyone seems to want to add this read aloud feature. I have the Fixed Layout EPUBs Miniguide and iBookstore Asse Guide 4_8 and even though the miniguide explains things step by step, its like reading Greek. I am new to programming. Since I assume you are an expert, what I need is help getting started. I'm pretty good at figuring things out, I just need to get a jumpstart as fast as possible. (I don't want to spend a whole month trying to add this read aloud feature).
    1. I have a finished book but its not looking like the fixed layout kids books I see on ibooks. Is there a simple way to just tell ibooks its a fixed layout and get rid of the textbook features without using programming? (I know there are people out there who agree with me)
    2. I know that I need a XML SMIL compatable text editor (BBedit is the only one I heard is free and good). But where do I begin? Is there some kind of template of code where I just add in the code to get the book to read from audio files? If I edit the epub file, will this book still be able to be sent to the iPad through ibooks Author for a preview?
    3. I am familiar with Audacity so the audio part is doable. But the coding is scaring me. To add a word by word reading for the ibook requires more programming.
    4. Tell me a short list of what I need to do in order. I have all this information but its overwhelming because I hate programming. (I tried making an iphone app and gave up because it required Xcode, which is way out of my league). I don't know where to start from my finished iBook so what is the next thing I need to do?
    Thanks Jessica

  • Three column fixed layout and text-wrap

    I have a page using the three col fixed header and footer
    layout.
    I know that if your #maincontent div has a left margin the
    width+ of the left sidebar, the sidebar appears to continue down
    the page no matter how much content is has in it. In the 3 column
    fixed layout comments it says to delete that margin if you want the
    text to flow into that space after the sidebar content ends. This
    is what I want but it does not work in IE 7.
    Is there a workaround?
    www.sandracase.com
    www.sandracase.com

    Instead of that ,  define three windows for three clolumns and then define three text modules  that would be very easy. I have done the similar requirement for 2 columns.
    Reward points if useful.
    Regards,
    Nageswar

  • Fixed layout ePub page turn not working in portrait mode

    Hello all,
    First time poster here. I created a childrens book, full color ePub from the Apple 3.1 ePub template. Everything sems to work great in general.  But I wanted the book to be in portrait mode only to get the most out of the graphics. I have the package.opf file set for portrait mode, which shows just one page (correctly), but when turning pages the cool page turn animation does not work when testing on my iPhone5 and an iPad2.  Pages just slide left or right.  But when I change the opf to allow landscape mode, when testing on iDevices, it shows two pages at a time in any mode and the page turn effect works perfectly.  Any way to get the page turn animation to work on just a single page in Portrait mode? To add to it I have an ePub example book from a non-Apple publisher that defaults to single page portrait, and is mostly text (so I'm not sure if its fixed layout or not), and the single page portrait mode allows the page turn animation to work perfectly.
    Thanks all!
    EDL

    The small caps are wrong in Source Sans Regular. This are not correct small caps . This seams to be missing in the font.
    But in italic style you will find correct small caps. They only work in InDesign not in ePub.
    And if you look in my images (first from InDesign, second from Radium - iBooks looks the same) you can see many difference between InDesign and ePub.
    Note the word "pfiffig", the I at the beginning of "Igor" in second paragraph and the "a" in the italic paragraph.
    This is very frustrating! 

  • Please point me to examples of fixed layout ebooks with javascript and animations

    Hi! I am a danish children's author and want to create an ebook in "Fixed layout" for the ibookstore. I want the ebook to have simple interactive and animated features triggered by javascript. I would like more knowledge about what is and isn't possible with the javascript and CSS in apples fixed layout format. I have already viewed the "Yellow Submarine" ebook and Apples sample ebook "Sonnet 18". Are there more examples available?
    Please do not point me to apps. There are great interactive book-apps for children - but for this project I am only interested in the Fixed layout format for the ibookstore.
    All replies will be greatly appreciated, thanks!

    if I can help, let me know...
    check out the new series to help create publications. just search in the iTunes Store for An iBuild Opportunity

  • Please point to ebooks in fixed layout format with javascript animation and interactivity

    Hi! I am a danish children's author and want to create an ebook in "Fixed layout" for the ibookstore. I want the ebook to have simple interactive and animated features triggered by javascript. I would like more knowledge about what is and isn't possible with the javascript and CSS in apples fixed layout format. I have already viewed the "Yellow Submarine" ebook and Apples sample ebook "Sonnet 18". Are there more examples available?
    Please do not point me to apps. There are great interactive book-apps for children - but for this project I am only interested in the Fixed layout format for the ibookstore.
    All replies will be greatly appreciated, thanks!

    if I can help, let me know...
    check out the new series to help create publications. just search in the iTunes Store for An iBuild Opportunity

  • How to prevent page turn in margin tap on a fixed layout ePub ?

    I have created a fixed layout ePub for Apple iPad with some on-touch animations on tap. It works fine except the pictures which are in extreme margins (left and right). On touch it activates page-turn rather than the required animation. Is there any way to prevent page turn? Please help.

    event.preventDefault() should do the trick on your own controls. If you are using one of the built-in iBooks shortcuts (read-aloud start/stop button comes to mind) then you may not have full control.

  • Fixed Layout EPUB is not displaying correctly in any of the popular epub readers.

    Hi,
    After creating the doc in the Indesign cc, I exported it to the fixed layout epub format. The result was catastrophic! The images, text, font size - everything was chaos. I needed the epub to be working in ipads and android tablets.
    Can anybody help? Need to deliver it to my customer on priority.
    I tried the output in ibooks, Aldiko, ADE and a few other popular readers.
    Thx
    VJ

    Hi Ananda,
    Adobe Digital Editions has come up with a new update ADE 4. You can view your Fixed Layout EPUB here. Please note that ADE 4 on Mac works fine with FXL EPUB exported from InDesign CC 2014, you might see some issue on Windows though. We are aware of the issues and the team is working on fixing these issues with ADE on Windows.
    Readium is also a good reader which displays FXL EPUB fine.
    Regards,
    Pooja

Maybe you are looking for