Some OO matter

Hi,
I am new to OO as well as new to Java. I got some problem. I need to get the value of File file[]=fcSelectFile.getSelectedFiles() from BtnBrowse action to actually perform file uploading to the internet using BtnUpload. But I have no idea how to actually pass the value over.
if (e.getSource() == BtnBrowse) {
            int returnVal = fcSelectFile.showDialog(this,"Select");
            if (returnVal == JFileChooser.APPROVE_OPTION) {
                File file[]= fcSelectFile.getSelectedFiles();
                //This is where a real application would open the file.
                int count=0;
                //PnlUpload.removeAll();
                JLabel selectedFile[]=new JLabel[file.length]; 
                while(count<file.length)
                    String actualFile=file[count].toString();
                    String fileName= file[count].getName();
                    selectedFile[count]=new JLabel(createImageIcon(actualFile,fileName));
                    PnlImageHolder.add(selectedFile[count]);
                    PnlImageHolder.repaint();
                    PnlImageHolder.validate();
                        count++;
                ScpImageScroller.getViewport().add(PnlImageHolder);
        if(e.getSource()==BtnUpload)
            //I need to get the value of File file[] from BtnBrowse action. How do I do that?
        }

class Example {
    File[] selectedFiles;
    public void actionPerformed(ActionEvent e) {
        if (e.getSource() == BtnBrowse) {
            selectedFiles = ....
        if(e.getSource()==BtnUpload) {
                //use selectedFiles
}Kaj

Similar Messages

  • Ihave adobe FP on my system but when i try to read an email or some other matter my machine tells me

    I have adobe FP on my system but when  try to read an email or some other matter I am told that I need AFP --I then try to redowmload AFP and then there is a problem with an BRCCMCTL--how can you help  respectfully  ed

    Use the Task Manager's Processes tab to end that process.

  • Garbage Mattes...RED Crosshairs???

    I am trying to work on some garbage mattes and I am noticing a RED Crosshair when I am trying to adjust the clip. It's removing a giant chunk of the clip automatically when I simply click say Point 1 for example. I didnt even drag the marker yet and half the clip is gone. Even when I hold down the Apple key its still not allowing me to adjust the clip like I want to. Is some setting on that should be off?

    When you use the garbage matte, each of the corners is represented by a tiny red cross on the canvas. These are probably the crosshairs you are talking about. In the "Filters" window you see Point 1, Point 2 etc.- and then to the right of each is a button with a cross. If you click that button, then the point will show up in the canvas as a red cross and you can move it. If you click in the canvas far from the red cross you've chosen, then you may get freaked out because it will make drastic changes on your matte. Try clicking on the "corners" buttons in the "Filters" window and you'll see the crosses highlighted one at a time. These are your matte edges or corners that you can drag to make whatever shape you need. Once you move them, even a little, you have to re-click the button to get them back. It took me a while to master moving the red crosses around, but once I figured it out - what a great thing the garbage matte is! I wish there was a 32 point garbage matte.
    Also, to see the whole matte, you may need to shrink your window size in the canvas - do this by choosing 50% from the pulldown menu below the small oval button on the top left of your canvas.

  • Pages: How to export a PDF suitable for print-on-demand

    I need to be able to export a PDF from Pages that will meet the specs for the IngramSpark or Lightning Source Print on Demand programs. They require a PDF that has all fonts fully embedded in one of these two PDF versions:
    PDF/X-1a:2001 or PDF/X-3:2002
    Does Pages export - either through the export function or Print function - to either of those specs and does it embed full font sets?
    Thanks.

    The reason neither Pages, or Swift Publisher nor most of the low cost DTP apps do this on OSX is because they use Apple's muddled print output. It almost but not quite outputs to PDF/X-3:2002, and even there there are caveats.
    Indesign and QuarkXpress use their own print engines and Scribus uses GhostScript.
    GhostScript is available for OSX. I have not tried this so you are in wide open territory, but experiment to see if it fixes Pages' output. My suspicions are that GhostScript may not capture Pages' output before it has already been through Apple's muddled output.
    There are other problems with Apple's approach. No specifiable defined colours in Styles. No spot colours, and no proofing. ColorSync itself is powerful but undocumented and difficult to tailor. You can run the end result through Acrobat Pro's Press Check but it only picks up the errors, you are on your own trying to fix them.
    The only easy to use, low price DTP application that meets your requirements is Serif PagesPlus, which runs only on Wimdows. You can run this in BootCamp or some other virtualiser.
    Adobe lets you effectively hire Indesign CC by the month so may be a cost effective solution in the short term. It is a professional solution but has a professionally difficult interface.
    Peter
    Some reading matter on the subject:
    http://www.prepressure.com/pdf/basics/pdfx-1a
    http://support.pixelmator.com/viewtopic.php?f=3&t=10355
    http://en.wikipedia.org/?title=PDF/X
    http://help.adobe.com/en_US/acrobat/X/pro/using/WSb2f1a50375cd48d3-1f36d19412ada 208ceb-8000.html
    http://www.belightsoft.com/products/resources/spsolutions.php
    http://www.pdfxreport.com/doku.php?id=en:tools
    http://www.planetpdf.com/creative/article.asp?contentid=6541
    http://pagesfaq.blogspot.com.au/2006/12/how-does-pages-handle-pdf-x-files.html NB the reference to "buggy", hence my description above of almost does it.

  • IBM WebSphere App.Server 3.5 StdEd + Oracle 8i for repository ?

    I want to install IBM WebSphere Application Server (WAS) 3.5 Std
    but I don't have a DB to hold the repository.
    One of the possible DB mentionned in the install doc is ORACLE
    8i but I have no experience whatsoever with this line of
    products.
    I would like to hear of people running such a config.
    Any tips, do's and don't ?
    Is it a stable, recommended configuration to start with ?
    E.G.:
    WAS 3.5 standard on Win2000
    + ORACLE 8i as a repository DB
    + AS400 serving corporate data
    Thanks for your help,
    Frederic.
    PS - I know DB2 is another possibility but I would like to skip
    that one for some reasons.

    Matt :
    I eventually chose to keep the InstantDB repository because
    someone told me it would be fine for a small web application.
    One thing I am wondering about though : IBM doc mentions Oracle
    8i but on the Oracle site they mention 9i only so
    - where do you find the 8i ?
    - is the 9i fine too ?
    - what edition is acceptable ? the cost for the personal/pro
    etc. licences do vary quite a lot so which is the cheapest
    acceptable one ?
    I am still looking for that info.
    Any hint ?
    Thanks !

  • List of numbered items and can't stop numbers

    Greetings from Hemet, CA
    I have created a document in Pages with some written matter first and then a list of six items numbered from 1 to 6. Now I would like to continue with the written matter, but when I press Enter after item 6 I get a new line with the number 7. How do I stop the numbering?
    John

    By default Pages has Automatically detect lists turned on in Preferences > Auto-Correction. When Pages detects you are creating a numbered list, it assigns the numbered list style. It will continue that style until you select None in the lists section of the styles drawer (or from the format bar).

  • What time is iOS 5 released

    i know that ios 5 is set to release on october 12th but what time is it avaliable that day? like 12 pacific time or what?

    tonefox wrote:
    JenniferRules wrote:I'm thinking doing it in the middle of the night.  
    In the middle of whose night?  It's a spherical planet with 24 hours worth of time zones, you know.  
    And for some, no matter where they are, are constantly in the dark. 
    Just remember:  No matter where you go, there you are.

  • How to create a moving mask?

    Hi,
    I'm new to after effect, hope can get some guidances here.
    I shot this time lapse sequence of Clark Quay, with camera panning technique, have encounter some issues to editing in after effect,
    The panning is not smooth, as I need to adjust the exposure on the camera during the sequence. I presume can use wrap stabilizer to smooth it out, but I also need to blur out some of the building neon signage (Riverside point, Novotel and CQ Clark Quay).
    My question is; since the daylight is changing, so are the brightness of signage changing too, and it moves too, how do I create masks to blur the selected areas, and they moving along across the screen?
    Thank you so much.

    The jerks in your time lapse are not going to be smoothed out by Warp Stabilizer. You will have to do some manual realignment of those frames to smooth the shot. The flicker in the lighting can be controlled by Digital Anarchy's De Flicker plug-in. If you want to selectively correct the color in certain parts of the shot you'll need to do figure out how to create some procedural mattes. Red Giant's Colorista II is very good at this.
    Flicker Free
    Colorista II
    Both have tutorials.
    You might also want to check out this great video from my friend Stu Maschwitz that shows you how to use Mask Tracking and Effect Tracking in AE CC 14.
    Effect Masking - Mask Tracking

  • Digital out constantly on when nothing plugged in.

    Well, I've read the threads, seen the responses and was trying to resurrect an old thread that had an answer that intrigued me. Someone had used electronics cleaner fluid. I would like to know what type.
    Would WD40 be suficient?
    Laptop is out of warranty and I didn't get applecare.

    It would probably depend on what might be in the connector. If just dust, then try vacuuming it out. If some foreign matter, it would depend on what it is. If actual corrosion, then possibly some sort of electronic cleaner. But with modern gold plated contacts, I would not expect corrosion to be a problem.
    However, I would be very cautious about using any liquid on a connector. There is the possibility that any liquid could wick further in and cause damage. It would be safest to use a good light and a magnifier and inspect the connector very carefully. If you find foreign matter, see if it can be removed with splinter tweezers. Have the machine off while you do this. Look for something bridging one or more contacts. Or bent contacts touching--anything that is wrong.
    I would strongly recommend against using any sort of liquid to clean the port. It would be best to inspect it and post back with what you find.
    Good luck!

  • 11gR2 on Linux

    Hi there,
    I am installing 11gR2 core DB on Linux, according to general oracle docs, there are packages we have to install before we proceed with actual DB installation. Newer package exist but it forces for exact the same version. CAN SOMEONE TELL ME WHY PLEASE?
    EX:
    This package exist: libaio-0.3.109 and oracle is asking for libaio-0.3.105 and says it is missing.
    1) Why the newer doesn't pass the prerequisite?
    2) Anyone knows which file ins Linux and/or Oracle is checking these prerequisites?
    Thank you
    P:s: Not all the distros are like this, some pass very nice and easy and some no matter they have newer versions still asking for the old and if yu want to isntall he old ones, the package dependencies make you crazy. can someone be a help please?

    You should tell us OS details.
    Newer package exist but it forces for exact the same version. CAN SOMEONE TELL ME WHY PLEASE? It means Oracle platform has been validated for those versions. If you want to try installing with new versions of package, you can try but Oracle does not gurantee that it will work also will not provide support in case any errors.
    2) Anyone knows which file ins Linux and/or Oracle is checking these prerequisites?
    It depends on the OS, if it is using rpm manager, then it has its own rpm catalog where each installed package named and other details are defined.
    If you think a little bit further, oracle installer maintain a list of rpms and their required version details which it compares with the insalled version. It complains in case of mis-match.
    HTH

  • Copy and Paste Keyboard Shortcut not working

    My copy and paste (Command C) function is not working. Tried to resent in keyboard menu, but it didn't do anything. VERY FRUSTRATING as I use this function all day long in my job. Can somebody help please?

    The 'input menu' would put a small flag on the main menu bar and allow
    you to click there, and see Keyboard Viewer, and Character Palette. A
    small keyboard will appear on the desktop and mirror all keys you use
    on the real keyboard. Or not. When they don't work in the Viewer, you
    can safely assume they don't work. (Or it is software, vs hardware.)
    Someday, when you have time and perhaps some extra hardware, you
    may consider making a backup clone of your computer contents on a
    large enough external hard disk drive to support bootable OS X clones;
    and also large enough to have more than one partition there, for extras.
    Then, do a completely new installation on a 'secure erased' hard disk drive.
    And then update it. You could migrate previous user setting info, into the
    new installation from an external drive's clone; or if you have extra discover
    time, you may find a cure to the underlying problem's cause and use the
    clone in the external hard disk drive as a backup. Maybe DiskWarrior?
    The problem in the system may be due to at least one possible malady; a
    corruption of system data, a bad block on the hard disk drive, or some other
    matter that somehow became bigger than life when combined with another.
    You may try the SafeBoot mode, repair disk permisions in Disk Utility, and
    then try reinstalling the Mac OS X 10.5.8 Combo update file, on top of it all.
    Then when it restarts, run SafeBoot again and re-repair disk permissions.
    (But any actual hard disk drive issue may exist and remain unattended.)
    Odd problems often are best attacked at a root level, after you have adequate
    backup; a bootable clone on supported self-powered external hard disk drive.
    Clone utilities such as SuperDuper and Carbon Copy Cloner are fine tools;
    and CCC (bombich software) has evolved to be top-notch with site support.
    Glad you were able to remap some keys; I found several links in a search on
    how to do that, and had previously posted some URLs to help someone else
    on another user forum that covered some angles of resolving keyboard issues.
    Good luck & happy computing!

  • Best Practices for Organizational Change Management

    Hooray!  Finally an opportunity to take this forum back to its proper direction of Organizational Change Management topics as we begin to engage with some subject matter experts in OCM.
    Those interested in having OCM conversations here are also welcome to begin interaction with this <a href="https://https://www.benchmarking.sap.com/cgi-bin/qwebcorporate.dll?idx=945JDN&SHSP1Q2A=asugEMAIL061907">OCM best practices survey</a>.  It would give community a chance to engage with ASUGers around the topic of organizational change and give ASUGers a chance to broaden the Americas centric perspective.  So welcome all.
    Looks like
    <a href="/people/kerry.brown/blog/2007/07/10/organizational-change-management-best-practices-survey Brown</a> will be helping put this topic back on course.  Looking at her blog profile, I, for one, am most eager for her engagement with us here.

    Hai,
    Organizational Structure
    Use
    In order for the workflow system to establish the relationship between the requester and their superior, you must create an organizational plan in the system.
    For this tutorial, of course, this organizational plan does not have to be complete and valid across the enterprise. To keep the test as simple as possible initially, define an organizational plan that only contains one administrator and one head of department.
    Assign both items to yourself. As a result, all work items will appear in your own Business Workplace. Later you will modify the organizational plan such that you will have to work through the scenario with two users.
    Procedure
    The organizational plan required for this tutorial consists, when complete, of one organizational unit (= "department"), which contains two positions: a head of department and an administrator.
    Each position is described by one job and each position is assigned one user as holder. The head of department position is also designated as chief position of the organizational unit.
    Of course, a "real" organizational plan is created by arranging several organizational units with their positions in a hierarchy. Usually several positions are described by one job.
    For further information, refer to the documentation  Organizational Plan.
    The procedure in this unit is divided into four parts:
    1.     You create an organizational unit.
    2.     Enter necessary jobs as required.
    3.     You create a position for the head of department in the new organizational unit.
    You define a position in three steps:
    i.     You create a position that is assigned your organizational unit.
    ii.     You assign a holder to the position.
    iii.     You assign a job to the position.
    3.     You create a position for the administrator in the organizational unit.
    Creating an organizational unit
    1.     Choose Tools &#61614; SAP Business Workflow &#61614; Development &#61614;&#61472;Definition tools &#61614; Organizational Management &#61614; Organizational plan &#61614; Create.
    2.     Confirm the validity period proposed in the dialog box Creating a Root Organizational Unit.
    This takes you to the Create Organization and Staffing (Workflow) screen. This user interface is divided into four screen areas:
    3.     On the Basic Data tab in the details area, enter an abbreviation and a name in the Organizational unit input fields.
    Abbreviation: <ini_sales>
    Name: <OrgUnit: Sales (ini)>
    4.     Choose  .
    You can now create the position for a head of department and one administrator.
    Create jobs
    When enhancing an organizational unit, the necessary jobs are usually already available. For this tutorial however, you create the necessary jobs for head of department and administrator yourself.
    1.     Choose Edit &#61614; Create jobs.
    You go to the dialog box Create jobs. The lower area contains a list of existing jobs and the upper area contains an input table in which you can create new jobs by entering abbreviations and names.
    2.     In the input table, enter an abbreviation and a name for each of the new jobs.
    Job - head of department:
    Object abbreviation: < ini_dhead_C >
    Name: < job: head of department (ini) >
    Job administrator:
    Object abbreviation: < ini_admi_C >
    Name: < job: administrator (ini) >
    3.     Choose  .
    Creating Position for Head of Department
    1.     Change to the overview area in the staff assignments of the organizational unit, in order to assign positions, jobs and holders. Choose the arrow  on the right next to the  and then the staff assignments (list).
    2.     Choose  .
    A new position is then created in the staff assignments and is displayed in a new line in the table. The position is vacant and no job is assigned to it.
    3.     Open the details view for the new position in the details area by double-clicking on the entry in the table.
    4.     On the Basic Data tab, enter a code and a description in the Position input fields. Overwrite the previous contents.
    Abbreviation: < ini_dhead_S >
    Description: < position: head of department ( ini ) >
    Assigning a holder to the position
    You now assign R/3 users to the positions. The staff assignments for your organizational unit are displayed and you see the vacant position in the table.
    5.     Select User in the search area and enter the search criteria in order to find your user names.
    All of the user names that match your search criterion are listed in the selection screen.
    6.     Select your user name in the selection area and drag it to the Person/User column of the position in the overview area.
    Confirm the message that the relationship period of the validity has been changed.
    7.     Set the Head of own organizational unit indicator in the details area.
    Assigning a job to the position
    Assign the job of the head of department you created earlier to the position.
    8.     Select Job in the search area and enter the search criteria in order to find the job of the head of department.
    All jobs that match your search criterion are listed in the selection screen.
    9.     Select job: head of department ( ini) in the selection area and drag it to the Job column of the position in the overview area.
    10.     Choose  .
    The job is assigned the position. Check this by switching to the staff assignments of the organizational unit. Select the organizational unit in the overview area, choose the arrow  on the right next to the  and then the staff assignments (list). The newly created job is displayed in the job column.
    Create position for administrator and assign holder and job
    You are now in the staff assignments of the organizational unit.
    1.     Choose  .
    A new position is then created in the staff assignments and is displayed in a new line in the table. The position is vacant and no job is assigned to it.
    2.     On the Basic Data tab in the details area, enter an abbreviation and a name in the Position input fields. Overwrite the previous contents.
    ID: <ini admiS >
    Description: < position: administrator ( ini ) >
    3.     Choose  .
    4.     Select User in the search area and enter the search criteria in order to find your user names.
    5.     Select your user name in the selection area and drag it to the Person/User column of the position in the overview area.
    Confirm the message that the relationship period of the validity has been changed.
    6.     Select Job in the search area and enter the search criteria in order to find the job of the administrator.
    7.     Select job: administrator ( ini) in the selection area and drag it to the Job column of the position in the overview area.
    8.     Choose  .
    Result
    Display your entire staffing schedule again and make sure that all the information listed is correct.
    You can display a detailed view of jobs, users, and positions. Choose the relevant cell in the table by double-clicking it.
    In the details view of a position or job, all of the assigned tasks are displayed on the Tasks tab.
    You have now completed the first unit (defining the organizational plan). You can now start on the next unit. To exit processing of the organizational structure, choose Back.

  • Windows 7 now official - Join the Windows 7 Launch discussion today

    All,
    This Win 7 RTM board will be winding down as Windows 7 is now an official product and we need to separate the beta discussion from discussion about the released product, Lenovo Enhanced Experience implementation on systems shipping 10/22/09 onward, and other topics.
    Please join the discussion on the Win 7 Launch discussion board, view some of the videos that Matt Kohut uploaded last night which address many of the common questions.    For a limited time, we have asked some of our engineers, some featured in the videos, who have been close to the Windows 7 program and Lenovo Enhanced Experience to join the discussion and help answer some of your questions for the next two weeks.
    Thanks,
    Mark
    ThinkPads: S30, T43, X60t, X1, W700ds, IdeaPad Y710, IdeaCentre: A300, IdeaPad K1
    Mark Hopkins
    Program Manager, Lenovo Social Media (Services)
    twitter @lenovoforums
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

    Yus9,
    Fair points - I think straight up questions and answers will come out.  There is the Lenovo and Windows 7 page that should have links and most of the information that you might need.
    Rather than have 1 very long video, we tried to break up some of Matt and John's discussion into relevant chapters.  Not everyone is a fan of video, but I thought it added another way for people to connect with us.
    Thanks !
    Mark
    ThinkPads: S30, T43, X60t, X1, W700ds, IdeaPad Y710, IdeaCentre: A300, IdeaPad K1
    Mark Hopkins
    Program Manager, Lenovo Social Media (Services)
    twitter @lenovoforums
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • Audio out of sync in Quicktime on export from Premiere

    Currently using Premiere Pro CS3 3.2 and Quicktime 7.5.5
    When I export to a quicktime .mov, my audio is a few frames out of sync. I've tried downgrading to older versions of quicktime with no success. Everything is completely in sync inside Premiere. If I import my rendered out-of-sync .mov back into Premiere, it magically syncs up fine again. It's the weirdest thing.
    I don't suffer this issue when exporting to Real Media or .wma.
    My machine is an Intel Core 2 Duo 6700 2.66, 2 GB Ram. Running XP Pro 2002 Service Pack 3. Premiere Pro CS3 3.2, Quicktime 7.5.5.
    I'm using .mxf files shot on the HVX-200. My source video is 1280 x 720. I'm exporting using the h.264 codec. I'm fairly certain that it isn't the footage. I tried syncing up some color mattes to music in a new short test project and I'm still 4 frames off.
    I thought the problem might be the use of mp3's but I replaced them with .wav and .aiff files and still the same problem. When I export to quicktime, the audio is 4 frames ahead of the video. In order to make it sync up, I have to move the audio four frames to the right. This is a terrible solution

    Thanks for responding. We did record at 24pn.
    However as a test, I started a new project, loaded a piece of music (.wav), and created some plain color mattes in Premiere. Then I synced up the colors to change to the beat of the music. An export results in the same problem, so best that I can tell the issue is independent of the camera.

  • One side broken on my iTouch 4gen charger port?

    Okay so a few days ago I was getting ready to charge my iPod
    It's a 64Gb iPod Touch 4th gen. I plugged it in at 25% and heard the charger-in notification sound go off like usual but when I looked at the screen it was blank. A few minutes later I cam back and it was burning hot to the touch.
    I immediately unplugged it and thought- oh no. Finally skimping on third-party chargers has caught up with me and fried the device I have actually invested about a grand in. I also considered that apple's devices are known to self-destruct as built-in obsolescence is good for profits. But just a few minutes ago I noticed after cleaning out some particulate matter, that I believed caused the overheating, that one of the L-Prongs that receives conductivity from the prongs that receive the charge had severed at the bend. When I turned my iPod up it fell out and I can't find it. But what I'm getting at here is if anyone knows a way I can still charge my device without investing in an expensive repair or searching the ground for the tiny piece of prong? It seems with just one L-prong all attempting a charge accomplishes is concentrating extreme heat into the port. I'm not gonna risk melting the circuitry but I want to keep this thing running
    Can someone please help?
    *side note for the Apple admins: I did not jailbreak my device because unlike some I believe in supporting the work of developers and musicians as I am actually both; ie warranty is not an issue.

    As you found out, it is very hard to repair/replace.
    Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price
    There are third-party places that will replace the connection. Google for: repair ipod touch dock connector. That sear may also give some hits to repair it yourself.

Maybe you are looking for

  • Purchase order version management

    Dear All.              I have configured the purchase order version management. but at the time of change ppurchase order i have changed the text field for that also new version is triggered. i want to control this if only qty and price and payment t

  • Apple's own ipad Photos app has hard crashed (kernel panic?) the iPad twice

    Not so bad that it has to be reloaded from a backup, but bad enough that it takes forever to boot from the reset. All I did was flick through the photos super fast, and crash.. I have 433 photos BTW.. Others should try it..

  • Link 2 support messages

    Dear all, is it possible to link a support message to another one, so that there's a flow between them (just like the flow between change request and change document)? Any help would be much appreciated. Regards Daniel

  • Q: DataWebBean interface implementation in DataWebBeanImpl

    JDev Team, Most DataWebBeanImpl classes (ie, RowSetBrowser for example) do not implement the render(PrintWriter) method of the WebBean interface. Why is this so? It seems that the DataWebBeanImpl relies upon the WebBeanImpl's implementation which is

  • Can't reate an eprintcenter account. NOT SOLVED.

    A few days ago I reported a problem with creating an account at eprintcenter.com. In the following days I have seen in the forum, that many people in different countries (Sweden, Germany, Denmark)have the same problem. I have also noticed that some b