How to decide component size to contain all data?

Hi, all
My application has some jtable and jtextarea which always contained in jscrollpane, not because what I need but because I don't have a idea to determine size for my component.
Let's say my jtable has 30 rows, I know how to control width for columns. But how can I determine the height for jtable precisely? Should I allocate 15 pixel for a row, or maybe 20? How can I use a height for all platforms including windows,linux?
It bothers me for a while, same stuff happened while I dealing with jtextarea. Do we have a guide line for this?
Thanks,
Vincent Chen

That's why you put it in a scrollpane.
Are you talking about setting the height or are you talking about knowing the height? Cuz setting it is typically non-sensical, since the # of rows tends to vary in a typical table. OF course, if you know it's X rows, you can get or set the row height in the table and just multiply by row count.

Similar Messages

  • I have multiple devices backed up to the same computer each with different data. how do i keep them from syncing all data when i back up or transfer stuff from the computer to a device?

    i have multiple devices backed up to the same computer each with different data. how do i keep them from syncing all data when i back up or transfer stuff from the computer to a device? one is an iphone 6 and the others are ipad mini first gens, each ipad has 64gb and the iphone has 128, need to keep the data seperate as they are not all mine

    Itunes content and pics are NOT part of the backup that itunes performs.
    Backing up, updating, and restoring iPad, iPod touch, and iPhone software
    You should transfer any purchases from iphone regularly:  File>Transfer Purchases  , if they fail to be transferred when you sync.
    You buy one and only one download.  It is your responsibility to move/copy/backup your purchases.
    You can try contacting itunes support and asking for an exception, but they are under no obligation to allow.
    http://www.apple.com/support/itunes

  • I got a new computer and need to sync my iPhone and iPad on it, how do i do that without losing all data.

    I got a new computer and need to sync my iPhone and ipad on it, how do i do that without losing all data. I need help ASAP!

    If you still have the old computer see: http://support.apple.com/kb/HT4527
    If you don't have your old computer, but you made regular backups of it, restore the most recent backup using the backup software that you used to make the backup. You will have to read the instructions for it.
    If you don't have your old computer and you did not back it up regularly see: Syncing to a "New" Computer or replacing a "crashed" Hard Drive

  • Generate IDOC containing all data for a Businness Object

    Hi,
    I want to be able to generate an IDoc that contains all data for a Business Object type.
    Is there a standard Function Module available for this? Or do I need to write one myself?
    I would like to call this Function Module from an external application using RFC
    Thanks!
    Simon

    Hi Rob,
    Let me explain what I am trying to achieve.
    Lets say we have a SAP system containing e.g. a number of Employees (i.e. a number of instances of the Employee type). Now, I want to connect to the SAP system (probably through a RFC connection) from an external application (a C program) and retrieve all the data (keys and attributes) for these instances.
    It would be comparable to a:
    'select * from table employee'
    in database terminology.
    I then want to move the data through my C appl. and store it elsewhere.
    I am very new to SAP, so maybe I use the wrong words to describe the problem.....
    Best regards,
    Simon

  • Idoc message type which contains all  data types

    Hi,
    I need idoc type or name which consist of all data type sap has defined. There are nearly 24 data types.
    Pls help..
    Regards,
    Taj

    hi,
    you will not have any message types which contain all data types.
    message types will be defined based on specific data.
    for example :
    MATMAS - Material master
    DEBMAS - Customer master data distribution

  • How to create a table which contains relational data and Document data

    hai all
    i need to create a table which contains relational data(i mean coulumns whose data types are type NUMBER,VARCHAR) and documents(like xml file/html file/image)using iFS.
    when i store the document data(xml data/html data) in the iFS ,it will be stored as Document Object.so how do i relate this document object belongs to a particular row in a table.
    do guide me
    thanks

    Please see reply at http://technet.oracle.com:89/ubb/Forum36/HTML/000778.html

  • How to find the size of the master data objects in the BW system?

    Hi,
    We would like to understand the size of the master data tables overall for a specific source system (Logical name is Ex.ABCD, which supplies all master data to BW). Can you please advise the procedure to find out this?
    Is there any table that will allows to see all the master data objects related to specific sources system so that we can find out that table size? Thanks.
    For example, we have many Texts, Hier & Attributes.
    0COUNTRY_TEXT
    0REGION_TEXT
    0PERSON_ATTR
    0MATERIAL_LPRH_HIER
    Advance Thanks.
    Edited by: BW USA on Feb 2, 2010 10:52 AM

    Hi,
    You can find out all the master data tales used in the BW system by
    Tcode : SE11
    Enter as /BIC/P* for master data tables and press F4 which gives list of master data tables currently used in BW system.
    Similarly for Texts  /BIC/T*  and press F4
    Similarly for Hierarchies /BIC/H-* press F4
    and can know the size of the all tables.
    Thanks,
    Gopal

  • I try to transfer my iture to a newer lap top.  How I can do it without lose all data from my iphone4?

    How I can transfer my itune to a newer lap top?  Is that possible to aviod lose all data from my iphone4?   I have over 50 apps and over 1000 song in my phone.   Please advise.
    Cheers

    jyu88 wrote:
    Thanks.  Am I have to uninstall the original iTunes from my new laptop before that?
    No.
    Just copy everything from your old computer to your new one.

  • How to decide the size of MTU when writing an interface ?

    I have very little knowledge about network interface. But I want to write a network interface. But I am not getting how the MTU for an interface is decided depending upon the network physical capabilities. Like :
    localhost has 1500 bytes
    But this size is not enough for high-speed networks which exist now a days. I am not getting how this size of MTU is actually affecting the network. And how we can find the optimal MTU for any network.

    This depends on what exactly do you mean by 'network interface'? Firmware for an NIC? a device driver for an NIC? Or you you mean an application API? And if so, for UDP or TCP?
    If UDP, all you need to know is that the practical limit on a datagram that has to go through routers is 534 bytes.
    If TCP, you don't have to worry about MTU in the slightest.

  • How to decide buffer sizes for specific size of RAM

    Hi sdners.
    Generally, how can we decide the buffer sizes which are shown in the ST02 screen. suppose we have 100GB ram /5GB ram,  then how can we decide the related buffer sizes...and generally which buffer takes more place in the RAM
    Thanks in advance.

    Hi balaji
    You can tune your SAP buffer by the statistics of Hit Ratio and swap occuring.  There should not be no swap on your system. you can adjust your buffer value by the optimizing the both value.
    Regards
    Anwer Waseem
    SAP BASIS

  • How to decide ByteBuffer size created for SocketChannel.read(ByteBuffer)

    Hi,
    Is there any way by which we can know the size of data ready to be read at the SocketChannel?
    When the "SelectionKey" is discovered to be "isReadable()" I would like to create the ByteBuffer of the required size and use it for the SocketChannel.read(ByteBuffer) method.
    Right now I have to statically fix the ByteBuffer size to some safe maximum limit for this "read" method, which somehow is not looking efficient technique to me.
    Thanks in advance
    Amit

    Java doesn't tell you how much data is pending, but allocating the ByteBuffer 'statically' in advance is a better technique anyway. ByteBuffers are potentially expensive to create so you should allocate them just once per channel. The size is generally 8k or above depending on how many clients you expect to service at the same time and the amount of memory you can spare per client and in total.

  • How creating a llb that will contain all subvis of an upper vi?

    Hi,
    I developed an application under 6.1, which is composed of subvis coming from several developments, stored in various places on my PC...
    In order to distribute it, I was wondering if it was possible, from the upper vi, to create a llb (or a distribution kit) with automatic inclusion of all subvis...
    So that, I don't need to make a really painful job: Get the list of components needed for the upper vi execution, store all elements in the same folder, and then create the llb.
    Can someone help me?
    Thks in advance
    Zib

    It's very easy. Just go to File>Save With Options, and select Development Distribution.

  • How do I sync music without erasing all data?

    Hi everyone,
    This is actually two questions in one. So appreciate all your time, I also apologise if this should be posted in iPhone and not iTunes.
    Most important question is this:
    How do I sync the music in my iTunes onto my iPhone without first erasing everything? I remember back in the day there used to be a 'manually manage' option, but this doesn't seem to exist anymore. I tried following the instructions found here in order to put what's on my phone onto my iTunes first:
    Recover your iTunes library from your iPod or iOS device
    However I hit a snag when it comes to the step of 'Back up your device' - I can't seem to find how to back it up in order to restore it, literally the only option iTunes gives me when I plug it in is to 'Set up as a new device' - which I don't want to do because I assume it will wipe my entire phone. I can't right click on the device (or even normal click, really, nothing happens).
    My second question is, is there a way to restore the layout of itunes so it just lists my songs? Displaying them via album or artist is incredibly impractical as it doesn't auto-size each row, so I'm stuck with maybe five or six songs per screen instead of the usual 50odd that I can view without having to scroll.
    Thanks in advance everyone!
    iPhone 5S, iOS 8.1 // 13" Macbook Pro, OSX (Beta) 10.10 // iTunes 12.0.1

    Never mind everyone,
    Finally worked both out by accident.

  • How to create a report to bring all data from two different Info providers

    Hi All,
    I have a peculier problem while creating a report. I have two custom info providers one DSO and another Cube. There are only two common fields between these two Info providers . I need to create a report such that the report displays all the values from DSO but user can have the selection option on one of the fields in the Cube.
    Here is an example
    DSO Contents:
    DocNum-     DocItem-     DocText-     Amount-      Quantity
    10000----     10----            ABC----          100----           10
    10001----     20----     DSN----     200----     10
    10005----     20----     DSN----     200----     10
    Z1003----     10----     CAN----     500----     1
    Cube Contents
    DocNum-     DocItem-     Date-----          InvoiceAmt
    10000----     10----     1/10/2009----         50
    10001----     20----      2/20/2009----        100
    10005----     20----      2/25/2009----        100
    The report needs to be displayed as shown below when the user selects value for date from 1/10/2009 to 2/20/2009
    DocNum-     DocItem-     DocText-     Amount-      Quantity
    10000----     10----     ABC----     100----     10
    10001----     20----     DSN----     200----     10
    I hope this was clear for you to understand. I would really appricate if any one can answers about how to resolve this problem. I cannot add the date filed to DSO and I also have Doc Num and Item as the user selection fields in the report.
    Thank you all in advance and i would really appreciate for your suggestions.
    Regards
    Chinna
    Edited by: chinna2479 on Mar 3, 2009 7:38 PM
    Edited by: chinna2479 on Mar 3, 2009 7:39 PM

    Hi chinna,
    Two possible options, I can think of now, but both of them may be a compromise with performance.
    1. create an infoset and then a query on top of it, provided we have a one to one relation in both the targets. That is, the combination of doc and item number is not duplicate in either cube or ODS.
    2. Create a master data object of doc and item number and have date as an attribute. Load that from cube data and make date as navigational attr.
    Use this navgntal attr for selection in your report.
    Let us know, if you require any further info.
    Naveen.A

  • How to return multipart HTTP response containing image data as well as xml data

    Hi,
    My web service accepts
    request as string and returns response as string. Being new to ASP.Net, please clarify my below doubts.
    a)  How
    can i provide multipart response of the below format while returning response in string format.. How to implement multi-part response where I need to return Image data as well as xml data also.
    HTTP/1.0 200 OK
    Date: Wed, 03 Mar 2004 14:45:11 GMT
    Server: xxx
    Connection: close
    Content-Type: application/xxx-multipart
    Content-Length: 6851
    Content-Type: image/jpeg
    Content-Length: 5123
    CommandID: asset14521
    <5123 bytes of jpeg data>
    Content-Type: xxx-xml
    Content-Length: 1523
    <?xml...
    Thanks,
    Divya

    Hi MeetDivya,
    I suggestion you post the question in the ASP.NET forums at
    http://forums.asp.net/. It is appropriate and more experts will assist you.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • High pitched sound - something to do with internal microphone ??

    Suddenly my Powerbook has started emitting a high pitched sound through its speakers. You know one of those high frequency ear-blowing sounds when a PA system is being set up and the mic is getting tested and the amp's turned up too loud? I'm not sur

  • How to recover a datafile in recovery mode

    Hi, We have a datafile that's 0 bytes in size and is in recovery mode. I see that the datafile is showing as available in dba_data_files but in v$datafile, it's showing the status as recover. This is in Production and the tablespace has been in this

  • CS2 - Aligning Objects question

    OK..I want to align one object to another without the second object moving out of position. In CS, I swear I clicked on Object 1 (the one I want to align to the second object) and then added Object 2 as a selection......then held down the shift or co

  • Seeburger adapter information

    Hi All,          I need information about iWay Seeburger adatpeter.how to do mapping .pls send any sample weblogs or scenarios regarding Seeburger adapter.please send to me any documents of seeburger adapter.My mail Id is [email protected] Thanks & R

  • Can't reset password on eSSO-PR

    hai, all i have problem when i want to reset password using esso that's problem : you are not allowed to change your password thank's