Fine-tuning the appearance of JFileChooser

I have what I hope is a simple question:
I'm creating a customized JFileChooser. One of the cool things it does is it displays its own custom icons for the files. These icons are a bit bigger than the standard icons for my look-and-feel (Linux default LandF, whatever that is, in Java 1.5). These icons are about 45 pixels high. They look GREAT when viewing in the "icon" view, but when the user switches to the "list" view, they draw on top of eachother. Somehow JFileChooser doesn't know to leave more space.
Any suggestions on this?
And the other question, which I'm sure is a FAQ but I can't find it: I also have a file filter on this JFileChooser, and yet it gives the user the option of changing to "view any file type". Is there a way to turn that off? I really want to constrain what my users are doing.
Thanks

hi leena,
Look into these threads...
https://www.sdn.sap.com/irj/sdn/thread?threadID=119605
https://www.sdn.sap.com/irj/sdn/thread?threadID=101325
Also see,
<a href="https://websmp103.sap-ag.de/~form/sapnet?_SHORTKEY=00200797470000073623&_OBJECT=011000358700001480992005E">this link</a>
https://media.sdn.sap.com/public/eclasses/bwp04/PortalTuning_files/Default.htm
Regs,
jaga
Message was edited by: jagadeep sampath

Similar Messages

  • How to guide for Fine tuning the performance of SAP EP

    All,
    Could anyone please let me know where to locate the how to guide for fine tuning the performance of the SAP Enterprise Portal?
    thanks,
    ~L

    hi leena,
    Look into these threads...
    https://www.sdn.sap.com/irj/sdn/thread?threadID=119605
    https://www.sdn.sap.com/irj/sdn/thread?threadID=101325
    Also see,
    <a href="https://websmp103.sap-ag.de/~form/sapnet?_SHORTKEY=00200797470000073623&_OBJECT=011000358700001480992005E">this link</a>
    https://media.sdn.sap.com/public/eclasses/bwp04/PortalTuning_files/Default.htm
    Regs,
    jaga
    Message was edited by: jagadeep sampath

  • Fine Tuning The Enterprise Portal

    Hello world
    Currently i am searching about the best ways to fine tune our E Portal the below Info are the results of my search so far.
    Hope They Help You and please share any knowledge you have around this area.
    Tuning The E-Portal
    1-Tunable Parameters of SAP Web Application Server (JAVA)
    :Reducing the Network Traffic -From the Config Tool window,
    select: <instance> + services + http, and change the
    value of the following properties:
    -NeverCompressed: delete this values --> *.css, *.pdf, *.js, image,
    application/pdf, text/JavaScript
    -CacheControl: 604800
    Servlet_js p
    -EnableChunkedResponse: True
    -MinimumGZipLength:  1024
    2-SAP Web Application Server (Java) Monitoring Server
    Adjusting Log Severity Levels
    - re adjust the severty from ALL to ERROR
    3-Disabling the Distributed Statistics Service
    1.Run\usr\sap\<system_number>\JC<instance_id>\j2ee\configtool
    \offlinecfgeditor.bat
    2. Select Configurations -> cluster_data -> server -> cfg -> services->
    Propertysheet dsr-runtime -> <edit-button> -> startup-mode ->
    3. Select Custom and enter manual, and then select Apply custom .
    4. Restart the cluster.
    4- PRT Configuration
    \usr\sap\<system_id>\JC<instance_number>\j2ee\cluster\server<number>\apps\sap.com\irj
    \servlet_jsp\irj\root\WEB-INF\portal\system\properties
    SET
    -async.response.pool.size=100
    -PRT monitor  monitor.off=false
    -Log on to the portal as an administrator, and navigate to:
    System Administration -> Monitoring -> Portal
    -> Components Overview System Administration ->Monitoring ?? Portal ?? Threads Overview
      to help you identify bottlenecks in performance.
    5-Tuning the Application Server
    - Configuring JVM parameters on AS Java
    Set <-XX:SoftRefLRUPolicyMSPerMB=1000> (from default 1)
    - Avoiding session leaks - Tracing Single User Sessions
    - Tuning HTTP Provider Service
    -Enabling production mode
    6-Java Memory Analyzer Tool
    -Install Java Memory Analyzer Tool MAT
    - run performance reports using Solution Manger  // this only work if you have running solution manger on your system
    If You Have Any Tips Please Share
    Regards,
    Ahmed Salam

    Dear Ashish,
    From the Config Tool window --> Servlet_js p Tap
    -EnableChunkedResponse: True
    -MinimumGZipLength:  1024
    Read carfuly and you will find the answers
    Hope it helped
    Regards,
    Ahmed Salam.

  • Inputs for Fine tuning the program

    Hi All,
    Following code is taking lot of time... No i need to fine tune the same ,,,
    Please give some inputs..
    SELECT VBELN INTO VBUK-VBELN FROM VBUK
    WHERE ( CMGST EQ 'B' OR CMGST EQ 'C' )
    AND VBELN IN S_VBELN.
    SELECT * FROM VBAP WHERE VSTEL IN SHP_PT
    AND VBELN EQ VBUK-VBELN
    AND VKGRU '101'.
    SELECT VBELN POSNR EDATU FROM VBEP
    INTO (VBEP-VBELN,VBEP-POSNR,VBEP-EDATU)
    WHERE VBELN EQ VBAP-VBELN AND POSNR EQ VBAP-POSNR
    AND LFREL EQ 'X' AND BMENG GT 0
    AND EDATU BETWEEN DATE_LOW
    AND DAT_HIGH
    ORDER BY EDATU VBELN POSNR.
    CLEAR LIPS.
    PERFORM APPEND_DATA_TO_ITAB1 TABLES ITAB1
    USING VBEP-VBELN VBEP-POSNR
    VBEP-EDATU LIPS-VBELN
    LIPS-POSNR vbap-VSTEL.
    ENDSELECT.
    ENDSELECT.
    ENDSELECT.
    Regards,
    Chan
    Moderator message: Please Read before Posting in the Performance and Tuning Forum
    Edited by: Thomas Zloch on Nov 24, 2010 1:17 PM

    HI,
    Remove the select endselect the select all the entries into internal table then from tat internal table select by using for all entries into another internal table. for eq -
    IF NOT s_vbeln[] IS INITIAL.
      SELECT vbeln cmgst
            INTO TABLE itvbuk
            FROM vbuk
            WHERE vbeln IN s_vbeln.
      DELETE itvbuk WHERE  cmgst NE 'B' AND cmgst NE 'C' .
    ENDIF.
    IF NOT itvbuk[] IS INITIAL.
      SELECT *
             FROM vbap
             INTO TABLE itvbap
             FOR ALL ENTRIES IN itvbuk
             WHERE vbeln EQ itvbuk-vbeln.
      DELETE itvbap WHERE vkgru NE '101' AND NOT vstel IN shp_pt.
    ENDIF.
    Like wise modify the logic and check the secondary index is available for the where clause which you will be specifing.
    Regards,
    Madhukar Shetty

  • Fine tuning the logging to cisco device

    Dear Netpro Community,
    I am trying to fine tune the AAA portion on the cisco device
    Here is my current configuration:
    aaa new-model
    aaa authentication login default group radius local
    aaa authentication enable default group radius enable
    If the radius server is offline, the first level is not a problem. However, the issue occurs if I want to go to enable mode. It will not use the enable password defined locally, but instead it will go to and search for radius server for authentication.
    Debug:
    test_switch>en
    Password:
    01:05:15: RADIUS: Authenticating using $enab15$
    01:05:15: RADIUS: ustruct sharecount=1
    01:05:15: RADIUS: Initial Transmit tty0 id 44 x.x.x.x:1812, Access-Request,
    len 72
    01:05:15: Attribute 4 6 AC10E10F
    01:05:15: Attribute 5 6 00000000
    01:05:15: Attribute 61 6 00000000
    01:05:15: Attribute 1 10 24656E61
    01:05:15: Attribute 2 18 69ABFDF8
    01:05:15: Attribute 6 6 00000006
    01:05:20: RADIUS: Retransmit id 44
    01:05:25: RADIUS: Retransmit id 44
    01:05:30: RADIUS: Retransmit id 44
    Password:
    01:05:35: RADIUS: Marking server x.x.x.x:1812,1813 dead
    01:05:35: RADIUS: Tried all servers.
    01:05:35: RADIUS: No valid server found. Trying any viable server
    01:05:35: RADIUS: Tried all servers.
    01:05:35: RADIUS: No response for id 44
    01:05:35: RADIUS: No response from server
    % Password: timeout expired!
    % Error in authentication.
    How do I ensure that i can access the switch in privilege mode if there is no path to the radius server?

    Jagdeep:
    With the default "radius-server retransmit" value, there are (potentially) three retransmissions that may occur if the RADIUS server doesn't respond to the first request. With a 1 sec. "radius-server timeout", this provides a four second window of opportunity for a successful response.
    If he doesn't want to use a "radius-server timeout" as low as 1 sec. (per your concern), he can use the "radius-server retransmit" command to constrain (to a reasonable period) the time required to mark an MIA RADIUS Server as dead.
    e.g.:
    radius-server host aaa.bbb.ccc.ddd auth-port 1812 acct-port 1813 timeout 2 retransmit 1 key xxxxxxxxxx
    Contrary to your statement, your approach and mine are trying to facilitate the same thing, i.e.: accommodating fall back to the enable method prior to login timeout.
    However, your recommendation only results in a successful login after 20+ sec., due to postponement of fall back, resulting from the 20 sec. spent determining that the MIA RADIUS Server is dead.
    I don't ever want to wait 20+ sec. for a login, and don't find it necessary to wait that long to conclude that an AAA server is MIA.

  • FIne Tuning the Cisco Prime Alarms

    HI Expert,
    One of our client having Cisco Wireless LAN infrastructure with Cisco Prime. Currently they are getting more alarms (minor) on their environment.
    They would like to modify the Alarm pattern / threshold to minimise the Alarms pop-up in prime. Could you please advise me how we can modify this ?
    Also do  Cisco having any documents for how to  fine tune ? 
    Thank you.
    -Ananthan

    Hi 
    Here's the document for the customization of alarms.
    Configuring Alarm Severity Levels
    A newly generated alarm has a default severity level that you might want to change.
    To configure an alarm’s severity level, follow these steps:
    Step 1 Choose Administration > System Settings.
    Step 2 From the left sidebar menu, choose Severity Configuration.
    Step 3 Select the check box of the alarm condition whose severity level that you want to change.
    Step 4 From the Configure Security Level drop-down list, choose a severity level, then click Go.
    Step 5 Click OK to confirm the changes.
    Configuring Alarm Severity Levels
    http://www.cisco.com/c/en/us/td/docs/net_mgmt/prime/infrastructure/2-2/user/guide/pi_ug/alarms.html#pgfId-1054721
    - Ashok
    Please rate the useful post or mark as correct answer as it will help others looking for similar information

  • Fine tuning the cursor

    I am using two cursors in my Pro*C applicatioin
    exec sql declare cur_open_act cursor for
    select distinct d.member_number,
    a.account_number,
    a.registration_type,
    f.registration_desc,
    a.office_code,
    a.open_flag,
    a.date_opened,
    a.state,
    a.restriction_code,
    a.restriction_date,
    nvl(c.book_shares, 0) +
    nvl(c.memo_book_shares, 0) +
    nvl(b.non_company_sweep_balance, 0) +
    nvl(a.cash_td_balance, 0) +
    nvl(a.cash_sd_balance, 0) +
    nvl(a.margin_td_balance, 0) +
    nvl(a.margin_sd_balance, 0)
    ) as balance
    from br_accounts a,
    (select account_number,
    sum(sweep_td_balance) non_company_sweep_balance
    from br_sweep_accounts
    group by account_number) b,
    stars_accounts c,
    br_member_accounts d,
    br_office_codes e,
    company_registration_types f
    where a.account_number = b.account_number (+)
    and a.account_number = d.account_number
    and a.sweep_fund_number = c.fund_number (+)
    and a.sweep_account_number = c.account_number (+)
    and a.registration_type = f.registration_type (+)
    and a.office_code = e.office_code
    and a.open_flag='Y'
    and d.relationship_code in ('PRI','RET','TTE')
    and e.managed_product_ind != 'Y';
    exec sql declare cur_close_act cursor for
    select distinct d.member_number,
    a.account_number,
    a.registration_type,
    f.registration_desc,
    a.office_code,
    a.open_flag,
    a.date_opened,
    a.state,
    a.restriction_code,
    a.restriction_date,
    nvl(c.book_shares, 0) +
    nvl(c.memo_book_shares, 0) +
    nvl(b.non_company_sweep_balance, 0) +
    nvl(a.cash_td_balance, 0) +
    nvl(a.cash_sd_balance, 0) +
    nvl(a.margin_td_balance, 0) +
    nvl(a.margin_sd_balance, 0)
    ) as balance
    from br_accounts a,
    (select account_number,
    sum(sweep_td_balance) non_company_sweep_balance
    from br_sweep_accounts
    group by account_number) b,
    stars_accounts c,
    br_member_accounts d,
    br_office_codes e,
    company_registration_types f
    where a.account_number = b.account_number (+)
    and a.account_number = d.account_number
    and a.sweep_fund_number = c.fund_number (+)
    and a.sweep_account_number = c.account_number (+)
    and a.registration_type = f.registration_type (+)
    and a.office_code = e.office_code
    and a.open_flag='N'
    and d.relationship_code in ('PRI','RET','TTE')is
    and e.managed_product_ind != 'Y'
    and (
    nvl(c.book_shares, 0) +
    nvl(c.memo_book_shares, 0) +
    nvl(b.non_company_sweep_balance, 0) +
    nvl(a.cash_td_balance, 0) +
    nvl(a.cash_sd_balance, 0) +
    nvl(a.margin_td_balance, 0) +
    nvl(a.margin_sd_balance, 0)
    ) != 0;
    The query used is redundant for the most part and is shown below
    select distinct d.member_number,
    a.account_number,
    a.registration_type,
    f.registration_desc,
    a.office_code,
    a.open_flag,
    a.date_opened,
    a.state,
    a.restriction_code,
    a.restriction_date,
    nvl(c.book_shares, 0) +
    nvl(c.memo_book_shares, 0) +
    nvl(b.non_company_sweep_balance, 0) +
    nvl(a.cash_td_balance, 0) +
    nvl(a.cash_sd_balance, 0) +
    nvl(a.margin_td_balance, 0) +
    nvl(a.margin_sd_balance, 0)
    ) as balance
    from br_accounts a,
    (select account_number,
    sum(sweep_td_balance) non_company_sweep_balance
    from br_sweep_accounts
    group by account_number) b,
    stars_accounts c,
    br_member_accounts d,
    br_office_codes e,
    company_registration_types f
    where a.account_number = b.account_number (+)
    and a.account_number = d.account_number
    and a.sweep_fund_number = c.fund_number (+)
    and a.sweep_account_number = c.account_number (+)
    and a.registration_type = f.registration_type (+)
    and a.office_code = e.office_code
    and d.relationship_code in ('PRI','RET','TTE')is
    and e.managed_product_ind != 'Y'
    Is there a more efficient way other than using 2 separate cursors?
    I don't want to use the redundant portion as a single cursor since it affects the performance.
    Edited by: user9285722 on Apr 1, 2011 4:43 PM

    Hi,
    Why dont you just use the 1st cursor and along with what you do with the first cursor, if balance!=0 then do what you do with second cursor.
    I dont know how you do in pro*c, but here is the algorithm.
    open cur_open_act;
    loop
    -- Do your operations that you do with cursor1.
    ---Now along with that
    IF cur_open_act.balance != 0 then
    ----- Do your operations that you do with cursor2.
    END IF;
    end loop;G.

  • Fine tuning the database query

    To analyse the load of a particular object. we do use 'performance analysis' in ABAP. But let us suppose we've come to know that more load is on the database. i.e. suppose 80% on database, 20% on Application server. what could be the possible steps that u wud perform on the query so that the load gets decreased. we don't have a chance to transform the load from database to application server (such as using internal tables and hence reducing the load). we should do something on the database side. so what can we do. any solution would be highly appreciated.
    thanks in advance for the solution.

    Hi,
    You should use ST05 and then Switch TRACE ON for SQL.
    Then do your query again.
    After you have run your query, you switch the trace OFF and then you display the trace.
    When displaying the trace you can see which SQL queries that have been made and how long time they have taken (left most column).
    If the time is RED that indicates a bad query.
    Anyway. Doubleclick on the query to find out how the query is made.
    And analyse the table(s) that are used and whether or not an INDEX is used.
    If no index is used you can ADD an index to the database table(s) in transaction SE10. Or directly in the database if you have that possibilty.
    ST05,
    Trace on,
    Run query,
    Trace off,
    Display trace,
    Analyze trace.
    Good luck!
    BR Mattias

  • How to fine tune the performnce of Adobe - WebDynpro Java

    Hi Experts,
    Upon deploying an Adobe - WebDynpr Java application on my local NWDW machine having 2 GB RAM, it takes around 10 minutes by watch before the PDF form appears on the screen with the populated data.
    This is really depressing as the client will surely not accept this.
    Any tips on fine tuning the performance of Adobe online applications?
    Regards,
    Shobhit

    hi,
    when the J2EE engine is running...
    goto task manager....
    see performance.
    if the memory usage is more than the memory you have installed,
    that means you are using virtual memory...(ie. hard disk as RAM)
    try shutting down any excess processes which you are not using.
    (CAUTION: shut down only those processes which you know)
    Summary is:-
    check if you are on virtual memory.
    because if you are using virtual memory....
    you are falling short of RAM.
    our server also has 2 GB RAM, but it works fine(including Interactive forms)
    regards,
    -ag

  • Few Methods of fine tuning query

    I want to know few methods of fine tuning the query

    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96533/toc.htm

  • To extend a clip I have `Show Fine Tuning controls' turned on in my iMovie 11 preferences, but the blue forward/backward buttons don't appear.  To get the orange handle bar, is there a hotkey?

    To extend a clip I have `Show Fine Tuning controls' turned on in my iMovie 11 preferences, but the blue forward/backward buttons don't appear.  To get the orange handle bar, is there a hotkey?

    That's a comment in the file. It has no effect at all.

  • Noise reduction - RAW fine tuning and the Noise Reduction tool

    Hi,
    1- If I get it right, Aperture's RAW fine tuning "Automatic noise compensation" (translated from French) option uses the camera's information to adjust the noise. Is that correct?
    2- The Noise Reduction tool is there to provide additional noise reduction, but this makes you lose some details. Is that correct?
    3- How do you use them? I often find the Noise Reduction tool a bit overkill, but that's me.
    4- This one is just out of curiosity. How does A3 compare to LR3 beta for you in that regard? In my testing, LR3 did a slightly better job (but A3 totally beats the crap out of LR2 for noise). BUT I have an old D50, and newer cameras handle noise better (especially Nikon), so does it really make a difference for a 2008 or newer camera?
    Thanks!
    Manu

    Manusnake wrote:
    pilotguy74 wrote:
    I don't even have this option/checkbox in my Raw Fine Tuning brick.
    I wonder if it's due to the type of files (Canon 7D). Do you still have those 7D files I sent you? Does the checkbox appear in Raw Fine Tuning for you with them?
    I noticed this option in the manual the other day, but forgot about it until now.
    True, it doesn't have the checkbox with the 7D files. However, it as a slider "noise suppression" (again translated) in the RAW fine tuning options (and still has the Noise suppression brick).
    If you don't have this one too, have you reprocessed your images with Aperture 3? Since it has a new raw engine, it may be the cause of it.
    I find it strange that Apple didn't tout the new RAW engine on Aperture 3 new feature, it clearly is an improvement over Digital Camera RAW 2, especially in noise suppression.
    I agree the built-in noise suppression is much better than A2, but IMHO it pales in comparison with the Noise Ninja plugin from Picturecode. The key is that you calibrate a profile for Noise Ninja by shooting a color chart full screen on your computer at varying iso settings with each of your cameras. You then feed the images back in to Aperture, and tell Noise Ninja to create a noise profile for each setting. The results are amazingly good.
    Now with a lot of new cameras, noise processing is getting less important because the high iso performance is so good....but this is what makes Noise Ninja special...even when the noise adjustment is subtle, because it is working from a profile created with your camera, at the iso the shot was made at, its effects are seamless. They just announced a 64 bit plugin for Aperture 3, so no bouncing into 32 like other plugins at the moment...
    Sincerely,
    K.J. Doyle

  • I am trying to download and install itunes on windows 7.  The download works fine and it appears that the install works fine as well but when it finishes itunes is nowhere to be found. I am in Mexico. Please help.  Thanks

    I am trying to download and install itunes on windows 7.  The download works fine and it appears that the install works fine as well but when it finishes itunes is nowhere to be found. I am in Mexico. Please help.  Thanks

    You can try using this tool to first remove all traces of Reader from your computer:
    http://labs.adobe.com/downloads/acrobatcleaner.html
    Then, you can download the full offline Reader installer from
    http://get.adobe.com/reader/enterprise/
    After downloading, restart your computer and run the installer before doing anything else.

  • I think i hit some important key accidentally. something changed.  now when i receive photos, they only appear in the message and i have no thumbnails nor a way to download.  those same e-mails with photos do fine on the iPad/iPhone, so it is my computer.

    something changed on my computer after i accidentally hit some key.  when i receive e-mails now with photos the images appear in the message
    but no thumbnails nor way to download.  these same messages are fine on the iPad and iPhone.  so, it is my computer that is awry.  any keyboard
    way to have the computer show thumbnails and to be a able to click and download these images?  i've tried everything i can think of. 

    Using the Title to post the full question... ;-)
    Snow Leopard Mail
    iPhone
    iPad
    http://www.apple.com/support/mail
    (This is Mac workstation community.)

  • In Firefox 4, why are the website icons not appearing in the tabs and next to the URL in the address bar? They appear fine in the bookmarks menu.

    The little favicons that represent the website show up as the blank page icon in the toolbar and in the address bar, but they appear fine in the bookmarks bar. I have tried clearing my cache, and that did not help.

    The little favicons that represent the website show up as the blank page icon in the toolbar and in the address bar, but they appear fine in the bookmarks bar. I have tried clearing my cache, and that did not help.

