Customizing JFileChooser (File Size) Need Help

Can you help me with this. I want to customize my JFileChooser. I'm in a Windows environment so the file view that I see is same with that of the option pane of windows. What I would like to do is make the size that is viewed from the screen from ##KB to specific bytes size. (ex. 34421245). Can someone help me on this. I was able to see some codes on the net but those codes are not straightforward. They override the BasicFileChooserUI. Can someone help me on this. I don't want to override the BasicFileChooserUI instead I want to use the JFileChooser and change the size from ###KB to bytes. Thank you. ^_^

Hi Rachel,
My best idea for that is to load the swf files externally, so
that each page is a different swf. A technique like this would be
very simple and quick to use, because it only loads what you need
when you need it.
For example, you'd set the intro page to load right away, and
then when you select "At Work" the intro page unloads and is
replaced by the at work page.
Another thing you may want to consider is holding the images
in an xml file, and then using some basic flash/xml intergration to
load each image as it's called. That way each image isn't stored in
the flash file causing it to increase in size, and instead is
actually loaded externally which is must faster.
There are some great tutorials, if you're intrested, on how
to do both of these at:
http://www.kirupa.com/
Hope I helped some!

Similar Messages

  • How do you overlap PDF's and finish with one PDF file? Need help ASAP

    how do you overlap PDF's and finish with one PDF file?
    Need help ASAP

    I'm not sure if you can do that with CreatePDF.  Try it; you got one free use when you sign up with Acrobat.com
    If not, you will have to use Adobe Acrobat; there is a full-use 30 days trial.

  • HD File Sizes - Please Help

    Hi there... i imported files from my camera, on my camera is 120GB, and i can film 13 hours in Full HD (1080) when i imported it to my mac, a 5 min clip was 5 Gigs. i dont get why its 5 gigs, i can record 13 hours on 120 Gigs... does anyone know how i can reduce the file size without loosing quality? thanks for all the help.

    AVCHD is a compression file storage format. That compression needs to be decompressed in order to be viewable as video for editing. It's like having a zipped or stuffit file backup of one of your programs. While compressed it is small and thus there is room for more info on the storage device. But, when you're ready to use that program, you uncompress it, suddenly it's much bigger.
    When you are ready to burn a DVD, iDVD, TOAST 10, or whatever you choose will compress the video again as it burns your disk. As you may see in other posts on this forum, iDVD will compress as much as necessary (within reasonable limits) to be able to fit 2hr. of content on the DVD disk.

  • Accurate Bookmark File Sizes Needed Before Reinstall.

    I'm about to change Linux distribution and have around 20 thousand links (according to Library and Search). Most of those links are in category folders and sub folders and stuff gets routinely deleted when not needed, entire categories are often deleted when done with.
    If I backup the current bookmarks, the HTML file comes to 7.7 MiB and JSON file 7.3 MiB. How can I be sure those backup files actually contain my current 20k worth of links??
    It just seems a small file size for such a large amount of links. I'm sure I've seen larger backup file sizes than that in the past but it could be that things have changed under the hood and things have got more compressed.
    I can't really afford to discover that I've lost a load of links and folders when I come to set Firefox back up in a new distro (using import). It's bad enough Firefox ignores any current layout integrity when bookmarks get imported over into a new set up and I end up having to re-order everything over the following days. But I'm grateful that previous large (but smaller than this) backup bookmark files do usually end up whole.
    Thanks.

    Hi,
    One way you could check is to import the bookmarks backup into a [https://support.mozilla.org/en-US/kb/Managing-profiles new profile], install [https://addons.mozilla.org/en-US/firefox/addon/sqlite-manager/ SQLite Manager] in both the profiles, and compare the count for any discrepancy: Firefox '''Tools''' ('''Alt''' + '''T''') > '''SQLite Manager''', ignore any prompts, select [http://kb.mozillazine.org/Places.sqlite places.sqlite] and '''Go''' in the middle of the toolbar. Next select '''moz_bookmarks''' on the left and click '''Search''' (button) on the right. For the Search, '''type''' = 1 and '''title''' IS NOT NULL would be a good criteria.
    [https://support.mozilla.org/en-US/kb/Profiles?s=profile&r=2&e=sph&as=s Profiles Howto]
    [https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles Profile Manager]
    [http://kb.mozillazine.org/Profile_folder Firefox Profile Folder]
    [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder & Files]
    To open the profile folder via Firefox: '''Help''' ('''Alt''' + '''H''') > '''Troubleshooting Information''' > '''Show Folder'''.
    You can also install SQLite Manager on just a single profile and use '''Connect Database''' via the '''Database''' menu.

  • How do I save markers to an MP3 file? Need help asap.

    I add the markers to my wav file and save the wav file as my master. Then I save the wav file with the markers as an MP3 file. However, when I open up the MP3 file, there are no markers. I need the tracks to be on the MP3 file for digital downloads. how do I add markers on  an MP3 file so I can either
    use that file to have as a digital download and/or burn a CD. Either way I use the file, I need to have the markers on the MP3 file. I really need help with this. I am working on a project that is time sensitive. Anyone that can help me would be greatly appreciated. Thank you.

    No.
    I've reread portions of the manual and it's kind of coufusing, but I think I figured it out
    The manual states in order to save markers, you have to save non-audio data with the file. It also states it saves this as XMP info in an mp3.
    I don't think the markers are a datatype that get exported with XMP info, at least from what I can tell becuase I have been unable to save an mp3 with the markers.
    But, let's sidestep that. Right now, this isn't your issue. Your issue is you want to preserve track markings so when people download this mp3, they can listen to it as "tracks" rather than a continious MP3. The problem is not all mp3 software supports it, in fact, everything that does has it bolted on. So only a small percentage of people downloading the mp3 will be able to actually use that function. foobar2000 and winamp users, yeah, they could deal with an mp3 using an embedded cue....if you embedded the cuesheet as it required. Windows Media/iTunes people...they have absolutely no support for playing a long mp3 as tracks.
    so, to begin with...what you want to do, is "technically impossible". CUE is not supported by id3v2 and is therefore not offically supported. Don't get angry at me, I did not write the mp3 specifications. You'll likely find that even if you do find a solution googling "embed cuesheet mp3", the results won't work the way you want or be a method thats universal. Regardless of how you do this....audition is not going to embed markers when you save as mp3. You'd have to export the markers to a cue-sheet somehow (which I haven't figured out how to do in audition because it appears it doesn't) and use an external program to embed them...or distribute the cue file with the mp3. milage will vary, majority of users probably wouldn't be able to make use of it.
    The OTHER alternative...which is probably less supported than embedding a cue sheet to an mp3, is you CAN maintain makers and have a layer-3 bitstream...but you have to save the file as a .wav using an ACM WAV and use a layer 3 codec. Technically, you're creating a wav, but since wav can work technically as a container format, the audio content is mpeg layer 3...but, again....since things like Media Player or iTunes or even Winamp don't pay attention to them as they're extra information in the WAV header, this still doesn't give you the track-split function you're looking for.
    there have only been loose standards defined by developers and users for what you want to do. while there are "open" ways of doing it, it's never gained much support.
    the only way you can guarntee you can distrubte track'd mp3's is to split thing in to seperate files to begin with.
    sorry.

  • Why compilation on  custom .fmb files was needed...???

    Hi,
    On client site there are two env: 1) development, 2) test.
    On Both of them exactly the same EBS version, same patches on the same OS and version is used...
    However, on the first env the compilation of custom .fmb files was not needed whereas on the second was needed...!!!!
    Can you give a logical explanation...????
    Note: the ebs version is 11.5.10, the OS is RHEL 4.6
    Thank you,
    Sim

    They simply appear on a white background... i mean the form fields and the tables (in the case of multi-record blocks) are not distinguished....
    Sim

  • I have lost my files i need help i am in urgent

    hai singsk i have lost all files from my memory card in my nokia asha 311 pls help me how i can recover all files in my memory card i need help pls i am in urgent.is any one know how to solve this problem help me 
    Solved!
    Go to Solution.

    Data recovery software might be able to recover .jpeg for you, but outside remit of this manufacturer's sponsored forum really.
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • Dramatic drop in file size - please help?

    My CR2 files of about 25MB are being reduced to about 1MB jpg's after going through ACR and PS CC and being saved. Sometimes I crop and sometimes I don't, this is not the reason.  Also I choose the save as max file size always. Where am I going wrong?
    Mac OSX 10.6.8
    PS CC
    Using Bridge

    The best reason for shooting RAW is that its very forgiving.  Its like having a peace of exposed film an exposure that does not get destroyed during development.  You can develop it over and over again.
    The truth is there has not been a huge change in image size in your jpeg image unless you interpolated the image size during raw conversion.  If you do not interpolate the image size your RAW data is for  the same number of pixels as you jpeg image with the exception of some outer pixels which are only used to realize inner RGB color pixels in your RGB color image.   In fact there are more bytes required for the RGB image.  For 8bit RGB image have three 8bit values for each pixels. 8bits for red 8 for green and 8 for blue. So each pixel requires 24bits, 3 bytes. Raw pixels have a single 12 or 14bit value for a single color Red or green or blue. For most digital sensors and there are twice as many green pixels as there are red and blue pixels. 
    The quality of each pixels varies with sensor exposure lighting etc.   There is also a quality setting for jpeg from 0 to 12 which influences how compression is performed.  High values in the 10 to 12 range produce  larger files and when the image is encoded into a jpeg file.  When a jpeg file is decoded the image quality is close to the image that was encoded with a high quality value jpeg setting  but its not exactly the same. Some image quality is lost. You will be hard press to see any difference in print quality at quality 10 and 12.  Quality 10 jpeg file are quite a bit smaller then the quality 12 files.
    It is not a good idea to work on an image using jpeg image format with repeated edit sessions. For image quality will drop a little with each edit session.  If you edit in a single edit session you can save the image over and over again in jpeg format without loosing a much image quality it the same as encoding the image once in jpeg.   You loose quality when you use many edit session.  Each session generate a new generation of the jpeg image. Each additional edit session causes a jpeg format decode and a jpeg encode for the save one or hundreds of saves.  The original edit session if done through ACR did not have any jpeg decode. It had a RAW conversion that was later save and encoded in Jpeg format.
    Its the sequence decode encode decode encoed  the cause quality lose each edit session only has a single decode duing open.

  • My iBook has lost my files! Need help!

    Yesterday I went to unlock my computer and the password box wouldn't come up all it showed was a spining color wheel, so I shut my computer down with the power button and restarted it. After I loged back in all of my files in my doc, picture, movies, and music folders along with my files on my desktop had disapeared. My hard drive still says the space is used up on my hard drive I just can not locate them anywhere. I have run disk utility and have not been successfull in recovering anything. Does anyone have any ideas on how I can recover/find my files again? Thanks in advance.
    iBook G4   Mac OS X (10.3.9)  

    You can try and start the computer from the OSX installer disc#1 and
    use the menu beneath the "Installer" by clicking on its name, to access
    the part that says reset password. This may be a premature move, but
    if you can find anything regarding your system before this, you may need
    to see if you can do so by attempting an Archive and Install; and choose
    to save your user permissions and information, so maybe a new system
    could have your old account stuff in it. That may retain your old user folder.
    Another idea (outside of the two or so packed together above) would be
    to make a new user with Admin privileges and use that to see if the
    system can be talked into finding your other files. Each user's files
    have a certain inaccessibility from even an Admin's level of permissions.
    I have and use OnyX software in my machines, and it does a
    good job of keeping on top of system maintenance procedures
    I am otherwise at a loss or too lazy to perform; it can do some
    tasks to help clean up a system (but not wipe stuff) and keep
    the time/date things working smoothly; and other tasks. I use it
    a few times a month, usually when bored and the system's fine.
    Preventative maintenance and repairing disk permissions can
    help to keep things going well. Don't know really why, but it does.
    [I know if/when the situation you have should arise in my computers, I
    hope to have a working full computer hard drive clone available to go in
    and irradicate the contents of the hard drive and replace it with a clone.
    But any super-recent stuff would be lost unless automatic backups were
    being made by a utility on the computer, making a backup to a FW HDD.
    Mine do not have this last faculty. Mine is a full clone from a week ago.
    Made manually, and when I did that, other utilities were run and the drive
    was wiped, zeroed and reformatted; and the clone was re-cloned back.]
    You may be able to see some "lost" files (but not open them) from a
    new user account, by using a utility named What Size. This can find
    things that take up disk space, and it also can delete things real easily.
    It does not care what it deletes, but it can find things by size and location.

  • I deleted all my iTunes files and need help recreating them.

    Hello everyone
    I accidentlly deleted all the iTunes files (NOT the content, just the files iTunes uses in its database). When I tried to create a new database, iTunes moved all my my music videos into the Movies or Home videos, which I don't want. I have a copy of my folder set up that I want iTunes to use and to not alter (exactly as it was before I deleted the files). Here is what I thought I need to do. Please corect me if I am wrong:
    1. remove all the files that iTunes has relocated to different folders (IE, basically delete them all)
    2. copy the folders onto the drive I use for my media
    3. start itunes
    4 unselect Keep my files organized
    5. scan the folders
    6. Select all the music and videos and classify them as "Music" or "Music Videos"
    This should keep all the files in the same folders as the backup copy, without moving them to Videos or Home Videos. I assume this will also retain the current Artist / Album / Song hierarchy.
    Is this correct?
    Any better way to do this?
    Thanks everyone who can help!
    JoHN

    1) If you bought them from Apple you canprobably download them again.
    2) If you back up your computer as you should, they will be on the backup.
    3) If you stop using your computer this instant (because as you use the computer it overwrites deleted files even if you have lots of space), buy recovery software ($100+), there is a  chance you can recover some of them, though they may have lost filenames and will be in quite a mess.

  • Having trouble with a audio file. Need help please!

    Hello. 
    This may sound funny and not to related to any of this at first, but if anyone here knows about the game portal, then they know about the ARG that went on during last week and may even still be continuing. None of thats really important but if anyone cares to know, basically VALVe released a new update with 30 new sounds, 26 of them moarse code/sstv pictures. 3 of them called dinosaur_fizzle 1 2 and 3. Infact, each one was named dino_1 dino_2 and so on. 
    The main sound that no ones been able to crack is called Dinosaur_noise. Its obvious there are voices in it and its some sort of major clue, this file is way out of league with the other ones. No ones solved it 100% or cleaned it enough to make basically anything audible.
    Now this started March 1st. Since then i have worked hours on the audio file. I have gotten close, but not close enough.
    Thats why im turning to someone here, that can do a through analysis of the audio that adobe or reaper just cannot do.
    In the attachments is the original file itself with no editing what so ever.
    Heres some collected data. 
    Frequencies of interest
    An analysis was undertaken to find the strongest frequencies acting within "dinosaur_noise". Linear and Logarithmic curves showed sets of dominant figures, with the most being:
    Frequency (Hz)
    Comments
    9092
    Largest spike before silence
    7862
    Very faint
    7812
    Very faint
    7657
    Very faint
    7502
    Largest spike in the 4000-9000Hz band
    3502
    various noise between 3502 and 3510
    360
    Another very visible wave. This was the most pronounced visible wave in the Logarithmic scale
    35
    The most dominant low frequency wave
    There are a few standout segments, not of voice data underneath, but visible clicks or something happening about 5 times. These could be indications of splices or other manipulations going on. The largest noticed broad-spectrum spikes were:
    Time(in samples)
    Comments
    55402
    First broad spike
    422931
    Second broad spike
    751643
    Third broad spike
    1081537
    Fourth broad spike
    1110841
    Fifth broad spike
    Silence in the frequency ranges is located in the band of 10.567 - 15.337 KHz. All frequencies above that are likely to be high frequency poinoning from the FFT process. 
    Heres what i know personally.
    -Noise reduction makes it a lot worse and adds strange harmonics and artifacts.
    -Most filters do the same.
    -Clear voice around 15 that says THATS AMAZING.
    If anyone cares to help I would appreciate it so much.
    Here are some links that might help.
    http://www.snotmonkey.com/work/school/405/methods.html
    http://pastebin.com/r90fEtnd C++ code
    Actual files in attachments 
    Attachments:
    dinonoise.zip ‏2554 KB

    LabVIEW has a sound and vibration toolkit.  Do you have that?  Do you have LabVIEW?
    The forum is made up of volunteers who will help others with their LabVIEW problems.  But you need to have a specific problem and ask clear questions.
    What you are asking for is very unclear.  Why do you even want to do a "thorough analysis of the audio"?  No one is going to do your project for you.

  • File Merging --- Need Help

    Greetings,
    I am pretty new at this program, and I am trying to understand how to do my homework assignment. So I do not need the full code, just some help on how to get started.
    I am trying to write a program that merges all files together whose names match a certain pattern, and writes the result to an output file. The input-file pattern will consist of a combination of "normal" filename characters and question marks (?). A question mark in the input-file pattern denotes a single-character "wild card". Thus, the pattern ab?c?.txt would denote all file names that consist of 9 characters such that:
    the first two characters are ab
    the fourth character is c
    the last four characters are .txt
    For example, this would include filenames such as abxc7.txt and abqcc.txt.
    So if there are files in a folder, for example, called abc.txt, adc.txt, cat.txt, and the contents of each has two similar lines of "This is File ZZZ" Where ZZZ represents the name of the file. Then running the program with the pattern a??.txt and the output file finished.txt will result in the file finished.txt having the contents
    This is file abc.txt.
    This is file abc.txt.
    This is file abd.txt.
    This is file abd.txt.
    I don't really know where to begin here. Could you help me out? Thanks

    Check out the API docs for java.io.File. It has methods to list all the files in a particular directory.
    For the name matching, you can create a class that implements FileFilter or FileNameFilter that you then pass to these methods.
    The filter's accept method would test the file name against your criteria.
    (You wouldn't have to use the filter. You could just iterate over the files and compare each one yourself.)
    To do the actual comparison, you could use the String.matches() method or you could just do the character by character comparison yourself.
    If you google for java io tutorial you should find something that will help you with the File class, and java regex tutorial for String.match()
    Break the problem into small pieces, and get each one working before moving onto the next.
    First write a method that takes in a pattern "a?bc?.txt" and a String (that represents a filename) and returns true or false depending on whether it mathes.
    Then write a method that takes the patten and an array or List of Strings or Files and uses the first method to return an array or List of Strings or Files that represents the subset of the original list that matched.
    Post again if you have specific questions about specific parts that you don't understand or cant' get to work.

  • InDesign 9.2.1 (CC) Device Independent PS File Size? Help!

    I'm trying to save an InDesign PS file through the Print dialogue box. PDFs are not working for the architectural plotter so that's not an option.
    Trouble is that the PS file is only collecting the pages at letter size. My file must be architectural C (18 x 24). When I select Device Independent I cannot select an output size.
    I followed this older thread, but this DID NOT work. http://forums.adobe.com/message/4740891#4740891
    Help.
    Many thanks,
    Seth

    Thanks. I searched the net for the PPD for PDF 9.0 and created a folder called PPDs in the application Presets folder. I placed the PPD in there and it worked. I also located the Océ driver for the particular printer and put that in there too and it worked as well.

  • Server Size Need Help !!!!

    Hi Experts,
    Our current BW database structure is like below:
    DB Size - 180,803 MB
    Size Used - 180,627 MB
    Free - 176 MB
    Logical Files used by SQL server are,
    DATA1 - Size (66,417) - Used (66,256) - Free Disk (15,014)
    DATA2 - Size (55,289) - Used (55,288) - Free Disk (15,014)
    DATA3 - Size (59,096) - Used (59,080) - Free Disk (15,014)
    Questions:
    1. How safe is the current structure? What is the next solution to reduce the risk?
    2. We have an existing above BW system , Now we are implementing few more BW projects,  for those different projects we will need to load huge data into this BW system. Is it best to have BW on one single server or is it best to have several smaller servers and spread the work across them? How to decide about the new Hardware sizing?
    Thanks in Advance,
    Sai.

    Hi,
    Increase number of logical files.. DATA1.... DATA9
    split table spaces across logical files...
    for ODS and CUBES define tablesspaces... and assign those tablespaces while creating cube or ODS
    Regards
    Ben

  • Customer Exit not working - need help in diagnosing

    Hi all,
    I need some help in identifying a Customer Exit issue in our QA system. 
    Currently, in Dev I have a customer exit defined and everything works perfectly.  However, the same code which was migrated to QA works fine when testing at the FM level but not when executing at the report level.  I tried inserting a breakpoint and executing the report, however the breakpoint never populates.  There seems to be a communication issue here.  When executing the report the variable does not call the customer exit FM/program. 
    How do you diagnose this problem?  Is this a BASIS issue?
    I tried testing the query in RSRT and I run into the same issue of nothing happening.  I tried deleting the variable and recreating with only the same results. 
    Is there a config or setting that is related to the customer exit functionality within BW?
    Also, when transporting the customer exit code I did not migrate the FM along with the Include.  Is there a proper way to migrate this?
    Thanks,
    DC

    Thanks for your response.
    I did double check the variable name to be exact.  I think the issue maybe related to the project not being activated.  I will update as I diagnose the problem.
    Thanks

Maybe you are looking for

  • OS X 10.8.3 fails to reboot - gray screen

    After the 10.8.3 update I am unable to boot mac pro. I get stuck on a gray screen after hearing the starting chime sound. Nothing further happens. My boot volume is a software RAID. I tried: -start up manager (option key) -save mode (shift key) -reco

  • What is the function with (line,",")

    I have three integer in a line seperated by two "," 1, 3, 4 the last one 4 without "," when use new StringTokenizer st = new StringTokenizer(line,";"); and s=st.nextToken(); the 1 and 3 can be reached but the 4 can not be reached can anybody give me

  • Has anyone tried the GSP covers for MacBook Pro?

    I am about to buy a 15" MacBook Pro & 3G iPhone and want to protect my babies Has anyone bought the clear skin from the SGP store? Any reviews? They also have a keyboard cover that's half the price of the Moshi one and looks identical to me. The SGP

  • Text rendering slow

    Using FCP X I am manually adding open subtitles, my sequences are short, but typing the text is taking ages to render and the typing speed is less than a character per second! I am using a 2x 2.66 6 core Mac Pro with 20GB RAM.

  • Changing duty cycle for PXI 5422

    Hi I am using the PXI 5422 as a standard function Generator to generate a square wave. However I want to change its duty cycle. I know it is possible to do that because the niFGEN (.exe) has the provision for changing the duty cycle of a square wave.