Tired of Layouts

Hi,
I don't know whether I can ever become a good GUI programmer. I am getting screwed up every time my tester opens my GUI apps and tests something. And I am having a great problem with layouting the components. Let me explain what I have just went through...
I was having JTables at many places in my application. And we wanted to have a consistent size for all the tables throughtout the application. But because the number of columns are different in the tables, I used preferred sizes for the JTables and I was setting the preferred sizes by getting the screen sizes thinking that it work on all screen resolutions.
But, when I resized the window lesser then the preferred sizes of the JTables, I got screwed up. The tables were becoming very small that it can hardly make a single cell visible. So, I think setting preferred sizes definetly is not the solution for placing the components in a container.
What kind out layout should I do if I have to use fixed size for JTables but not getting crashed when the window size comes smaller than the preferred size. Or, should I not use preferred sizes at all if the windows can be resized. And by the way, I am adding the Tables to Scrollpanes, so this is clearly stating that there is something seriously wrong with my approach.
And what is the best and clean way to develop a swing application, I am able to understand all the examples in the swing tutorial, but when it comes to putting several components and do all the actions, I am messing it up. I love Java, but I would like to do it in a neat and good way. Please suggest me something.
Thank you very much.

If you want the tables to always be readable then you will probably need to setResizable(false). At some point the user has to realize that they can't make the window real small and still expect to read the data. Because no matter what layout you use something has to give when the window is resized.
Just read each how to for each layout and keep in mind how each one honors or doesn't honor max size, min size, and preferred size. Nesting layouts is your friend.
Keep in mind user experience, and user expectations.

