JTable - Resize rows the same way as the columns

Hi!
I have run into a very frustrating problem and have tried to solve this for many hours but can't come up with a good solution. If there is anyone that can help me on the right track I will be very grateful!
When I'm using a JTable it provides good "graphical" functionality to handle resize of colums, but when it comes to resize rows it is not available.
I have found a solution for the row height adjustment in the following post: [http://forums.sun.com/thread.jspa?forumID=257&threadID=453665]
That solution only partially work in my case because of the following:
The JTable exists inside a JInternalFrame and the JTable should not be able to get bigger then the actual size of the InternalFrame it is put in (so no scrollbar).
The problem with the solution above is that the JTable total height will also expand when a row is resized (contrary to what happens when the columns are resized), ending up with a JTable that is bigger then the InternalFrame.
So my question is:
Is it possible to provide the same ("graphical") resize functionality for rows as for columns in a JTable? Or any row resize functionality that prevent the JTable from getting bigger then the container it is placed in?
Thanks for your time!
Best regards,
Marcus

Thanks for the fast answer!
Yes, that would solve the height expanding problem. Thanks!
It would be even better though if the row resize functionality would behave the same as the column resize (for consistency). For example: If a row is resized the other rows will get smaller so they all fit into the InternalFrame.
It has to be some easy way to do this. I have started on a solution with component listeners etc. (to track resize) but it is quite hard to get it right and I keep getting the feeling I reinventing the wheel all over again:(
Any ideas out there?

Similar Messages

  • Does the iPad 2 pass through TV the same way that the iPhone 4s does ?

    Does the iPad 2 pass through TV the same way that the iPhone 4s does ? I have an Arcam rCube dock which allows the tv pass through from the iPhone 4s and I was wondering if the iPad 2 will do the same if I buy a dock extender and what should I check for in a dock extender ?

    No - that feature does not exist on the iPad2 and I know of no plans - nor would anyone else here - for that feature to be added with a software update in the future.

  • Can't iPhone have Thai keyboard the same way as the PC keyboard?

    I been using iPhone since 3GS, 4, and now 4S.
    I been using WhatsApp communicating with my friend and family a lot.
    Since I'm from Thailand, I use Thai keyboard in WhatsApp most of the time.
    iPhone Thai keyboard is very difficult to type.
    Can't iPhone have Thai keyboard the same way as the PC keyboard?
    iPad already has it.  Why can't iPhone has it?
    Many Thai people feel the same way as I am.
    Many iPhone user in Thailand jailbreak their iPhone because they want the keyboard the same way as PC keyboard.
    All iPhone user must use the keyboard everyday to communicate.
    Imangine that Thai people have to use the keyboard everyday and having a hard time using it.
    Please consider giving Thai people the keyboard that we can use with ease.

    To turn on Thai keyboardin your iPhone with iOS4.0.2++, follow the steps below.
    1. Go to settings
    2. Select General
    3. Select Keyboard
    4. Select International Keyboards
    5. Select Add Keyboard...
    6. Search for Thai
    This should add Thai keyboard to your iPhone.
    In order to use Thai keyboard during text SMS/MMS,
    Tap and hold on the lower left where there is a "Globe" like icon. You should see a small window with a selection of keyboards available. Without letting go, run you finger (still holding to the globe like icon) to Thai and you should be able to start typing in Thai.

  • How to get pictures organised the same way on the iPad as they are on the PC?

    When syncing pictures from my PC to my iPad the same albums are shown on my iPad as on my PC, but the pictures seems to be organised in random order within the albums, i.e. they are not organised the same way as on my PC. I've named all pictures on my PC and organised them based on name. Does anyone know how I can get iTunes/the iPad to sync the pictures in the same order?
    Best regards,
    Cecilie

    Are you syncing the photos by selecting folders or by selecting a photo app that you have on your computer ? If you are syncing folders then they will be sorted by their 'date modified' fields (I assume that still applies on iOS 8), not by their filenames - so you will need to amend their 'modified' fields to be in the order that you want them to show in.
    Or there are third-party photo management apps such as Photo Manager Pro (help pages) - you can copy photos to/from that app and your computer, and you can change the sort order of albums within the app.

  • Why won't using 'Insert' work the same way on the Photos page?

    Because my images I edited in Photoshop don't appear in my iphoto Library or in the 'media' section (I have no idea why!!), I have to go to the toolbar at top, and use "Insert....Choose....pictures....etc" and insert the pics that way. But it won't insert into the photo grid and you can't add frames, and you can't click on it to enlarge. I guess I don't understand why you can 'drag' the pix in from the media section and it works fine, but when you manually insert the pics, it's just a plain pic, nothing else.
    Is there anything I can do?
    Thanks
    Kim

    Rather than use Insert, try dragging your edited images from their location on your HD into the photo grid.
    [ Visit here for iWeb Tips, Tricks and Hacks ]

  • Writing user defined function the same way as the oracle functions

    Hi Guys,
    In one of the interviews , I have attended the guy asked me to write a user defined function which will take the column name and list all the values .
    For example
    Table Name:Employees
    Column Name: Employee_Name
    Employee_name
    Scott
    Ivgun
    Jack
    Shane
    The query should be in this fromat
    SELECT col_agg(Employee_name) emp_name from Employees;
    The output shoulld be
    Emp_names
    scott,ivgun,jack,shane
    Please let me know if this is possible
    Any suggestions will be highly appreciated.
    Thanks,
    Ranjan

    You could certainly write a user defined aggregate function if you like...
    e.g. this function will aggregate strings into a CLOB...
    create or replace type clobagg_type as object
      text clob,
      static function ODCIAggregateInitialize(sctx in out clobagg_type) return number,
      member function ODCIAggregateIterate(self in out clobagg_type, value in clob) return number,
      member function ODCIAggregateTerminate(self in clobagg_type, returnvalue out clob, flags in number) return number,
      member function ODCIAggregateMerge(self in out clobagg_type, ctx2 in clobagg_type) return number
    create or replace type body clobagg_type is
      static function ODCIAggregateInitialize(sctx in out clobagg_type) return number is
      begin
        sctx := clobagg_type(null) ;
        return ODCIConst.Success ;
      end;
      member function ODCIAggregateIterate(self in out clobagg_type, value in clob) return number is
      begin
        self.text := self.text || value ;
        return ODCIConst.Success;
      end;
      member function ODCIAggregateTerminate(self in clobagg_type, returnvalue out clob, flags in number) return number is
      begin
        returnValue := self.text;
        return ODCIConst.Success;
      end;
      member function ODCIAggregateMerge(self in out clobagg_type, ctx2 in clobagg_type) return number is
      begin
        self.text := self.text || ctx2.text;
        return ODCIConst.Success;
      end;
    end;
    create or replace function clobagg(input clob) return clob
      deterministic
      parallel_enable
      aggregate using clobagg_type;
    SQL> select trim(',' from clobagg(ename||',')) as enames from emp;
    ENAMES
    SMITH,ALLEN,WARD,JONES,MARTIN,BLAKE,CLARK,SCOTT,KING,TURNER,ADAMS,JAMES,FORD,MILLER
    SQL> ed
    Wrote file afiedt.buf
      1  with t as
      2    (select 'PFL' c1, 0 c2,110 c3 from dual union all
      3     select 'LHL', 0 ,111 from dual union all
      4     select 'PHL', 1, 111 from dual union all
      5     select 'CHL', 2, 111 from dual union all
      6     select 'DHL', 0, 112 from dual union all
      7     select 'VHL', 1, 112 from dual union all
      8     select 'CPHL', 0, 114 from dual union all
      9     select 'WDCL', 1, 114 from dual union all
    10     select 'AHL' ,2 ,114 from dual union all
    11     select 'NFDL', 3, 114 from dual)
    12  --
    13  -- end of test data
    14  --
    15  select trim(clobagg(c1||' ')) as c1, c3
    16  from (select * from t order by c3, c2)
    17  group by c3
    18* order by c3
    SQL> /
    C1                                     C3
    PFL                                   110
    LHL CHL PHL                           111
    DHL VHL                               112
    CPHL AHL NFDL WDCL                    114Ok, it's more than just a function as it uses an object type linking into the internals of the ODCI... but it does what you ask. :)

  • Is Firefox Beta affected in the same way as the latset edition of Firefox 16

    Is it vunrable to exploits?

    By the end of day today there will be a Firefox 16.0.1 which fixes the security issue. Please note that this vulnerability isn't being exploited in the wild, so the real threat is very little.

  • I repeatedly get "error during rendering/encoding of menus/slideshow" message.  This process is the same on my iMac, MacBook and another iMac.  I have been burning dvd's int he same way for the past 12 months using the exact same steps successfully.

    I keep getting "error during rendering/encoding of menus/slideshows" message.  I have been burning DVD's in exactly the same way for the past 12 months and mostly on my MacBook which is 3 years old.  Obviously I'm using iDVD.  I purchased an iMac about a year ago and moved to use this for dvd burning without problem.  A few months ago (approximately) I started to experience problems with burning with the error message above.  I tried everything including starting the whole process from scratch right down to capturing the movie clips from my video recorder into iMovie, then using them in iDVD.  Still the same message came up.  I lost count of how many times I repeated the process with different clips and variations and the same thing happened.  This was also the case with my MacBook and my husband's iMac.
    After taking both of mymac's tothe service centre, having new optical thingys put it and even a new hard drive on my iMac along with a new DVD burner the same thing happened.  They told me it must be the process that I am using that is incorrect!
    I took my 27" iMac to an apple shop and asked them to assist me while I use the same technique as I always had.  The same message came up so they tried using my clips in one of their mac's.  The same message. They tried it with different clips and the same message.  The only way we could get theirs to work was with a magic DVD which did not produce what I needed and was limited with only one page. 
    I now cannot use any of my Mac's for the intended purpose that I bought them for - to produce good media for my work!  It was suggested that I purchase some non Mac software to burn DVDs which defeats the object of having a mac with iDVD in my opinion.  I have a book on iDVD which is very informative and have followed the process to the letter and checked all the trouble shooting and still no remedy.  It was mentioned that an up-date may have caused the problem on all my macs.
    I feel that this issue should be addressed by Apple as a matter of correctness.
    I now find that on the net there are many posts in forums and such like with exactly the same (almost word for word) problems.  Please Apple, keep/regain your good name and sort this out.
    Jayne Connelly

    Thanks Bengt W for your attention to this matter.  So much appreciated.  And thanks for putting me right on the aim of forums (new to this).  Although, you may regret asking for more information.  I've added everything I can below.
    The process I used is as follows:
    Import recorded clips of between 5 and 15minutes each from my video recorder into i
    Edit the clips (remove unwanted start and endng)
    Add title to front of clips
    ‘Share’ them to ‘movie’ (export using QuickTime)folder in .mov format individually
    Open iDVD and ‘create new project’
    Select ‘favourite’ theme that I have set up forall my work dvd’s (this has been used successfully many times and I’ve triedwithout using the favourite them).
    Add 2 submenus for each group of clips
    Select submenu  - drag and drop between 3 – 6 clips in each of the twosubmenus
    Change title colours on clips
    Dragand drop image into drop zones where required
    In‘map’ view I check for any yellow warnings before burning to disc
    In an attempt to remedy the problems I’ve tried the following:
    Try new DVD discs
    Try different themes (favourites and standardones)
    Change images in drop zones
    Start whole process again even from importingfrom camera again
    Two other completely different computers (iMacand MacBook) with iDVD
    Go to apple shop and use their computers to doin iDVD
    Try with one clip and no menu pages added
    Use a clip that I already have that did notoriginate from my camera
    Turn computer off and restart
    New hard drive
    New optical lense (thing)
    New DVD burner
    Saving to disc image rather than dvd disc
    Other points:
    I also have a ‘flip’ and ‘iPhone’ whereI’ve imported footage camera which, although limited, records and makes videoclips and burns them to DVD through iDVD without problem.
    For example, I have just gone through steps 5 - 11 using some clips that were already imported from my iphone to iPhoto and dragged across.  I used a theme that I've used before which has failed and added one sub menu page where the clip went.  It burned to disc image successfully.
    The startup disc, I believe will have no space issues asit’s a new hard drive with no use apart from this.  That could have been an issue before (I didn’t check it) butnot now.
    Other technical stuff that I don't understand but you may:
    I have…… Mac OS X Version 10.6.7 with all updates onit.  Processor 2.8 GHz Intel Corei7.  Memory 4GB 1067 MHz DDR3.
    iDVD version 7.1.1
    HardwareOverview:
      Model Name: iMac
      Model Identifier: iMac11,1
      Processor Name: Intel Core i7
      Processor Speed: 2.8 GHz
      Number Of Processors: 1
      Total Number Of Cores: 4
      L2 Cache (per core): 256 KB
      L3 Cache: 8 MB
      Memory: 4GB
      Processor Interconnect Speed: 4.8 GT/s
      Boot ROM Version: IM111.0034.B02
    SMC Version (system):            1.54f36
    OPTIARCDVD RW AD-5680H:
      Firmware Revision:     3AHB
      Interconnect:    ATAPI
      Burn Support:   Yes (AppleShipping Drive)
      Cache:    2048KB
      Reads DVD:    Yes
      CD-Write: -R, -RW
      DVD-Write:   -R, -R DL,-RW, +R, +R DL, +RW
      Write Strategies:  CD-TAO,CD-SAO, CD-Raw, DVD-DAO
      Media: Toshow the available burn speeds, insert a disc and choose View > Refresh
    If you can solve this you are better than the 'apple geeks' in the shop and the service technicians in the service centre (and of course me but that's no achievement). 
    Eagerly awaiting your reply.
    Jayne

  • I have 2 iphones and 1 ipod touch. how do i use the same itunes on the home computer for each? all we use the home computer for is one big music database.

    i have 2 iphones and 1 ipod touch. i want to use the same itunes music database for each device. we did this before with our older ipods, by just sycing what was checked. does this work the same way with the new devices?

    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here...
    http://support.apple.com/kb/HT1495

  • Making A Row Of Thumbnails The Same Size As The Screen Monitor No Matter What Montior You Use

    I am making a website and am trying to get the row of thumbnails/cells (which contain 5 thumbnails across each set in a cell) to be the same length as the screen monitor so that you do not have to scroll horizontally across to see more cells/thumbnails in the table.
    Here is the thing.  When I first started making tables, I was making actual pixels to fit MY screen size, but then I found when I looked at the website on another computer the tables came out different sizes (because of different size monitors I assume).  So, I changed the tables from pixels to 100% and that seemed to do the trick.  Whatever computer I pulled the website up on, the tables extend perfectly across the monitor screen to its fullest extent and without having to scroll horizontally.
    The next part of the website involved adding thumbnails of images.  So I made a table 6 rows across by 5 columns down.  And I put a thumbnail in each cell, so that 5 thumbnails went across the row.  I also set the table width to 100% just like I previously did for my heading table.  When I tested it on a laptop computer it seemed perfectly fine and the 5 cells in the row extended across exactly to the length of the monitor.  But, then when I opened it up on a desktop computer, I had a problem.  What you see is 4 of the columns on the monitor and then the fifth column is further to the right off the screen, which makes you have to move a horizontal scroll bar to see the fifth column.  This table is also not flush with the heading table either obviously, although I have both set to 100%.
    I don't know if my problem has to do with the table I made or the image sizes in Photoshop.  In photoshop after I had scanned the image I went to "Image Size" and reduced the "document size" width to 1.5 cm to make the image come out a lot smaller.  Should I be doing something different in Photoshop when changing the "Image Size"? Maybe saving it as a different measurement (choices are percent, inches, cm, mm, points, picas, columns)?  Or, do I need to change something with my table/cells?
    Anyone know?
    Thanks.
    P.S. I will post this in Dreamweaver and Photoshop, to get a little more help.

    If I have to accept the fact that this table I made can't fit each person's monitor screen, then ok, but at least have it to where all the tables are flush with each other.  If you take a look at the website URL I posted, every table I made for this page is set to 100%.   No matter what computer I pull up the webpage, the heading tables and bottom copyright table come out to 100% of the screen size like it should.  It is the tables I have for the pictures that extend pass this and make a horizontal scroll bar necessary and are thus not flush with the other tables.  And,I figured out why.  When I resized my images in Photoshop, I set the width of each thumbnail to 177 px.  I also have 30 px padding on both the left and the right side of each cell (60 px total).  So, calculating this we have: (177 px x 5 images across = 885 px) + (60 px padding x 5 cells across = 300 px) = 1185 px....an EXACT amount (which is MORE than my screen width) and OVERRIDES the 100% I set for the table.  Therein lies the problem.
    So, what I need to figure out is how to make either the cells or images adjust accordingly to fit the actual width of the monitor; 5 cells across = 20% each cell = 100% grand total across.
    Follow me so far?
    I know there has to be a way.  I've seen other pages that can do it.  I will keep trying and eventually figure it out.
    Thanks for the help.
    From http://www.awdsf.com/courseware/html/html2_tables.htm:
    " A website that         requires side scrolling is considered very un-professional."
    And I couldn't agree more with this statement.

  • Typed tables is treated in the same way as a relational table?

    I'd like to know if the internal struct of oracle treats a typed table (table that contains object) in the same way of a relational table. For example, if I insert an object (that contains the atribute name as varchar2) into a typed table, and insert a regular register (name as varchar2) into a relational table, theoretically the execution time for both inserts must be the same? Thanks.

    > I have written my comments from my experience.
    I have used nested table with more 10+ levels with
    more than 400+object types for our projects.
    As you know bench mark is not done for 1 table or 1
    object, it is done with major project usage .
    In which case you're not benchmarking a specific feature, but the overall design of the system.
    I too am using object tables for specific Oracle applications. And the advantages that this provide significantly outweigh the cons - and a single such application process in excess of a billion rows per month per object table per month.
    > If you think Object is faster than relational tables
    in oracle then JAVA MUST BE FASTER THAN 'C' Language.
    Where did I say that object tables are faster than relational tables? How about trying to read what I said and then trying to understand what I conveyed?
    I said that
    a) objects tables are marginally slower than relational tables
    b) this performance difference cannot be used as the primary deciding factor on whether to use object tables or not
    As for your analogy that then "Java must be faster than C" is not relevant. Comparing apples with bananas. C is not C++. Java p-code is not machine code. So your analogy is meaningless and does not prove anything. Fact is that the speed of any programming language depends on numerous factors - and not just the language itself as you're are implying with this flawed analogy.
    Besides, trying to compare ADTs in Oracle to Java Classes, is silly. These are different tools intended for different usage.
    Bottom line - saying that ADTs and object tables in Oracle is "Bad" based purely on a marginal performance difference is idiotic. The design of the system and requirements of the system dictates the tools that are needed. And one of those tools can be and will be ADTs and object tables in certain cases.

  • Is there a way of making my iPod's "cover flow" sort in the same way the software can . Artist -- Album by Year . It only seems to do Artist -- by Alphabetical Album . I want it look like it does on the PC .

    Is there a way to make the "cover flow" on the iPod match the sort style that I use on the software . I go with Artist -- Album by Release Year . But the ipod seems to only do Artist -- Alphabetical by Album , and then there are a handful of albums oddly out of place . Can it be done ?

    Ottonomy, here's what to do.
    Connect your iPhone to your computer and open the iPhone's playlist in an iTunes window. Copy/Paste the entire playlist into a new(!) playlist in iTunes, not on your iPhone. Then resort the playlist. After you sort it, Copy/Paste it to a new(!) playlist on your iPhone. Now delete the old playlist on your iPhone and rename the new playlist the name you want it to be (probably the same name as the old playlist).
    The downside to this method is that you have to do it every time you add a song to the playlist. Unfortunately, I don't think there's another way.

  • On a Mac, in Adobe Photoshop CC 2014, when adding audio to an edit, i get the message "Could not complete your request, because Dynamiclink is not available". When performing the exact same operation in Adobe Photoshop CC, i can add audio in the same way,

    On a Mac, in Adobe Photoshop CC 2014, when adding audio to an edit, i get the message "Could not complete your request, because Dynamiclink is not available".
    When performing the exact same operation in Adobe Photoshop CC, i can add audio in the same way, no error message. Any ideas to solve this, anyone? Would be greatly appreciated.

    I tried to update and it keeps telling me to get the Application Manager. And this is what happens
    Adobe Application Manager failed and it told me to download the Adobe Support Advisor.
    Adobe Support Advisor told me that there was an issue:" cpsid_82829s1: "A restart is pending," bootstrapper error has occurred. "Token Number: 40-87772-063201122012
    I followed the instructions it gave me to correct this issue:
    If you receive the error "Installer has detected that a machine restart is pending. It is recommended that you quit the installer, restart try again," do the following:
    #Restart the computer and try the installation again.
    #If the installation fails, delete the InProgress registry key: 
    Disclaimer: This procedure involves editing the Windows registry. Adobe doesn't provide support for editing the registry, which contains critical system and application information. Make sure to back up the registry before editing it. For more information about the registry, see Windows registry information for advanced users on the Microsoft support site, or contact Microsoft. 
    Launch Windows Registry Editor.
    (Windows XP) Choose Start > Run, type regedit in the Open text box and click OK.
    (Windows Vista/ Windows 7) Choose Start, type regedit in the Search box, and press Enter.
    Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager.
    Delete the InProgress key.
    I was not able to find the "InProgress" key.

  • I do not see where to enter IP addresses in the Open VPN setup. Also, how can I set it up so that I can choose different servers in the same way as I can currently choose them with my VPN app but for PPTP?

    I think I have it working on my iPhone 5. But, I do not see how I can control the exit point that I would like for the VPN. Are all the exit points shown in the VPN setting now going to work with Open VPN, or do they remain PPTP? If I am reading correctly, they look like they remain PPTP. If I cannot control the exit point for open VPN, which exit point is the default in the profile you provided me?I note that Open VPN Connect does not work with any of the new 64 bit devices like the iPhone 5S, the iPad Air, and the new iPad MIni. Is there any chance that you guys will come up with an update for your app so that open VPN can be made to work on all iOS devices? That would be nice, particularly if the Open VPN Connect app does not give me a choice of exit points.Thanks,
    I do not see where to enter IP addresses in the Open VPN setup. Also, how can I set it up so that I can choose different servers in the same way as I can currently choose them with my VPN app but for PPTP?
    Just a quick note to tell you that Open VPN has updated their app so that it is compatible with 64 bit ARM devices like the iPhone 5S, the iPad Air, and the iPad Mini Retina.That does not resolve the problem of how to easily choose among the various possibilities for the exit server. We need to find an easy way to choose.

    Thank you for trying the new Firefox. I'm sorry that you’re unhappy with the new design.
    I understand your frustration and surprise at the removal of these features but I can't undo these changes. I'm just a support volunteer and I do not work for Mozilla. But you can send any feedback about these changes to http://input.mozilla.org/feedback. Firefox developers collect data submitted through there then present it at the weekly Firefox meeting
    I recommend you try to adjust to 29 and see if you can't make it work for you before you downgrade to a less secure and soon outdated version of Firefox.
    Here are a few suggestions for restoring the old design. I hope you’ll find one that works for you:
    *Use the [https://addons.mozilla.org/en-US/firefox/addon/classicthemerestorer/ Classic Theme Restorer] to bring back the old design. Learn more here: [[How to make the new Firefox look like the old Firefox]]
    *Use the [https://addons.mozilla.org/en-US/firefox/addon/the-addon-bar/ Add-on Bar Restored] to bring back the add-on bar. Learn more here: [[What happened to the Add-on Bar?]]

  • How can I plott data from a text file in the same way as a media player using the pointer slide to go back and fort in my file?

    I would like to plott data from a text file in the same way as a media player does from a video file. I’m not sure how to create the pointer slide function. The vi could look something like the attached jpg.
    Please, can some one help me?
    Martin
    Attachments:
    Plotting from a text file like a media player example.jpg ‏61 KB

    HI Martin,
    i am not realy sure what you want!?!?
    i think you want to display only a part of the values you read from XYZ
    so what you can do:
    write all the values in an array.
    the size of the array is the max. value of the slide bar
    now you can select a part of the array (e.g. values from 100 to 200) and display this with a graph
    the other option is to use the history function of the graphes
    regards
    timo

Maybe you are looking for