How to see the borders of a "display area" in GridBagLayout

I would like to see the display area of a JPanel .
I use this technique:
panel.setBorder(new TitledBorder(new LineBorder(Color.blue, 2), "DisplayArea?"));
//Is this correct?
If not, how can I see the borders of a display area (as opposed to the borders of a JPanel ) of a JPanel ?
note: I am new to Swing, so I am using the word "display area" in the context of what I read in the API for java.awt.GridBagLayout .
Maybe there is no real concept of a "display area"?
I am trying to get the JPanel to expand to the borders of its "display area", but I can't see what is going on. Either I am not expanding the JPanel, or the "display area" is smaller than I would think.
Thanks.
Edited by: rikasai on May 3, 2009 2:07 AM

I think your basic problem lies in this "note: I am new to Swing,",
and quite probably do not have a sufficient understanding of layoutManagers,
in particular the one associated with JFrame.
your problem reads as though you have a JPanel that you have sized to (e.g.) 400,200
and added this to a JFrame, sized at (e.g.) 600,400, and you expect this to give you a
100 blank area around the panel.
the nature of a JFrame's default layoutManager is that if you add something to it,
via frame.add(panel), it will be added to the default area of the frame (CENTER), and
it will take all the available space. So, whether you specify 400,200 or 50,50 etc,
the panel will take up all of the available space in the contentPane of the 600,400 frame.