Similar Messages

  • Sick and tired of new skype layout - FIX IT IMMEDI...

    I DEMAND THAT YOU REVERT MY SKYPE TO THE OLD LAYOUT.  I DID NOT ASK FOR THE NEW LAYOUT AND IT IS ABSOLUTE RUBBISH

    IT IS NOT UP TO ME TO REVERT BACK TO OLD SYSTEM.  I NEVER ASKED FOR THIS HORRENDOUS VERSION SO SKYPE REVERT ME BACK IMMEDIATELY

  • Is MS Word really the best Oracle can come with for designing layouts?

    Hi all,
    I am returning to XMLP development after first looking at it two years ago. Back then I advised our company not to use it for all report development as MS Word didn't seem robust or flexible enough to generate report layouts.
    Now I am working for a client that wants to use XMLP and am trying to develop a fairly simple tabular report but with about 5 levels of grouping. The resulting RTF template therefore has 5 levels of nested tables. Whilst all the data is coming out fine, I am finding it very hard to make the layout look anything like as within Word it is hard to select table cells, visually establish the heirachy of the tables, etc. A simple task like putting the correct borders around cells so they render correctly is very hard to get right. In addition to this I have a number of areas where erroneous white space is being displayed.
    Is Oracle seriously going to continue to expect developers to use MS Word as a layout designer or are they going to develop a decent product fit for the task? I am tired of hearing from sales guys, functional consultants and Oracle blurb how easy XMLP is to develop reports in. Yes, it is if the report is simple, but try and develop a more complex layout and it is anything but simple.
    Anyone got any advice or experience they can share? Are there any alternative tools on the market? A response from Oracle wouldn't go a miss to help stem my disappointment with both product and company!
    Cheers,
    Jon.

    Hi Guys,
    forgive me, that I am biased - I am responsible for the BI Publisher tool development.
    First one comment regarding the nested table - The code we generate for that is the worst part of the template builder. We already have implemented a new version, which is much better - to be released after 10.1.3.4. I apologize for us not fixing that issue earlier.
    Yes, the BI Publisher template builder for Word is different. Naturally it is better for some tasks and maybe weaker for some other ones. Nobody forced the E-Business Suite teams to take up BI/XML Publisher - I was PM in one of the teams so I know for sure - we all decided that we rather use BI Publisher. In our eyes it is a step forward and not 10 steps back.
    I was product manager for Oracle Contracts. We tried to create a contract layout with Oracle Reports and it was not pretty. Sure If I create just some data reports all the classical reporting tools are fine (Do you really like these other tools???)
    But creating contracts or more business style reports like invoices is MUCH easier with BI Publisher. With the first generation of the tools, it took my 2 hours to convert a customer contract example (in word naturally) into a production ready contract layout. Now, I could probably do it in 15 minutes.
    While PL/SQL has great acceptance in the Oracle Community, it is not everyone's favorite - for example Peoplesoft, JD Edwards or Siebel developers can not use PL/SQL.
    XSL has its quicks and wish it was a better language, but it is an OPEN standard.
    We have migrated about 3000 Oracle reports, and all of the Peoplesoft and JD Edwards reports... I don't think it is a toy. It has the same concept as Java Server Pages and it uses Word for formatting instead of HTML.
    True, knowing SQL does not help with BI Publisher reports, but user with a little SQL knowledge can do havoc to a production system. BI Publisher complete separates the responsibilities. SQL for professionals and Word for formatting. I think there are more people out there that know Word than SQL.
    Embedding the XSL did not turn out all that straight forward. We are also missing one feature in the standalone, that we had in E-Business Suite and that will be included in the 11g release: Subtemplates.
    Subtemplates allow you to write complicated XSL libraries that can be called from within RTF templates. For all of you who need to write complicated logic, it is much better to write the logic into an XSL stylesheet and just call out from within the Word template than coding to complicated logic into the Word document. Again my apologies for us not providing this option earlier.
    People also had to learn java for Oracle applications, when they only needed to know PL/SQL before.
    For all the people who don't like Microsoft Word, we are offering a web based alternative shortly after the 10.1.3.4 release. This tool may be better suited for data style reports - you will be the judge.
    I appreciate your feedback and I open for any suggested improvements.
    Thanks,
    Klaus
    Message was edited by:
    KlausFabian

  • Creating template areas when using CSS based layout

    Hi:
    I'm ransitioning to pure CSS based layouts. When I used tables for layouts I could select a table cell and make that an editable template region. But when I'm setting everything up in Divs, you can't "select" a div in Layout mode. Indeed, layout mode doesn't really work at all - things are shown all jumbled and you have to use Preview or open in a browser window to see how things will look. (I'm not using the grid - maybe I should?) Is there a way to select a div and make it an editable template region?
    I'm using GoLive CS2 on a Mac.
    Thanks!

    Is this affecting ALL text on that page?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "matthewtrefz" <[email protected]> wrote in
    message
    news:eo5o8v$aqa$[email protected]..
    > We have recently performed an upgrade to our site. The
    entire layout is
    > css
    > based. The problem we have run into is that Contribute
    users can no longer
    > select the content using the mouse. In fact the only way
    to edit the
    > content is
    > to use the arrow keys on the keyboard. Though it is
    possible to edit
    > content
    > this way it is very time consuming and confusing to most
    of our users.
    >
    > I have tired to edit pages based on a template, and
    pages not based on a
    > template and get the same issue.
    > What can I do to fix this problem?
    >
    > The web address is
    http://engineering.osu.edu
    >
    > Thanks,
    > Matthew
    >

  • Layout using div's

    Hi.
    I am using BEA Portal 10 and I need to wrap my code in a div tag right after the body tag. In version 8.1 this could be done inside render:begin start and stop, and render:ending start and stop. Now I do not know how to do it. I have read a couple of places that this is possible, but I can not find any samples or tips anywere.
    I also would like to style my layouts using div's rather than tables. Anoyne know how to do that aswell I will be thankful.
    This is basically what I am trying to achieve
    <body>
        <div id="container">
              <div id="top">Header</div>
              <div id="leftnav">Left</div>
              <div id="rightnav">Right</div>
              <div id="content">Content</div>
         </div>
    </body>Regards
    Avec
    Edited by avec at 05/08/2008 8:00 AM

    Thanks, Deepak
    I have done just what you recommend earlier. I have mye body.jsp, but I do not know how to edit it. What is valid tags, I can not write html or jsp it seems. And I do not find a way for me to write begin and end tags. I can not find documentation (just API) and not one single sample anywhere. The code is provided below. Where is the endtag rendered, and how can I edit anything in between?
    <jsp:root version="2.0"
        xmlns:jsp="http://java.sun.com/JSP/Page"
        xmlns:skeleton="http://www.bea.com/servers/portal/tags/netuix/skeleton"
    >
        <jsp:directive.page session="false" />
        <jsp:directive.page isELIgnored="false" />
        <skeleton:context type="bodypc">
            <skeleton:control name="body" presentationContext="${bodypc}" presentationId="container">
                <skeleton:children/>
            </skeleton:control>
        </skeleton:context>
    </jsp:root>The layout editing I have tired out before, but I fails everytime. The layout will now display.
    I have a support Issue on this matter, but BEA has not followed it thru...
    Regards,
    Avec

  • Total Crash (CC) on attempting to Create a Fluid Grid Layout!

    I hope someone can recreate this, because I'm climbing up the walls right now.  Where to start?  I'm trying to create a single fluid-grid page.  I'm too tired to repeat the steps concisely, but after being prompted to save my CSS, I do.  That's when the errors begin. 
    First one:
    2) Then, when opening the files, it's just blank.  No grids, no layout code, just a plain HTML file.  So, then,I figure I should save everything, to "generate" the boilerplate CSS, and the JQuery min page, which should probably appear by default, but I go to save anyway.  That's when it crashes.  So, I open again.  Try to open the first file I created: crash. 
    3) So, I figured maybe my installation was botched.  I uninstall and reinstall.  Same crashes.  So, I figured maybe there might be corrupt files in my web folder (really just trying anything at this point.) So, I create a brand-new site. Same exact scenario.  
    Now, I understand no one has really had an opportunity to experiment, so this is probably a silly exercise, but maybe someone can recreate this?
    I'm too tired to explain anymore but I was really, really hoping that I could use this option to lay out a working comp for a client.  Job starts Wednesday. It's not possible to learn Responsive Design in a week, as someone suggested, so I'm really at a loss... I simple don't know what to do! 

    Hi jonfreed77,
    People facing similar issue, posted following resolution in another thread recently.
    Please give it a try and confirm if they work for you.
    8. pcepp,
      20 Jun, 2013 8:24 AM in reply to pcepp  
    Report
    I found a solution that worked for me.
    I removed all the fonts that Adobe CC installed out of my Library:Fonts folder and just left in the Apple Basic fonts like Arial, Courier etc... Launched Dreamweaver CC and the CSS designer panel works. I have no idea exactly which font it is, or creating the conflict. All I know is that it works great now.
    |
    9. dogdog63,
    20 Jun, 2013 10:11 AM in reply to dogdog63
    Report
    very strange - I installed Illustrator CC and then I had no more problems with Dreamweaver! No more crashes when close or create files and no more problems with the CSS designer. Error messages during create fluid grid layouts are also gone ...
    Michel:
    I think I figured it out on the Mac. Be sure that Verdana is activated in Font Book. What tipped me off to this was a warning I was receiving when trying to open After Effects. It was saying that the program needed Verdana for the user interface to work. I thought that maybe Dreamweaver needed Verdana too. Sure enough! Hope this helps you guys.

  • Gaps in layout - especially in IE

    What am I doing wrong? Dreamweaver seems so touchy with
    regards to adjusting layout cells - the slightest alteration can
    throw off the format, usually adding extra gaps in. It's generally
    only a problem in IE/win, though occasionally I see it in Firefox,
    not nearly as often though - sometimes stretching then reducing the
    cell seems to get it back in place, but this is so tedious. Is
    Layout mode not 'kosher'?
    Example - client site I'm working on:
    http://adambarisoff.com/btr/index.html
    Notice the gap between the house pic on the left side and the
    navbar underneath - it shouldn't be there, and it's not on all
    pages - but in IE things look less consistent all around.
    Sorry if this is a total newbie/tired question, but I have
    searched. Really the only thing slowing me down.

    On Thu, 5 Jul 2007 18:35:58 +0000 (UTC), "adambarisoff"
    <[email protected]> wrote:
    > Example - client site I'm working on:
    >
    http://adambarisoff.com/btr/index.html
    >
    > Notice the gap between the house pic on the left side
    and the navbar
    >underneath - it shouldn't be there, and it's not on all
    pages - but in IE
    >things look less consistent all around.
    See
    http://apptools.com/rants/spans.php
    The spans are a result of using layout mode to draw tables.
    That
    approach will never produce stable pages.
    Gary

  • Local keyboard layout?

    I am trying to turn on my local keyboard layout.
    And bumped into problems,
    At first Iinstaled as my friend said xxkb. but it shows only UK flag and nothing more.
    Then I tired to find config files of xxkb but with no suces. -> Where are they?
    So I gave up with xxkb I learned from google about command:
    setxkbmap -layout lt
    It makes difference. Useless symbols instead numbers. Ahhh.
    So now I am totaly confused what have I do now?
    Yeh I was lazy to do this carefully and check everything at install moment. But if I remember right before tons of updates it worked by editing xorg.conf, but i needed numbers more than all my native letters so I used us for long time.
    ~~
    Strage thing that with Firefox everything ok: lt layout works but not with abiword?
    Last edited by ProzacR (2007-09-07 16:53:00)

    What you should need to do to get UK layout is to add the follwing in your xorg.conf:
    Option "XkbLayout" "uk"
    Make sure that your keyboard model (XkbModel) is set correctly too as it can mess stuff up too!
    If you havn't set the locale in rc.conf correctly i guess it could pose a problem too, but usually keymap and locale is just for console based stuff and not X stuff.

  • Report developed in 6i and open and run in 10g, Web Layout is not working

    Hi,
    Initially reports were developed in Reports 6i now we need to convert into 10g. I just opened the .rdf in Reports10g. Report is successfully running in paper layout and showing the data. But when i try to run the report in Web Layout im getting a BLANK INTERNET EXPLORER SCREEN. Why is it so? What should i do to run my report successfully in Web Layout? When i see Web Source, i am seeing the below code,
    <%@ taglib uri="/WEB-INF/lib/reports_tld.jar" prefix="rw" %>
    <%@ page language="java" import="java.io.*" errorPage="/rwerror.jsp" session="false" %>
    <%@ page contentType="text/html;charset=ISO-8859-1" %>
    <!--
    <rw:report id="report">
    <rw:objects id="objects">
    </rw:objects>
    -->
    <html>
    <head>
    <meta name="GENERATOR" content="Oracle 9i Reports Developer"/>
    <title> Your Title </title>
    <rw:style id="yourStyle">
    <!-- Report Wizard inserts style link clause here -->
    </rw:style>
    </head>
    <body>
    <rw:dataArea id="yourDataArea">
    <!-- Report Wizard inserts the default jsp here -->
    </rw:dataArea>
    </body>
    </html>
    <!--
    </rw:report>
    -->
    Please, guide to achive the Web Layout Report.
    Thanks & Rgds,
    M Thiyagarajan

    Hello,
    The answer is in the Migration FAQ :
    When I open an Oracle6i Reports Developer report in the Oracle Reports Builder 10g and run my Web layout, I get an empty Web page in my browser.
    http://www.oracle.com/technology/products/reports/htdocs/faq/faq_migration.htm#368
    Regards

  • Alteração dos layout's de impressão padrão do SAP B1

    Pessoal, bom dia.
    Gostaria de saber como faço para incluir um novo dado em um layout padrão do SAP B1, por exemplo: Fluxo de Caixa.
    Toda vez que tento incluir ou alterar qualquer campo o layout traz informações que não tem nada a ver ou repete em todas as linhas.
    Eu queria alterar por exemplo, no Fluxo de Caixa, que ele traga o Nome do PN e não o código do PN.
    Agradeço desde já.
    Abraços,
    Antonio Melo

    Danilo,
    A questão é que os campos demonstrados no layout de impressão do fluxo de caixa não demonstram de quais tabelas sao os campos.
    Criei um novo campo e o relacionei ao campo Código do PN. Ele me trouxe como resultado o nome do meu primeiro PN cadastrado no sistema para todas as linhas, ou seja, trouxe errado.
    Continuo na mesma.
    Abs,
    Melo

  • Sales quote layout rows doubled in crystal report layout

    Dear All,
    Sales quote layout rows doubled in crystal report layout.
    In sales quote layout the rows are doubled. Even in the standard layout. If the quote contains only two rows. Then it is doubled as 4 rows in the crystal report layout.
    It is happening in the particular database. Other database are working fine. I request you people to help me to overcome this issue.
    Regards,
    Siva

    Hi Siva,
    If this is regarding CR in SAP B1 then please repost to the SAP Business One Application space.
    -Abhilash

  • IN ALV Report 'SAVE LAYOUT' option missing

    Dear All,
                 I have created one report in ALV GRID using ABAP OBJECTS(Using class CL_GUI_CUSTOM_CONTAINER and
    CL_GUI_ALV_GRID).But in output when i click on change layout option i am not getting SAVE layout option.
    I have already passed I_SAVE parameter = 'A' while calling metod SET_TABLE_FOR_FIRST_DISPLAY. But i didnt worked.
               Please do needful.
    Regards,
    Mayank

    Hi,
    You can manage display variants by using parameters, “is_variant” and “i_save” of “set_table_for_first_display”. Here are options for variant handling. <structure_name> is the variant-defining structure of type “DISVARIANT”. The field “report” in this structure should contain the value of “sy-repid.”
    Hope this helps. Reward points if helpful.
    Thanks,
    Balaji

  • How to remove blank pages from WebI Report in view page layout option

    Hi,
             I am working in Business Objects XIR2 environment. I have a WebI report with several sections. I need to show the report as a book with 69 sections (each section on new page). there are 69 sections on cost center and each cost center section has almost 10 sections embedded in it. When i see in regular view - I only see 69 pages but when I try to see in "View Page Lay out" option, there is one blank page added after each results page.
    Please let me know how to remove this blank page. I need to give users the option to download the book as PDF on to their machine. Now, when I download to my machine, I see one blank page after each results page.
    Thanks in advance.

    Jus convert your report in Page Layout mode and see if your first pafe is getting expand in the second page.
    Now check if there are any cell going into second page.
    - if there are any blank cell which is there after table.
    you have to check formating very carefull.

  • Dunning Report Print Layout Issue

    Hi
    I have a problem with the Dunning Report Print layout (Dunning All (system)). In the wizard I select all the Invoices (Which are over due and current) for the BP and sent to printer.
    In the print out all the due dates are mixed with the acctual Due dates.
    Acctuall Invoices
    Doc No.                  DOC Due            Level
    ======================================
    10000                     05.11.07              2
    10001                     25.02.08              1
    10002                     03.03.08              1
    10003                     03.04.08              0
    Print out
    Doc No.                  DOC Due            Level
    ======================================
    10000                     05.11.07              2
    10001                     03.03.08              1
    10002                     03.04.08              0
    10003                     25.02.08              1
    How can I fix this. This is coming from the System template and we havent change anything.
    Could you please help me.
    Thanks
    Sanjaya

    Hi
    I solved the problem. But the issue was when i ran the dunning wizard the layouts messed up. For example if I had a dunning letter with 3 lines (overdue documents). The last line would copy itself 4-6 times (it would show the last document 4-6times so the total lines in the dunning letter would be 7-9 lines). But I solve the issue. Somehow the attention person (which I got from the contact persons (ocrp) and not from the document contact person (oinv) ) did the issue. When i switch it to the oinv the issue was gone.
    kind regards
    Søren
    Edited by: Bundgaard Søren Hollænder on Jan 26, 2009 9:56 AM

  • Layout variant not working

    Hi ,
      I have executed a report . I hide one column and saved the layout. The layout name comes on to the selection screen parameter which i have defined on the selection screen.
    PARAMETERS: p_vari LIKE disvariant-variant. " ALV Variant
    i have made the i_save = 'A' and is_default = 'x'. and also used other function modules reg. Variants.
    but if i select the layout variant in the selection screen and execute it is not working . the hidden column also coming on the output.
    But if the select the layout variant on the output of the report from the icon select layout it is working fine. the column which i have hidden is not coming. it is perfect. why it is not working when i select the variant in the selection screen.
    Regards,
    Rose.

    Hi,
    Please try this code
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
      w_variant-report = sy-repid.
    * Function module to show the variant of a ALV report
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
        EXPORTING
          is_variant = w_variant
          i_save     = 'A'
        IMPORTING
          es_variant = w_kvariant
        EXCEPTIONS
          not_found  = 2.
      IF sy-subrc = 2.
        MESSAGE ID sy-msgid TYPE 'S'      NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
        p_vari = w_kvariant-variant.
      ENDIF.
    END-OF-SELECTION.
    MOVE w_variant TO w_kvariant.
        MOVE p_vari TO w_kvariant-variant.
        MOVE sy-repid TO w_kvariant-report.
    *   Function module to check the variant existence
        CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
          EXPORTING
            i_save     = w_save
          CHANGING
            cs_variant = w_kvariant.
        w_variant = w_kvariant.          
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program          = sy-repid
          i_callback_pf_status_set    = 'SET_PF_STATUS'
          i_callback_user_command     = 'USER_COMMAND'
          i_callback_html_top_of_page = 'HTML_HEADING'
          i_grid_title                = text-t06
          i_grid_settings             = wa_grid_set
          is_layout                   = wa_layout
          it_fieldcat                 = t_fieldcat
          i_save                      = 'X'
          is_variant                  = w_variant
          is_print                    = wa_print
        TABLES
          t_outtab                    = t_header
        EXCEPTIONS
          program_error               = 1
          OTHERS                      = 2.
      IF sy-subrc <> 0.
        CASE sy-subrc.
          WHEN 1. RAISE program_error.
          WHEN 2. RAISE others.
        ENDCASE.
      ENDIF.
    Regards
    Krishna
    Edited by: Krishna Gowrneni on Apr 17, 2009 5:27 PM

Maybe you are looking for

  • Error while downloading mountain lion

    i was downloading mountain lion ..left it overnight..in the morning saw a error message in the app store purchase list ..to remove the error i clicked on the x showing on the side of the error. However it removed the mountain lion download from list

  • Windows 8 App Deployment in School Lab environment?

    After doing some reading and research on Windows 8 Store app deployment from sources like http://www.microsoft.com/en-us/download/details.aspx?id=39685 and this forum and I am getting pretty depressed.  Here is one part of my scenario which is pretty

  • I cannot access gmail

    I can access gmail from IE and Chrome. Not from Mozilla. I tried the cookies thing and the safe made thing and still get this. The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a w

  • I can't uninstall Maverick no one has posted a step by step

    No one is giving a step by step on how to uninstall mavericks? I have my snow leopard disk.Can anyone help

  • ISight and noisy iMac G5

    Hi there. I'm thinking of getting an iSight but I have a very noisy iMac G5. The fans are loud and it makes a whining noise too. (Long story but Apple say there's nothing wrong with it.) How good is the iSight at filtering out background noise like t