How to keep look of JTable for several models

Hi,
a (probably easy to answer question). I have a JTable, change the size of columns or remove columns. How can i keep the look of the JTable, when i assign a new model (same type) to the table?
Thanks!
Andrej

Hi,
provide an own TableColumnModel - otherwise the TableColumnModel will be autocreated using the data of the model - i.e. column names, column count - and setAutoCreateColumnsFromModel(false);
greetings Marsian

Similar Messages

  • OID: how to store employees who works for several companies

    Hi All,
    we estimate possible ways how to store employee records into OID. Our OeBs instance serves company group (several companies). If I understand it rigth thees companies should be translated into several 'o'-nodes in terms of LDAP under common 'dc' base node (we use single domain for all).
    How to store persons who works for several companies inside our group at the same time?
    Should we load such type of employees simultaneously into several appropriate branches of LDAP-tree (an employee will be represented as a number of 'cn' nodes)
    or
    should we consider some another way to insist on one-to-one relationship between employee and its 'cn' node?
    Thanks

    Hi,
    I have faced the similar problem while maintaining master data of few employees.
    You may go ahead a make the last name as optional in Screen modification for international employees.
    Hope this solves the issue.
    Regards, AB

  • How to keep the field open for input with error message in report program

    Hi,
      Need a help in solving the below issue.
    "How to keep the field open for input with error message in report program"
    Regards,
    C.Shasiraj.

    Hi...
    you have to use the event:
    <b>AT SELECTION-SCREEN ON <FIELD> EVENT.</b>
    u have to give an error message in this event.
    Consider the following <b>Example:</b>
    <b>PARAMETERS : NUMBER TYPE I.
    AT SELECTION-SCREEN ON NUMBER.
      IF NUMBER = 10.
        MESSAGE 'Number vakue is 10' TYPE 'E'.
      ENDIF.
    START-OF-SELECTION.
      WRITE NUMBER.
    </b>
    in this if u give the value of number = 10, it will not proceed further, if u give some other value other than 10 you will proceed further...
    Execute this program once u will understand....
    also Consider the following links :
    <b>Regarding events:</b>
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a237d9b511d1950e0000e8353423/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a23ad9b511d1950e0000e8353423/frameset.htm
    <b>Regarding messages:</b>
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm
    This is very useful.......
    Reward points if useful....
    Suresh....

  • How to keep keyboard qwerty layout for french input

    Hello all. I'm a new converted to OS X world, long time windows user. I'm experiencing a really great time with my MacBook Pro since i bought it about one week now, learning and learning a lot of new things about it since this OS and the windows OS are not really the same.
    I spend a lot of time on this forum looking for answers to my qestions and i've found so many answers, thanks to the seniors who helping us the newbies.
    Here is one question I'm not finding a thread of on this forum: My keyboard is a qwerty one, but i use both english and french language for my work, when i added the french language to the keyboard, it automaticaly convert the layout into azerty keyboard everytime i want to type thing in french. I'm having iOS and i was able to keep the qwerty layout for french so that when i'm typing in french, and push "q w e r t y" it out put "q w e r t y" which is what i want, as for the accents that can be find in several french words, the auto correct correct the as i'm typing on my iDevice so that i do not have to wory about the acsents. I've noticed that the MBP also have the auto correct feature in the keyboard setting, so i was hoping that there is actually a way to set the French language to use the qwerty layout instead of auto converting into azerty layout whenever i want to input using french. And if there is a way to set it, or a software that i need to download to get what i need then please advice me a how - to or a step by step instructions.
    thanks in advance for you helps.

    Thanks Tom, I like the "hold down key" trick.
    However I come back to the initial request, as I can manage with the accent in several ways: autocorrect, hold down trick, alt-` shortcut; but they are not so direct solution!
    The solution i am expecting is changing the language to french as I know by heart where the accent keys are. But my keyboard is US (so qwerty). When I change to french (it comes with azerty) I need to adapt with the letters.So I would like to get also qwerty arrangemet of letters for french language setting.
    If that is possible I will be able to set up on time the french language when I'm typing text in french, having to adapt only with the accents keys which I know by heart. It would be the perfect solution for me. By the way, I'm currently learning how to type the accents with the US keyboard which is the more direct solution I've found untill now.
    Regards.

  • How to keep that valve open for certain period of time and shut off automatically

    Hi everyone,
    The objective of the VI is to measure pH and then open acid or base valve based on pH valve. Below is my UNFINISHED VI
    My question is:  if, for example, the  pH is 10, then, the program will open acidic valve for 5 seconds and then shut off automatically. After that, wait for 5 second. this process will go on and on as I use while loop, but I just dont know how to control the valve on for 5sec and off and then wait for 5sec.
    Anyone can help me out?    Thank you very much
    In the picture, please enter those values before running
    P.S The VI is based on previously posted vi by someone who made it 1 yrs ago.
    Attachments:
    project_trial_1_26.vi ‏27 KB
    Capture.JPG ‏79 KB

    1. The reason the valves close immediately is that the Elapsed Time VI does not cause any wait, it only measures the time. So the valves closed within a small fraction of a second of the time they opened.
    2. I modified your VI to wait until the Elapsed Time has ended.  See the "wait" state.  I probably modified some of your other functionality in the process, but this shows one way you could do the timing. 
    3. You do not need any Value property nodes.  They should never be used if the value can be wired directly.
    4. You do not need any sequence structures. Dataflow will determine the order of things occurring.
    5. If you use an enum for the state machine (and it is a good way to name and select states), you should make it a type def. Then when you need to change it as I did to add several states, you only need to change the Type Def in one place and the changes propagate through to every place you used the control or constants derived from it.
    6. I added a Halt state which will close both valves before stopping the program.  When you are controlling a real world process, it is important to consider the start up and shutdown requirements. For example the digital outputs of the USB-6008 default to inputs when the device is first powered up. And, the inputs are pulled high by a 4700 ohm resistor (at least I think I recall that value). Will this open your valves before the program starts running and sets the I/O lines to outputs and forces them low?
    The USB-6008 has rather limited drive on the digital lines. You will probably need a buffer between it and the valve coils.
    PID and PWM are more complicated than I want to get into here.  First, are your valves proportional or on/off? Second, (assuming that they are on/off) how fast can you open and close them without destroying them in the first week? What is their expected lifetime in terms of the number of operations? How fast do you need to be able to change them to keep your pH where you want it?  Are these values compatible?
    Lynn
    Attachments:
    pH State.ctl ‏12 KB
    project_trial_1_28.2.vi ‏66 KB

  • How to do averaging N samples for several channels?

    Dear members,
    I got the Routine for averaging N Samples from One channel's data from the forum. I would like to
    do for several channels. How to go about it?
    Regards,
    G.Kousalya

    You can do it in a way that is very similar to the approach you would use for a single value (see attachment).
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
    Attachments:
    example.vi ‏38 KB

  • I keep getting this error for several websites: *An error occurred. Error Code: 2005 *Your connection to the server has closed. [Status Code: 1042] HOW CAN I FIX THIS?

    I'll be in a forum on a website and be fine for like 2 minutes then it will boot me and give that error.

    Did you check your security software (firewall)?
    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process.
    See:
    * [[Server not found]]
    * [[Firewalls]]

  • How to create a default Style for several Content Areas

    Hello,
    I have not been able to figure out how to create default styles/nav bars/etc... that can be used between SEVERAL Content Areas, and/or for any new Content Area. It seems to me that what is created in one Content Area, is not available for use in any other Content Area.
    Being that I'd like to keep the Administrative overhead as low as possible, I wonder if anyone has and/or knows how to create a default style, etc.. and use it with each Content Area across an Enterprise site???
    Many thanks for any information you may have!!
    null

    Kahli,
    check out the Shared Objects node in the Content Area navigator.
    Good luck, Tony

  • I think Verizon does nothing, but put keep telling you they will keep looking into it for another few days...

    I sent a Droid Bionic in because it was not working they said they would fix it..they said the screen was damaged and is now trying to charge me 400.00 for a phone they have thet I already paid 250.00 for at the store I have insurance on it..I called them I paid my deductable and another one was shipped to me in the mean time Verizon talked me into buying an IPhone which I told them I want the one that you speak to it and it speaks back they sent me the wrong phone...It is the IPhoneS? I'm guess, but I ordered it over the phone when I went into the store to tell them they told me that was my fault for ordering it over the phone becasue people in the call center are not really sales people that's why you should come into the store (I worked for a call center was a senior agent it was my job to make sure all of my sales associates knew all of our products even being in a call center) and now I have been disputing this charge of the 400.  that such I am such a great custumer to them and trusted them I allowed them to automatically deduct from my account....I have never been late in the many years I have been a Verzon custumer have been one for about 5 years or so that is all about to change they just want to keep telling me they will call me in a few days and let me know or 7 to 10 day I  spoke to a lady Anne who saw clearly everything in notes where I should be credited and still wasn't so  tomorrow I'm calling to find out how to get out of my contract and just to let you know Sprint is offering some really good dealls right now...We have had enough and I'm going to report them to the better business bureau I have times, dates, and who I spoke to and most of the time how mistreated I was I am  so disapointed in  Verizon and I won't be the only one switching I have many friends  and family who have had issues with and I said enough is enough and I know at least 4 families following me if I switch..or Verizon doesn't start treating their customers with respect and stop trying to rip  us off like were fools.  There are a lot of other companies out there that welcome our business and have better deals.  >Personal info removed<

    I feel your pain!

  • How to keep iphone wifi on for Apple TV but only use phone data to stream

    As crazy as it sounds, our Internet Service Provider has now limited our home data usage but my iPhone data is unlimited. We have an Apple TV that we usually stream video through (Netflix, movies, etc.) but that uses our home wifi data. Is there a way to connect my iPhone to our Apple TV and make it use my phone's data instead of the wifi data? I really don't want to create a separate network for both of them since it won't be connected to the Internet for other things and when I'm not there. We also would like to keep our ISP since it is the fastest around with the least amount of service interruptions.

    Hi Atagahi,
    Firstly, have you emailed Apple iTunes support indicating your issue? There have been instances in which Apple will allow re-downloading of all content you've purchased on the iTunes store.
    Secondly, I highly recommend you get an external usb hard drive, attach it to your mini and use it as a Time Machine drive to keep your iTunes purchases safe. It's a fact of life that all hard disk drives will eventually fail. The Apple TV should never be used as any kind of permanent storage space; think of it as a 'temporary holding' zone. And as you've unfortunately already experienced, a glitch wiped out all content on the Apple TV.
    As regards your original question, it seems like there have been folks who've done just that...taken the internal drive in the Apple TV out and attached it to a mac and copied files from the Apple TV hard drive. I have not had to do such, so I cannot offer any help here except for Linda's suggestion on googling the net for solutions.
    Good luck and hope you get all your purchased content back Atagahi!
    Message was edited by: Alec

  • Asking: How to keep in-app purchase for game on Macbook Pro.

    I played Virtual City Playground game on Macbook Pro. However, recently, this game is crashed. I want to re-install it. However, I bought some in-app purchases in it. Can I keep that purchases before re-install it? Do I have to pay again for in-app purchases which I'd already bought?
    Thanks

    Where did you purchase from?  If from the App Store, post in its forum area.

  • How to keep 2 decimal places for double value

    Hi,
    I need rounding function, which should round a double number till 2 digits, if there is no decimal part it should append 2 zero's in decimal places.
    eg. 100 --- > 100.00
    200.234 --> 200.23.
    I tried with Number class. but it is returning string, from that string if I try to convert to double value, it is rounding off one digit.
    Can any one help on this problem.
    Thanks,
    Suman.ch

    I am using xmlBeans using that I need to write this
    rounded value into a xml file, for that I need only
    double value with 2 decimal places.You can probably write the value as a String instead of a double somehow, so you can use the DecimalFormat class.
    You could try their mailing-lists for users/developers:
    http://xmlbeans.apache.org/community/index.html

  • PhotoBooth in Leopard, how to keep the format displayed for the burst mode

    Hi,
    I've used the new photobooth.
    I've made some pictures with the burst mode.
    In PhotoBooth the result is good : like this : http://images.apple.com/macosx/features/images/300photobooth20071016.png
    But if i want to send the picture by mail, my picture is just 4 picture in a square ... no as fun as the one displayed in PhotoBooth
    Do you know if we can keep the format seen in photobooth ???

    Hi
    Just tried and with the photo showing in the main photoshop window hold the shift/apple(cmd)/4 keys and you will see a cross hair, click and drag that from the top left of the window to the bottom right and release.
    You should now have a grab of the pic on you desktop.
    Tony

  • How to do Look up fields for PO CREATION

    hi all,
    IN portal  for purchasing work item    purchase order  purchase order creation
    we want Requester as space and Recipient as default name (example : SAP)
    and Location and Shipto adress as default vaule (example : IN02 )  with respect to the login user or Created by .
    IS  BBP_ DOC_CHANGE_BADI  is helpful  for us .
    or we want do the above changes by Web dynpro .
    ANY badi is ther for doing above changes .
    Edited by: krishna hari on Mar 10, 2011 10:52 AM

    Hi Pravender,
    export data source got generarted , i am not able to activate that
    it says
    You can only edit 3.x DataSources using transfer
    maintenance Do you want to maintain the transfer
    i said ok or not ok it is not allowing me to activate
    i tried to activate it through program
    RSDS_DATASOURCE_ACTIVATE_ALL
    i went to f4 for source systems
    i cud see that
    DVW_271     DVW_271     M
    i am not able to activated the data source even  with program it says
    There is no DataSource with these attributes
    Could you please guide me
    Thanks,
    Nitya

  • Does anyone know how/where I can find Versamail for this model? PLEASE...

    null
    Post relates to: Treo 755p (Verizon)

    Hi, and welcome to the Palm Community Forums.
    Try this link, which I found at the Treo 755 support page, on the Downloads link:
    http://ws.palm.com/mypalm/MyPalmGenericUser/Contro​llerGeneric.jsp?&action=showbonus&productName=TREO​... 
    BTW, I removed your other two threads on the same subject.  One is usually sufficient for someone here to read and respond.
    Post relates to: None
    Message Edited by smkranz on 02-05-2009 07:01 AM
    smkranz
    I am a volunteer, and not an HP employee.
    Palm OS ∙ webOS ∙ Android

Maybe you are looking for

  • SOAP adapter in XI3.0 using J2EE adapter engine

    Folks, I have a scenario SOAP client -> XI 3.0 I am using XI 3.0 and the J2EE adapter framework to configure a sender SOAP adapter. I do not have a Party, just the service and the channel. I tried using the following url format: http://<server>:50000

  • How to create this CSV in Sql query?

    I have a order_detail table with the primary key order_detail_id and the foregin keys order_id and product_id. Also I have three other fields, A, B and C, to describe the nature of this order detail. A product_id can be existed on different order_id

  • Converting XML to Excel.

    Hi Everybody, I have a requirement to have a prebuit XML templete in the database, when a person download it it will populate with some default values in a EXCEL file format. How can i acheive this.Please help. Thanks

  • 3.0 beta - How to start Data Modeler?

    Probably a dumb question but Tools > Data Modeler > gives the list of options but none are to open a Data Modeler window. File > Data Modeler prompts to open an existing design but not to create a new one. What am I missing?

  • How to install new itunes app on iPad 1

    My itunes app just keeps crashing.  I've started the pad several times to no avail.  Should I uninstall the existing app and download a new one, and if so, how?