Maybe you are looking for

  • Iphone 5s does not transmit voice during phone calls

    iphone 5s does not transmit my voice during a phone call.  Just started happening.  The microphone works with Siri and the speaker works fine as I can hear the person I called.

  • Is telnet use local tnsnames.ora?

    I was suprise that when the local tnsnames.ora of client was not correct,sqlplus at telnet can't connect to server,and when the file was modify,I can use sqlplus connect to oracle through telnet. is telnet use local tnsnames.ora?

  • Migration Assistant refuses to assist me

    Hi, I am running 10.9.4 on a mid-2009 Macbook Pro attached directly to a 1TB Time Capsule running it's latest firmware version (7.6.4). I did a clean install on the laptop. and attempted to do a time machine restore from another backup I have, but th

  • Oracle 9i won't install on v9.2 so no Forms/Reports also

    Have just installed 9.2.0.1 on Windows XP am now trying to install Forms and Reports Developer amongst others and get the error message "Oracle 9iAs cannot be installed onto an existing 9i 9.2.0.1 or higher oracle home". The process will not go any f

  • Quick Question - just a curious question really...

    I got a new iMac last month and had previously owned an iMac G5 and had been using the Mail feature - having my comcast e-mail transfered to it. When I opened up mail on my new computer - all I did was type in my e-mail address and password, and ever