Layout problem  in diff Resolutions

Hi all,
The components in a JFrame appears fine in 1024*768 ScreenResolution but when it is seen in 800*600 ScreenResolution ,some of the components just dont show up though I am using GridBagLayout.
Any solutions on this one would be highly appreciated...
Thanks in advance
Arpana

Ya the size of the container was changed but our application is such that
use of scrollpane is not recommended..Hence the problem..I have checked some softwares
designed in java on different resolutions and amazingly all the components get repositioned
according to the resolutions..But am yet to find out how it was achieved..

Similar Messages

  • Layout problem in Different Resolutions

    Hi All,
    I have a application which i have designed using null layouts and the resolution i have used is 1024x768. Now when i open the same application in 800x600 resolution some of the components placed at the bottom of the application are not seen. To resolve this issue i designed using GridBagLayout but still some of the components were not seen..Can anyone help me on how to resolve this issue..
    Thanks in advance
    Arpana

    Ya the size of the container was changed but our application is such that
    use of scrollpane is not recommended..Hence the problem..I have checked some softwares
    designed in java on different resolutions and amazingly all the components get repositioned
    according to the resolutions..But am yet to find out how it was achieved..

  • CSS Layout Problem?

    Can someone please help me with a layout problem.
    As far as I can tell the page looks as it should in Netscape,
    Firefox, etc., but IE6 and 7 refuse to work correctly.
    The page I am working on is:
    http://www.vmtampademo.com/localangler/testpage.html
    Most of the picture caption and headline of the middle column
    is behind the picture. I attempted to force the info with a
    seperating div which seems to work sometimes. I doubt that this is
    the correct solution. What am I doing wrong?
    Thank you for the help!

    It looks fine in Firefox 2.0.0.1, Opera 9.10, and IE 7.

  • Layout problem in PDF conversion

    Hi all,
    i am downloading spool data using the function module CONVERT_ABAPSPOOLJOB_2_PDF. But i am facing layout problem. e.g. RFBILA00(financial statement generation program) has written balancesheet data to the spool. This spool data has some 6 columns. but CONVERT_ABAPSPOOLJOB_2_PDF is writing only first 3 columns to the generated PDF file. i used 'GET_PRINT_PARAMETERS' function module also with values like layout as 'X_65_132' and 'X_90_120'. but no success. if anybody knows the answer, please let me know.
    Thanks in advance,
    Naveen

    Hi All,
    i am following the below approach to download the information from spool.
    program/spool output is an ALV List output data having 8 columns. but below approach is converting only first 5 columns in to PDF format. other 3 columns are getting truncated.
    FUNCTION /ngl/download_spoolinfo_as_pdf.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(I_SPOOL_REQUEST) LIKE  TSP01-RQIDENT
    *"     REFERENCE(I_FILENAME) LIKE  RLGRAP-FILENAME
    *"  EXCEPTIONS
    *"      DOWNLOAD_ERROR
      TABLES tsp01.
      DATA: mtab_pdf LIKE tline OCCURS 0 WITH HEADER LINE,
            mc_filename LIKE rlgrap-filename.
      DATA: mstr_print_parms LIKE pri_params,
            mc_valid(1) TYPE c,
            mi_bytecount TYPE i.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          copies                 = '1'
          cover_page             = space
          destination            = 'locl'
          expiration             = '1'
          immediately            = space
          mode                   = space
          new_list_id            = 'X'
          no_dialog              = 'X'
          user                   = sy-uname
          line_size              = 200
          line_count             = 65
         layout                 = 'X_65_200'
          layout                 = 'X_90_120'
          sap_cover_page         = 'X'
        IMPORTING
          out_parameters         = mstr_print_parms
          valid                  = mc_valid
        EXCEPTIONS
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          OTHERS                 = 4.
      IF sy-subrc EQ 0.
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid              = i_spool_request
            no_dialog                = 'X'
            dst_device               = mstr_print_parms-pdest
          IMPORTING
            pdf_bytecount            = mi_bytecount
          TABLES
            pdf                      = mtab_pdf
          EXCEPTIONS
            err_no_abap_spooljob     = 1
            err_no_spooljob          = 2
            err_no_permission        = 3
            err_conv_not_possible    = 4
            err_bad_destdevice       = 5
            user_cancelled           = 6
            err_spoolerror           = 7
            err_temseerror           = 8
            err_btcjob_open_failed   = 9
            err_btcjob_submit_failed = 10
            err_btcjob_close_failed  = 11
            OTHERS                   = 12.
        IF sy-subrc EQ 0.
          mc_filename = i_filename.
          DATA: lv_filename TYPE string.
          lv_filename = i_filename.
          CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
              bin_filesize = mi_bytecount
              filename     = lv_filename
              filetype     = 'BIN'
            TABLES
              data_tab     = mtab_pdf
            EXCEPTIONS
              OTHERS       = 22.
          IF sy-subrc EQ 0.
            WRITE:/ mc_filename, 'CONVERTED TO PDF AND DOWNLOADED'.
          ELSE.
            WRITE:/ 'PROBLEM WITH DOWNLOAD'.
            RAISE download_error.
          ENDIF.
        ELSE.
          WRITE:/ 'PROBLEM WITH PDF CONVERSION'.
          RAISE download_error.
        ENDIF.
      ELSE.
        WRITE:/ 'PROBLEM GETTING PRINT PARAMETERS'.
        RAISE download_error.
      ENDIF.
    ENDFUNCTION.

  • Layout problem - multiple repeating frames

    Hi, I have a layout problem, pls help!
    Short report description:
    - Repeating Frame1 - gives 1 record, contains all other frames, variable vertical elasticity
    - - Frame2 - contains all frames beneath - variable vertical elasticity
    - - - Frame3 - variable vertical elasticity
    - - - - some boilerplates
    - - - - Repeating Frame 2 - various number of records, fixed vertical elasticity, height 100
    - - - - Repeating Frame 3 - various number of records, fixed vertical elasticity, height 30
    - - - - .. other repeating frames ..
    When reaching the bottom of a page, and there is not enough room to print a record for Repeating frame 2, a record from Repeating frame 3 is printed in the bottom.
    Next page starts with the remaining records from Repeating frame 2.. and then the remaining records from Repeating frame 3.
    For example:
    Page 1:
    Rep frame 2 - Record 1
    Rep frame 2 - Record 2
    Rep frame 2 - Record 3
    Rep frame 3 - Record 1 -- not enough space to print Record 4, so this record is printed
    Page 2:
    Rep frame 2 - Record 4
    Rep frame 2 - Record 5
    Rep frame 3 - Record 2
    How can i ensure that all records from Rep frame 2 is printed before records from Rep frame 3?

    Hi, thanks for helping me out!
    I tried to use anchors, but they had no effect when connecting top of 3 to bottom of 2, got the same layout.
    I then tried to create frames with vertical elasticity expand around both rep frame 2 and rep frame 3, and it seems to do the job.
    - Repeating Frame1 - gives 1 record, contains all other frames, variable vertical elasticity
    - - Frame2 - contains all frames beneath - variable vertical elasticity
    - - - Frame3 - variable vertical elasticity
    - - - - some boilerplates
    - - - - Frame 4 - vertical elasticity expand
    - - - - - - Repeating Frame 2 - various number of records, fixed vertical elasticity, height 100
    - - - - Frame 5 - vertical elasticity expand
    - - - - - - Repeating Frame 3 - various number of records, fixed vertical elasticity, height 30
    and so on..
    Thanks again

  • Layout Problem in swings

    I have an Layout problem. My Applications consists of a label and a panel in which some more labels are present.
    The panel should contain the scrollbar in order to view all the label that excced the size of the panel.This label and a panel should be adjacent to each other.
    My problem is, I am not getting the scroll bar to the panel when I am adding the label that excced the size of the panel, when I am adding the label adjacent to this label.

    Did you use JScrollPanel? If not, use it.

  • [solved] layout problem in amarok 2.02

    Hi,
    Here, I have a bad layout problem with amarok 2.02. Amarok does not fit on my screen which is 1400 pixels large! I cannot reduce the part where the collection is shown. So that it is really unpractical to use.
    I uploaded a snapshot to illustrate the problem (it is the full screen!):
    emmanuelfavrenicolin.free.fr/Public/Sna … ok202.jpeg
    Someone have the same problem ?
    I tried to install svn version but I stopped after 3 hours of compilation, it is quite a big application.
    Last edited by manouchk (2009-05-23 06:28:43)

    Well, I tried amarok2-devel 2.0.90-1 but the problem of graphic layout remains similar, no improvement. Is it normall? Maybe amarok is only available for computer with screen >= 1600x1200  or is there an hidden configuration file where I could tweek this?
    Last edited by manouchk (2009-05-18 02:41:03)

  • Urgent: Layout problem in "light inner page"

    Hi Experts,
    I am facing a problem in portal content area on external facing portal. I see a vertical scroll bar which restricts application from being displayed on entire screen.
    I am getting this problem after a patching of EP 7.0, before patching every thing was running fine.
    To me it looks like a layout problem in "light inner page", When I use "Light - 1: column (Full width)" layout I get a vertical scroll bar on portal. When I use default layout then this vertical scroll bar disappears but I see an empty navigation bar on left side which is not required.
    Can some one advise a solution for this.
    -Lave

    hi,
    Similar problem in this thread. check it out
    Desktop inner page lost
    Regardss,
    Ganesh N

  • Div layout problem

    Hi - stuck on what I think should be a fairly basic layout problem:
    I have 2 divs, equal widths but varying heights, one floated to the left and one to the right so that they appear next to eachother on the page.  The one on the left contains varying amounts of text, the one on the right contains a flash player so never varies.
    Where the text for the left div is long, I want it to start off next to the player, but then flow beneath it rather than continuing downwards at the same width as the div.  If I remove the width of the left div, so that it reverts to the container width, the player div positions itself below it, so I can't work out how to get the effect.
    Can anyone help?

    Hi,
    hope I understood in the right way: I used (translated from German DW) "modify table" and so I got one more row and two columns in your Main_Content. In one of the new columns I copied the image and beneath I took the text (you now can replace with image and text of your choice), like this:
    If that's not a help for your question, please ask me again.
    What concerns the width of the pictures, I would format them with PS or a similar program in the same wide.
    Hans-G.

  • Problems with camera resolution...

    Hi everyone,
    I've acquired a security cam to test a video-chat with FMS2
    and encounter a problem with the resolution of my cam. It's a CPcam
    CPC371P and It is said to have a resolution of 510*492 (certain
    sites speak of standard resolution?).
    I wrote two simple applications, one to send the cam stream
    and one to receive it, here is the code of both my applications :
    Send.fla:
    var my_nc = new NetConnection();
    cam = Camera.get(IndexCam);
    cam.setQuality(0,80);
    cam.setMode(510,492,15,false);
    my_vid.attachVideo(cam);
    my_nc.connect("rtmp://server.no-ip.org/tchat_cam/");
    ns = new NetStream(my_nc);
    ns.attachVideo(cam);
    ns.publish("webcam","live");
    receive.fla
    var my_nc = new NetConnection();
    my_nc.connect("rtmp://server.no-ip.org/tchat_cam/");
    ns = new NetStream(my_nc);
    my_vid.attachVideo(ns);
    ns.play("webcam");
    As you can see, nothing really complicated. The applications
    work perfectly but no matter the resolution I choose, the image
    seems to be extrapolated and pixellised. I tried 512*384,
    510*492(supposed to be the cam res) and 240*160.
    In any case, the image quality is still really poor...
    If anyone could help me on this, Is it a problem with the
    camera, I may have forgotten an option in my stream ???
    Thanks in advance.
    Guaca666.

    After many tests, trying many different resolutions, It seems
    that It can't go beyond a resolution of 510x480...
    Does anyone know if it is the maximum res of a Stream or if
    there is an option to outpass this problem ? It may be the cause of
    the poor final quality of my video as the camera native resolution
    is 510x492...
    If anyone could help me, it would be a great relief... :)
    Guaca666.

  • Design/Layout Problem in OOTB SP "Docs I'm following" page

    Hello
    The "Docs I'm following" My Sites page in SP 2013 has the following layout problem:
    Long document titles overlap with other elements (see also screenshot).
    Note: This is default SP, i.e. we have not deployed any custom branding.
    I guess this is a problem which can easily be corrected even without having to wait for a SP update. Since I'm not very good with design changes I would be grateful if you could provide
    us with a quick fix, e.g. an updated css file.
    Thanks a lot.
    Best regards
    John

    Hi  ,
    For your issue, you can add the following code into your MySite MasterPage:
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(document).ready(function () {
    $(".ms-contentFollowing-itemTitle a").each(function(i){
    $(this).text(shorten($(this).text(),32));
    function shorten(text,maxLength) {
    var ret = text;
    if (ret.length > maxLength) {
    ret = ret.substr(0,maxLength-3) + "...";
    return ret;
    </script>
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Layout problem - screen not big enough!

    Hi everyone,
    I was wondering if anyone could think of a solution to my problem.
    I currently have a jframe which has four tables on it, one table spans the upper row, while the other three tables below it are next to each other: -
    | Upper Table |
    | Table 1 | Table 2 | Table 3 |
    I don't specify the dimensions of the tables or the jpanels that these tables will occupy so that they will fill the screen regardless of any different screen resolution that is used on the computer.
    My problem is that the combined heights of these tables means than the Jframe is bigger than the dimensions of the screen, so I can't see that bottom of the jframe - which among other things means I can't manually click on the bottom right corner to re-size the window.
    The reason I don't want to specify the exact dimensions of the tables or panels is because if I (for example) set the dimensions to fit into 800x600, and the person has a 1280x1024 resolution then when they maximize the window there'll be a big border around the tables. Like I said before, I want the tables to occupy the available space.
    I've tried setting the size of the jframe at startup using the setSize and setBounds method but it has no effect. It's odd, because I can still resize the window using the top left or top right corner and click and dragging to resize the window. When I make the window smaller the layout of the tables is fine, so I don't understand why the setsize method won't work - it's not like I'm setting the size to below their minimum dimension or anything.....
    I hope my explanation of the problem is clear :-)
    Does anyone know how I might fix it?

    oh, I think I might have fixed it. If I setpreferedsize on the panel that contains all of the tables, then it seems to work! :-D

  • Using null Layout - Problems

    Hullo - I've written a little app that, because of the nature of what it does, prettymuch requires the use of null layout. It works well enough, but there are a few points where it does strange things that I don't understand. I haven't been able to find any good docs anywhere for how exactly layout/rendering works. The Swing tutorial, for example, almost completely ignores the topic.
    Basically, I set the layout to null, add my components, use setBounds...but then nothing happens. In order for anything to be visible, I have to call pack() before I call show(). What is pack? What does it do? How can Sun's null layout examples work even though most of them don't use it?
    Second, if I create JFrame of a certain size, and add a component that goes off the bottom of the JFrame (on purpose), then expand the size of the JFrame to reveal the bottom part of that component, it doesn't paint - there's just a grey area. No amount of repaint() pack() or anything will cause it to show. The only way I've found to do it is to make the JFrame larger to begin with, add the component so that it's visible, then resize to the smaller size, which is kind of ugly and clunky.
    I basically do not understand why Swing is doing the things it does; why it paints sometimes and not other times, where it paints, when it paints, where it shows objects, how it packs them, etc. I would be very grateful if someone could englighten me!

    Hullo - I've written a little app that, because of the
    nature of what it does, prettymuch requires the use of
    null layout. It works well enough, but there are a
    few points where it does strange things that I don't
    understand. I haven't been able to find any good docs
    anywhere for how exactly layout/rendering works. The
    Swing tutorial, for example, almost completely ignores
    the topic.
    Basically, I set the layout to null, add my
    components, use setBounds...but then nothing happens.
    In order for anything to be visible, I have to call
    pack() before I call show(). What is pack? What
    does it do? How can Sun's null layout examples work
    even though most of them don't use it?
    Second, if I create JFrame of a certain size, and add
    a component that goes off the bottom of the JFrame (on
    purpose), then expand the size of the JFrame to reveal
    the bottom part of that component, it doesn't paint -
    there's just a grey area. No amount of repaint()
    pack() or anything will cause it to show. The only
    way I've found to do it is to make the JFrame larger
    to begin with, add the component so that it's visible,
    then resize to the smaller size, which is kind of ugly
    and clunky.
    I basically do not understand why Swing is doing the
    things it does; why it paints sometimes and not other
    times, where it paints, when it paints, where it shows
    objects, how it packs them, etc. I would be very
    grateful if someone could englighten me!Okay, I think you should call setVisible(true); instead of pack then show. Pack basically organizes the components so they take up the least amount of room, and then it shrinks the frame to as small as it will go without hiding any components. It think if you call revalidate() instead of repaint(), should solve your problem.
    The other thing to do, is (hehe) make your own components

  • Problem with DNS resolution

    Hi All,
    I am facing a strange problem with the name resolution in mac os x. I have a Lan with a cisco switch and a cisco router that serves as DHCP and DNS server.
    In the router I have setup some static host names with the relevant IPs in the local Lan. When ever I try to ping or browse, from within OS X, using the names, I get "unknown host" error. The problem is only with the static hosts I have setup.  The strange part is that nslookup and dig give back the correct IP as it is assigned in the Cisco router.  When I use my iPhone or iPad everything works fine.
    Any help would be appreciated.

    Hi Barsam, did you solve this issue?
    I have something similar happening to me, I can ping, traceroute, nslookup even use entourage to send and receive emails, but can browse the web with any browser (safari, firefox and chrome)
    Last night farefox was working, today I upgrade to the latest firefox version and now firefox stop working saying that can resolve the name, the same error as safari and chrome
    I flush the cache, reboot, manually enter DNS, change DNS servers to public ones, but still can't surf the web

  • Help needed with a layout problem

    I'm trying to build a JTabbedPane where each tab has a grid of buttons. The number of buttons is variable, and I'd like the buttons to flow sort of like with FlowLayout, with four columns. I need all the buttons to be the same size, even across tabs. I tried GridLayout, which doesn't work when I have too few buttons to fill a row. It fails in different ways, depending on how I set things up. If I try to set the layout to GridLayout(0, 4) (four columns), then if one tab has one row and another has two, the buttons on the one-row tab expand vertically to the height of the two-row tab. If I try GridLayout(2,4), then if a tab has only one button, it expands horizontally to the maximum width of any of the tabs. (It also has the further problem that if the maximum number of buttons on any tab is 6, they are placed in a 2x3 array; I'm trying to get them to be 4 buttons on the first row and 2 on the second.)
    I'm hoping there's a standard layout manager that can do the job, but I'm not too familiar with the Swing manager classes. Can I get what I want without writing my own layout manager?
    Thanks,
    Ted Hopp
    [email protected]

    I didn't think it was specifically a Swing question.Well, its either Swing or AWT, people who develop GUIs are the ones who are going to have experience using layout managers.
    but if someone can point the way to how to do this with GridBagLayout, nested containersSince you finished reading the tutorial, what have you tried? You've explained your problems using a single layout manager, so what problems are you having using nested layout managers?
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

Maybe you are looking for

  • T510i microphone mute button doesn't work with Win 7 x64bit Ultimate

    Did anyone managed to make it work  microphone mute button, with Win 7 x64bit Ultimate on t510i? On win 7 x32bit Proffesional it worked fine. Any suggestions? Solved! Go to Solution.

  • OS X mountain lion wont download

    I have just purchased the new OS X but it wont download. Is anyone else having problems. i have contacted apple (non)support but they are harder to get hold of than the pope! Do any apple support contact numbers actually work?

  • Runtime Analysis in PA Assessment Cycle

    Dear All, I have run an PA Assessment Cycle in with "Flow Trace On" and "Run Time Analysis On".I have a 3 part question A) I seek your help in understanding the following and correct my understanding(stated in small brackets) if i am wrong      1) Be

  • EOIO getting stuck

    Hi, I have a scenario Sync/Asynch bridge which is on EOIO. In devlopment it all goes fine. When moved to QA I see them going into holding status, though there are no errors for any of the previous messages. Suddenly one gets in to a Hold state withou

  • DRM-21003 error for database connection

    Hi, I installed DRM 11.1.2 for win32 on my laptop and when I tried to set up database connection (to 11g XE), I am getting error message: Connection Failed: DRM-21003: The Oracle.DataAccess client is not the expected version. I installed Oracle XE 11