Question about creating Jtable from a "Self Made" object.

Hi all,
I am new to java and this is my first post here.
First of all, i want to say nice to meet u all. This is a blessed forum, and it already helped me a lot.
I hope that i will be clear with my question.
Now to the question:
I have created a class that reads parameter file and its meta file and combine them (each parameter in the file gets its properties such as "Mask", "Default" and else from the meta file) to one object (the class creates collection of instance of it self that has a get method.
the class also has method that get "Column Names" from the instance.
I want to create a Jtable that will present these parameter(each row will present 1 parameter).
Only the second column should be editble and it should choose the editor by the type of data (example: if it is boolean should get a check box, i has more than one "ValidValue" should get a combo box and so on).
What would be the best way to do that?
I am not looking for a source code, I am looking for concept suggestion.
This project is for "Self Learning" porpuse, and any help will be gratitude.
Thanks a lot you all,
On Katalan.

Use the Adapter pattern (http://en.wikipedia.org/wiki/Adapter_pattern) to wrap your object as a TableModel.
eg, if your data class is "ParameterSet" you might do this...
public class ParameterSetTableModel implements TableModel
    private final ParameterSet set;
    public ParameterSetTableModel(ParameterSet set)
        this.set = set;
    public String[] getColumnNames()
        return this.set.getColumnNames();
    // you'll need to implement all TableModel methods, either
    // directly calling the wrapped object or calling it and
    // converting the data, or whatever's appropriate
}

Similar Messages

  • A question about creating packages as local objects in ABAP

    Hi,
    I have a question about creating packages with SE80. Whenever I create a new package it is assigned a new transport request. After that, I can create new programs inside this package, and each time I can choose whether to assign the new program to a transport request or just save it as a local object (I often do this for test programs that I don't transport and I remove them once my tests have been done).
    What I would like to ask is that, is it possible to create a package (and not just programs inside a given package) as a local object? so that every new object created in this package will be considered as a local object?
    Thanks in advane,
    Kind Regards,
    Dariyoosh

    Thomas Zloch wrote:
    Please also check the F1 help for the package field e.g. in SE80, SAP standard is in range A-S and U-X, namespaces start with "/", so you should be save. I am using the T namespace for temporary stuff since a long time and did not have a problem so far.
    > Thomas
    >
    > P.S. this applies to the package name only, of course
    Thank you very much for this remark, I checked F1 help for the package field and in fact as you mentioned these ranges are for local objects.
    Once again, thank you very much for your help.
    Kind Regards,
    Dariyoosh

  • Question about tranferring data from iPhone 3gs to iPhone 4

    I just had a couple quick questions about transferring data from my old phone from my new iPhone 4. The reason i am wondering is because i am worried about whether i will encounter any problems when doing so.
    First off i have already sold my phone today, i reset all data and settings from the phone and gave it to my buddy so its gone. I did a full sync and backup yesterday so all the necessary files should be on my computer(windows 7). Now, im basically wondering if i will run into any problems if i restore my iphone 4 from a backup. My 3gs was running 3.1.2 on att. Now i know IDEALLY i would have updated it to iOS 4 before backing it up and used the newest version of itunes, but i did not. Does anyone think this will be a problem for me?
    Now with that out of the way, my biggest fear is losing my old data(text messages and notes mainly because i am a pack rat for those type of things) so id like to be SURE that none of my old backups will be deleted in any scenario. The reason i dont just restore it right now is because i want my new phone to be as clutter free as possible. I am going to be putting on here only the apps that i used often and would basically like to transfer over the BARE minimum; texts, notes, and highly used apps... So i guess my main question is can you transfer over only certain things like texts and notes after setting up the phone as a new phone. And if i were to set up the phone as a new phone what would happen to my old backups? Would i be able to selectively restore?
    Im afraid that it might not be a possibility to transfer only certain things even though it should be.. i should be able to select a text messages folder and put it on my new phone and be done with it... But anyway i dont want to rant. Can anyone explain to me how this all will work?
    ULTIMATE GOAL: Transfer only texts, notes, certain apps(and their data) and NOTHING ELSE.
    MOST IMPORTANT THING: Not losing texts and notes. I can deal with putting all the old **** on my new phone and cluttering/slowing it down if i NEED to.
    Thank you in advance, sorry for the long post.

    If the most important thing for you is keeping old text messages, notes, and voicemail, then you'll need to sync the phone from your existing backup. I know of no other way to access those items.
    Once you have synced to the new phone, check that you have those items that were important. Then you can reconnect your phone to iTunes, and change the sync settings to remove the apps or other items you no longer want to keep on the phone.
    iPhone backups are stored by iTunes; you can see them by opening your iTunes preferences, clicking on "Devices" and then looking in the window. You can delete old backups from here. I don't know how you can open/read the backups though.
    I don't expect you'd have any problems syncing from your old phone's backup, but it's definitely an either/or situation. Since you got rid of the old phone already, it's too late to email yourself your notes, or copy the text messages. Your previous backup is your only solution.

  • Question about receiving mesage from those not on ...

    I have a question about recieving message from those who are not on my contacts
    I enable anyone to contact me through IM and call. a  friend who I did not yet add as a friend (not in contact)call me by mistake.  he sent message of apology to me, say "sorry for mistakeing call,"
    but, i did not recieve such mesage, even thoughh i got notification of call, why did not i recieve his mesage if i Can receive IM from anyone not on contact list??
    i try to send him mesage to test. He also did not see my mesage show up  ,, on his screen it only show that he call by mistake and that he sent mesage ((which,  i never recieve).
    i try this on some of my friend's friend who has enable all call and IM through, they also did not recieving mesage I sent them however can see notification of call i make.
    does this mean, Only you can see mesage of those in contact list even though you recieve from any body? am i misunderstand How skype is working? Please enligthen me, thx...
    thx for info.....

    I'm not sure I understand you entirely, but you could put the CDs on the computer with a CD ROM drive and then boot that computer as a firewire drive to the computer without a CD ROM drive and then copy your music over.

  • Question about transferring data from 3GS to iPhone 5

    I upgraded from 3GS to iPhone 5.  Before reading any articles on transferring data through iTunes, I configured my 3 email programs, contacts and calendar (Google).  The Apple instuctions state that I should backup 3GS FIRST, then restore to iPhone 5.  Question is, if I do the backup and restore AFTER having configured my mail programs, will that cause problems, such as creating duplicate accounts and contacts?  I am especially concerned about creating duplicates in my contact list, which would be a semi-horror if I had to delete every other one of over 1,700 names.  Perhaps I should delete my email accounts and contact list BEFORE restoring to my iPhone 5, basically start from scratch?

    When restoring the device, whatever is currently setup on the device is irrelevant.  Everything currently setup on the device will be erased.

  • Question About Copying Tracks From a CD Into iTunes

    Newbie here.
    I currenly have about 700 songs on my Ipod Touch. (I put them on there from several old CD's I have of Napster tunes which I obtained when Napster was, well, you know . . . let's just say I donwloaded these tunes a long, long time ago.)
    Anyway - so now I want to load a commercial CD onto my Ipod. "Spamalot," as a matter of fact. I put the CD into my computer, open up iTunes and press the magic button to import all of the tracks from the CD into iTunes. And it does it, very quickly, as a matter of fact.
    The only problem is that all of the songs on the CD (25 of them) are scattered throughout the 700 songs already in my library. I have to spend way too much time hunting them down and schlepping them into my newly created Spamalot playlist.
    Surely there is a better way to do this. I would think that I should be able to create a playlist and then load all of the songs from any CD directly into the playlist.
    How do you do that?

    What I would like to do is (1) create a playlist and then (2) copy or import tunes from a CD directly into the playlist I have just created.
    From what I am hearing, I don't think that can be done. From what I am hearing here, you must first import the tunes into your iTunes general music library and THEN move them into a playlist.
    no you can't do it directly, music must be imported into the library first, then copied into the playlist. i'm not sure why you would need to - sure it would save part of the work if you could do it all at the same time, but it's not exactly difficult to import, then create a playlist.
    you could create the playlist before you import and add the tracks in as they are importing, but that's not much easier than creating it afterwards.
    HOWEVER
    Have you considered my 'Smart Playlist' suggestion? I think this will do what you want. Smart Playlists update automatically to coincide with any relevant changes in the itunes library. If you create a Smart Playlist with the album title, as tracks that have that album title are imported into itunes, they will automatically go into the Smart Playlist.

  • Question about Offset printing from Indesign

    Hello everyone, I have a question about printing too a DPX rip platemaker from Indesign. When I print my file to the rip, it seems to bold the text when it should not be bold, I do not know if this is an Indesign or rip error, but if anyone has a solution I would be grateful for any assistance.
    I dont know if it's necessary, but the OS with Indesign is Mac OSX, printing to a ripmate on Windows 2000.

    Have you applied an outline to the text?
    Try unoutlined text
    Is the text near an effect like drop shadow or other filter?
    Move the text to top layer or above any effects.
    Is it just this file or any file?
    Need to figure out if it's just this job or all of them or at least let us know.
    Have you got the fonts installed at the RIP end, perhaps it's rasterising text that the RIP has not got the font?
    You could try exporting to PDF first, that would embed the fonts in the PDF.
    Let us know if any of this helps?

  • Question About Adding Ram from other laptop to T-series Thinkpad

    Hi,
    I have a question about adding additional RAM. Right now I have a 4gb ram stick in the t510. I have an acer laptop which I do not need and there is a 4GB ram stick onboard (maybe two 2gb ram sticks) there in that older laptop. Would it be possible to add one stick of 2gb ram (or 4gb i need to check if it is 2 or 1) from the acer to the lenovo thinkpad making the total ram in the thinkpad over 4gb????
    Thanks in advance

    Hi Richk,
    Yes, I am using a 64-bit operating system. I am running on windows 7. And as for reported incompatibilities....technically taking a RAM from another laptop and placing it in the laptop should be the same as purchasing a RAM card from ebay or something and putting into the laptop right?

  • Some question about receiving messages from Skype ...

    Hello there, 
    I have a question or two about recieving messages from Skype users, who are not on my contact list" 
    1. If I have enabled to only receive messages from people in my contact list, will they be notified when they try to send me an instant message, that they need to add me first?
    2. Will I still be able to see messages sent by contacts who are not in my contact list and them see my messages*, if we are both in a Skype conversation group but not on each other's contact list? *The messages either one of us posts in the Skype group conversation
    I appreciate the information
    Thanks
    Solved!
    Go to Solution.

    1. The person sending this message will not receive any notification about failing message delivery. The message will just disappear in nowhere.
    2. Messages exchanged in group chats will be seen both by you and the other person, even if this person is not in your Contact List.

  • Question about Removing Permissions from the System Folder with chmod

    Hi
    I have a question about the removal of permissions from the System folder (and sub directories and files).
    Background
    Since installing a new HD, clean install of 10.6, application of updates and moving over backed up user directories I have had several issues with permissions.
    I have read several threads on this and using disk warrior and other tools I have been able to fix most of the issues.
    The Problem
    The issue that remains is a permissions check using Disk Utility keeps reporting
    ACL found but not expected on "System".
    followed by an extensive list of sub directories and all.
    Attempts to repair take hours and the same errors are reported.
    Found Solutions
    I have read about changing and/or completely removing the ACL from the permissions from the System using two different commands:
    sudo chmod -R -N ./System/* ( to remove all ACLs)
    or
    sudo chmod -R -E ./System/* ( to replace all ACLs )
    My Question is ( to the UNIX gurus):
    What is the difference between the usage with -E and -R and which is the best approach for a Systems directory and (subordinates)?
    Many thanks!!

    OK
    So I misread on the your instructions about the PW reset, did it, no harm in that. I did also select the options to reset all the permissions for all the accounts and the ACL issues were not resolved. My bad, I forgot to note that.
    You do suggest getting and expert opinion but alas these are rather elusive. In most cases the Apple solutions is to do a complete reinstall... I have found that unless you completely wipe a drive and rebuild everything there are often artifacts left behind. Since I have full and redundant back-ups I would rather explore and hack a little instead of a dull old system reinstall. The irony is the system issue I had was it was the result a reinstall and combo update on a new drive. I recognize the risks of entering the realms of the System folders but I am willing to explore knowing full well that I have a path to recovery.
    Thanks again for your insights. I come to the forums looking for insights and ideas but not a lecture...

  • A question about creating READ ONLY users.

    Dear all,
    I have a question about read only user accounts and I would appreciate if you could kindly give me a hand. I have a schema named SCHEMA1. Whenever I want to connect by using sqlplus I run the following:
    sqlplus user1/[email protected] SCHEMA1.WORLD is the entry in the tnsnames.ora referring to the schema SCHEMA1.
    I need to create a read only user who is able to SELECT all tables and views created by user1 on SCHEMA1 (this user will not modifiy anything at all. The user is used only for a person using SQL queries to read data). for several tables I write the grants explicitly, for example:
    CREATE USER user2 IDENTIFIED BY user2;
    GRANT CREATE SESSION to user2;
    GRANT SELECT ON S001_COR_ECLASS TO user2;
    GRANT SELECT ON REF_ECLASS511 TO user2;Is there anyway to do the same thing but for all the tables (because there are a lot of tables and views)? Besides, even with these granted permissions when the user connects with SQL Developer to the database, he is not able to view the list of tables/views in SQL Developer GUI. What causes this problem?
    Thanks in advance,
    Dariyoosh

    Hello Dariyoosh,
    he is not able to view the list of tables/views in SQL Developer GUIyou can either go to "Other Users" - user1 - tables. There you see every table you have permission to select.
    Or you can create a synonym in schema2 for each table in schema1 and set a filter on the tables node of user2 "Include synonyms".
    Regards
    Marcus

  • Question re Create PDF from Word doc

    Hi
    I am trying to create a pdf from a Word document (Word 2007, Acrobat 8 Professional), and am having lots of trouble with images,fonts and document overhead. With the fonts, i generate the PDF by saying Create Pdf from the plugin in Word. I specify in the Preferences that fonts are not to be embedded. I then open the PDF and access PDF Optimiser -> Audit Space Usage, and it says that fonts take up like 20% of the document, however there are only like 10 lines of text in Arial (9pt), and 6 titles also in Arial (Bold). I dont understand why Font is taking up so much space considering that i have elected not to embed fonts (if i go to the Fonts section in the Optimiser, it shows both embedded and unembedded panes blank).
    With the images, i have 2 jpegs in the footer, that are compressed (JPEG -> Low). The other thing i am struggling with is the headers and footers, if i generate the PDF from the Word doc with Headers/Footers, then images take up over 15% of the document. Not sure if there is a way to add headers and footers within minimum impact of filesize? I have tried checking everything in the 3 categories of Dicard Objects, Discard User data and Clean Up. but the Document Overhead remains at 35%.
    What else can i do to get these filesizes reduced?I have been researching this for days and have not come across anything that has helped.I have tried to PDF print, i have changed the font to like Courier, ensured no thumbnails or bookmarks, ensured JPEGs are not embedded in the doc, tried Save As, Save As under a different filename - basically anthing you can find on the net i have found and tried, but still cant fix this!!!! please, if anyone knows acrobate 8 better than me / or knows what the problem is, please advise????
    Thanks very much.

    The colors and size in a graphic needs to be done in a graphics editor. What type of editor would depend on the use of vector graphics versus bitmap. Sometimes vector graphics are larger than bitmaps if you are using a lot of lines that would display better as just a splotch of color. Such are the variations between vector and bitmap graphics, but important if you are looking for size reduction. For a bitmap, I would do the sizing and color depth with IrfanView, but you should be able to do that with PhotoShop if you have it. Vector graphics can be adjusted in Illustrator. The size of vector graphics is not an issue since they are scalable, but the size of a bitmap is important since your are looking at individual pixels and that depends on size. The point is that if you can adjust the color depth and size for the desired pixel resolution, the bitmap is optimized for the conversion to PDF from WORD.
    As I mentioned, the smallest file size job options should minimize font storage in the PDF. Checking with the PDF Optimizer does not always give you all of the fonts. I am not sure why. It is better to check the font tab in the document properties to see what has been embedded. There is a preflight macro to embed fonts, you might check to see if there is one to delete fonts (I have not checked on that). Sometimes you can play with the reprint of a PDF, but that is not an option that is generally recommended, particularly if you have any tagging or such. Of course, tagging can really bloat a PDF, but is needed for a variety of reasons such as format for saving back to WORD (not a great workflow), accessability, and related issues. In another topic, there is some discussion of the purposes of tagging and bookmarks. However, the tags and bookmarks take space if that is really an issue for you. The latter are avoided if you use the print to the Adobe PDF printer and do not use PDF Maker in the PDF creation process. Again, there is a trade-off here in terms of size and functionality, particularly accessibility compliance.
    Not sure I am helping as I run on, but sort what might be useful for you.

  • Question about ISE guest user account self registration

    Dear Sir,
    We will plan guest solution for my wireless network ( we have WLC5508 and 1142 access point ), our requirement is :
    1. guest user access to an wireless guest SSID, open browser, it will redirect to web-auth page.
    2. The web-auth page have a url and if user click the url, guest user then connect to another web page, guest user can input some information ( for examples : username, email, cell phone ,,, ) to create guest user account self. The expiration of the user account fix to one day.
    3. the username and random password created for the guest user then send by SMS or email to guest user.
    4. Guest user can use the username and password he received to login web-auth page to use guest wireless network
    5. User activity information ( user create, login/logout, expire time, user IP address ... ) should be log.
    Please help to verify the ISE with base license can meet our requirement. ( especially item 2 & 3 )
    Best Regards,

    Hi,
    Guest registration is covered with base licenses.
    Here is some material that will bring you up to speed:
    http://www.cisco.com/en/US/prod/collateral/vpndevc/ps5712/ps11637/ps11195/qa_c67-658591.html
    Base:
    Capabilities: Basic network access and guest access
    Network deployment support: Wired, wireless, and VPN
    License prerequisite: None
    Perpetual license
    Licenses are available for 100, 250, 500, 1000, 1500, 2500, 3500, 5000, 10,000, 25,000, 50,000, and 100,000 endpoints
    Tarik Admani
    *Please rate helpful posts*

  • Question about creating multiple output  files from same query

    I have a query like this:
    select * from emp;
    ename empno deptno
    Scott 10001 10
    Tiger 10002 10
    Hanson 10003 20
    Jason 10004 30
    I need to create multiple output files in xml format for each dept
    example:
    emp_dept_10.xml
    emp_dept_20.xml
    emp_dept_30.xml
    each file will have the information for employees in different departmemts.
    The reason I need to do this is to avoid executing the same query 200 times for generating the same output for different departments. Please let me know if it is practically possible to do this.
    Any input is greatly appreciated.
    Thanks a lot!!

    You can write a shell script to generate the multiple spools files for the same output. Below script may helps you.
    #====================
    #!/bin/bash
    n=0
    while [ $n -le 20 ]
    do
    n=`expr $n + 1`
    sqlplus -s system/manager <<EOF
    spool emp_dept_$n.xml
    select count(1) from tab;
    spool off
    EOF
    done
    #====================

  • Question about creating JPEG still from movie clip?

    The aperture help says that a frame will be copied as part of a stack .. But I do not see this to be the case. When I make a frame from a movie, I don't see ANYTHING different in the browser window. Please help!

    Yes, you can do that, but it's a little difficult to advise
    you the best way with the information provided:
    Can you clarify:
    Do you want to play the main clip while the thumbs continue
    to load... or do you want to preload the thumbs, then play the main
    clip, then do the tweening when the main timeline reaches the end?
    This way is easy enough.
    If you want them to continue to load and then do the tweening
    at the end of the main timeline (e..g with a stop() on the last
    frame) then its also not complicated, but you need to cover the
    situation where the loading of the thumbs may not yet have
    completed by that time (perhaps the risk is low if the timeline is
    long, but its a sensible thing to address regardless).
    Also consider whether you want anything to be hidden (i.e.
    _visible=false) at any point - e.g. before the thumbs have finished
    loading.
    As a starting point I suggest you would probably put the code
    after
    removeMovieClip("thumbLoading");
    and before the last curly bracket (" } ") in a separate
    function on the main timeline, e.g.
    function tweenThumbs(){
    //code here
    (its actually not easy to be sure, because I can't visualize
    what exactly it does)
    what you would do next depends on the answers to the above
    questions.

Maybe you are looking for

  • Set frame max size

    hey, is there a way to prevent a JFrame from maximising beyond a certain size? I have a JFrame that is 800 by 400, and i dont want it to be smaller than 700 by 400 and larger than 900 by 400. thanks Pedge Prog2(){ final Demo demo = new Demo(); DemoCo

  • 1200 x 800 vs. 1280 x 800

    In the refurbished section of this website, there is a macbook 2.4 ghz computer that is running for 1,299. The only difference is the 1200 x 800 mega pixels. The brand new ones have 1280 x 800. Is that even a noticeable difference? Does that mean the

  • What is the user to log in , so that i can assign privileges to a user

    Hi , Right now i cant execute procedure from my account called as 'ravi' as it says that i dont have enough privilges When i tried to use Grant option to assign privileges from user ravi , it says that i cant assign privileges to user from the same a

  • RMI server double identity

    I have 2 PC in a small LAN, both with Windows XP professional. The machine acting as server has 2 IP adresses: the first one, static, from a permanent ADSL connection (213.155...), the second one from the LAN ethernet connection (192.168.0.1). The ma

  • Reinstalling Photoshop Elements 11 from the beginning

    I am using Photoshop Elements 11 Organiser and the system has become so corrupted that I want to start again from the very  beginning. I have all of my photographs on memory sticks so I am not concerned about deleting photographs by mistake. I want t