Similar Messages

  • HOW TO SEE THE JOB NUMBER IN DISPLAY MODE?

    Hi all,
    I am new to apo and how to see the job number in display mode?
    i can see a couple of trns for create, delete and change and not to display it?
    Can anyone tell me abt it?
    Thanks
    pooja

    Hi Pooja,
    I assume your query is on identifying job ID in display mode
    To find out that, goto sm37, execute it and double click on
    the job, and then click on job details, you will get the
    job id (job number) in display mode
    Regards
    R. Senthil Mareeswaran.

  • I can't see the borders of my display on Toshiba TV

    I think this might be a common problem, but I'm having the devil of a time....
    Have googled for answers and even read up concerning my problem here, even tried downloading DisplayConfigX 1.09 as recommended in one of the posts I read. But I am not fixing the problem:
    The borders of my display seem cut off -- I can't see my dock or any of the commands at the top of the screen.
    I'm using my Theaterwide HD Toshiba TV as monitor for my mac mini -- purchased the skinny little new version less than a year ago but am using the old Tiger OS from a '04 mac mini that's since no longer with us. Hooked up via hdmi cables, if that matters.
    Other components are using this same TV so I'd prefer not to mess with the resolution/settings on that but would rather deal with this if possible thru computer's settings or software or something.
    Would appreciate any suggestions!
    Also, might it be easier to hook up a second monitor for controlling the screen? I have one that I was using for the computer before I hooked it to my tv... Do I need some kinda adapter or something...?
    Thanks for help!
    Carolyn

    Carolyn,
    I think your TV might be a rear projection model, correct? Those types of TVs inherently have overscan built into them as part of their optical design. The TV should have some picture SIZE settings that affect how much overscan is present, and some settings may even get rid of it altogether with the result there might be a small black border instead.
    Don't worry about changing TV settings. Settings like this are tied to a specific input. So if you make these types of changes while the TV is passing the mini's video through to the screen, those changes will only apply to the mini. When you switch to other inputs, like a cable box, etc., the old settings should still be intact and unchanged.

  • How to see the bussiness content querys which are on bussness content CUBE?

    Hi I need to find all the bussiness content queries which are there on  Bussiness content Cube? Can any one tell me where to find or see them in bussiness content ?

    hi,
    find the possible bi content queries in the following bi content help documentation.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/3d/5fb13cd0500255e10000000a114084/frameset.htm
    through application wise. expcrmerp analyticssdqueries.
    then go with bi content-object types-query elementsselect querythen double click the  select objects--here you can find the possible queries for each infocubes.
    hope this help you
    regards
    harikrishna N

  • How to see the balance under different balance if special ledgers exist???

    Some of the company using special ledgers. I need to teach user how to see the balance under different balance.
    I will focus on
    1. display voucher
    2. check GL balance
    Anyone have idea (detailed flow)/template (preferred) on these issues?
    Thanks a lot for your help in advance

    hi,
    /n----
    > acccounting -
    >financial accounting -
    >GL acccounts -
    > information system -
    > gl reports
    here in this path u can get all the gl list and gl balances list ....
    u can check what ever reports u want.....
    if useful assign points...
    regards,
    santosh kumar

  • How to see the print preview of outgoing excise invoice.

    Hi Experts,
    How to see the print preview of outgoing excise invoice.
    Thanks,
    srinivas.

    Dear Sreeni,
    Just go to J1IIN, click on "Exc.inv for delivery -- Display" where you input delivery reference and execute. If you have generated excise invoice, you can see the corresponding excise invoice for that delivery / billing document.
    Preethi.

  • How to see the ouput of a purchase order on screen??

    Hi all , how to see the output of a purchase order (ME23) on screen?
    Points will be awarded!!!!
    Thanks & Regards
    John

    Hi,
    If any output tye is associated to PO and it is been triggered then User ME9F tocde to view the output.
    To check thise first Use: ME23 and click on Messages, if any outputs are triggered and they are in Yellow status then Use ME9f. Once you execute you will get Outputs in the screen, then choose the output and click on Display Message button. Your output will be displayed on the screen.
    Regards,
    Ashok

  • How to see the ms files attachment in outlook in iphone

    how to see the ms files attachment in outlook in iphone

    I believe JDK6 has the Desktop API which allows you to do this.
    Prior to that you can use the Runtime class. Read the HTML page that is displayed when running the example from this posting:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=5123633

  • How to see the IDOC structure in XML format

    Hi, I am ver new to MII. I configured connection between SAPand SAP MII and IDOC is triggering in SAP MII. I can see the idoc triggered in Message monitor.
    Now my query is how to see the IDOC structure in XML format? I written a transaction where I am assigning transaction.xml to my Local.xml and trying to display with message action block. When I display the message I am getting message as below
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    There is no data in the xml, but in SAP side i seen data and segment which sent to MII as a IDOC. Please help me how to resolve this issue.

    Hi, Thanks for quick response.
    In Message monitor I seen the IDOC list after executing POIT transaction code in SAP.
    But the display button is disabled always in message monitor screen. I want to take this IDOC and save it in my SQL database. So I want to see this IDOC structure in XML format. Where i can see this structure?

  • How to see the changed output for purchase order

    Hi..
    I have zmedruck. i need to increse item text lengh. i done this in editor. how to see the changed output now...I increased the length of text to be displayed. I checked the print preview in me23n. i cant see the increased length. Guide me where i am wrong.
    Edited by: Meena 303 on May 1, 2008 6:24 PM

    Hi
      In ME22N go to message -
    > select old message -
    >click change OutPut button -
    > Save
    then see print priview  through ME9F or ME22N it sself.
    regards
    Sachin

  • How to see the material document for Blocked stock

    Hello Experts
    I having some blocked stock in plant X , How to see the material document for this stock.
    Thanks in Advance
    Prashanth.v
    Edited by: prashanth.venkategowda on Aug 11, 2010 7:38 PM

    which material documents do you want to see?
    Material documents can be found and displayed in MB51 transaction.
    in MMBE you can put the cursor onto your stock line and then choose from menu Environment > material documents and SAP will list all relevant material documents.
    block stock status is not a selection criteria, material number, plant storage location, batch number are selection criterias.
    if you want only documents to block stock, then you need to select by movement type, e.g. 343 and 344 are movements that change status from unrestricted to blocked or vica versa.

  • How to see the records through infoset

    I have created infoset with infocube and master table,how to see the records in infoset?
    Thanks
    Gnanasundaram C

    Hi Gnanasundaram
    Just execute the t-code RSISET and click on infoset display data  button it will take you to the records.
    Hope its clear a little..!
    Thanks
    K M R
    >
    Gnanasundaram.c wrote:
    > I have created infoset with infocube and master table,how to see the records in infoset?
    >
    > Thanks
    > Gnanasundaram C

  • How to see the lyrics on the sidebar?

    ...without having to do CMD I and then click on the lyrics, which is tedious (plus the font is too small)

    How to see the lyrics on the sidebar?
    You don't.
    This is pretty cool and displays lyrics -> Jewelcase

  • How to change the default window size display font size on Lync 2013 main window?

    Hi champs,
    Just a simple non-technical question: How to change the default window size display font size on Lync 2013 main window on Windows 7 desktop?
    Thanks,

    Hi,
    Did you mean change the Lync: Change the Default Font and Color of Instant Messages just as Edwin said above?
    If not, as I know, there is no natural way to change it.
    If yes, on the latest version of Lync 2013 client, there is a new option “IM” on Lync client “Options” list. And you need to change the default Font and Color of IM in the interface of “IM”.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • How to see the Open PO Qty in Mass

    Dear Experts,
                        How to see the Open Qty in PO in mass, is there any report available..Please help 
    Regards
    karthik

    use the Txn ME2N
    Enter the follwoing details . Scope of list - ALV, Selection parameters- WE101, Plant- XXXX, Enter the document dates From and TO and execute ( F8), You will get all the details, If you want to adjust the format use cntrl+F8 to get the POP_up for selection of fields and use as you wish.

Maybe you are looking for

  • Why do I get an error when clicking on "view in browser" in my newsletter?

    Hello. I am trying to get the URL for my email campaigns so I can show some of them on my webpage. When I tried to get the URL by clicking on the email I sended in the tag that says "view in browser": I get the following URL: http://www.coscatl.com/C

  • Secure link to iTunes Store Failed using XPSP3

    I cannot log into the iTunes store. When I run diagnostics it indicates Secure  Link to iTunes Store Failed. It does not appear to be my related to McAfee security software as the issue remains when the file wall is disabled. I have following the tro

  • XsLT Map Err or Fle Err??!!!

    Hey, I have a problem with xslt mapping in one of my scenario... ( I dnt knw whether its a problem with xslt or file adapters) At high level my scenario its a file to file, here I'm sending my source structure to target structure ( file 2 file) and n

  • Package ipa file with adt

    Hi, I've almost completed my first app and I'm looking for the best way to generate the ipa file. I use CS6 and I want to do that using CMD. Since I've never done that before I ask here for advices. I found this cmd here on forums: F:\sdk\bin\adt -pa

  • Extend Serial Number Lenght

    Hi to all... We have products (e.g. PC's), where the Serial Number lenght is over 18 digits (e.g. 20 or 27...). Does anybody know how to overcome that problem?