Ask help about  variable range

1.if I define a variable at the start of the class: private JList flightsList;
2.then write a method :public void doQuery( )
String startAirport = (String)from.getSelectedItem();
String endAirport = (String)to.getSelectedItem();
String timeDate = date.getText();
if( manager.getFlights(startAirport, endAirport,timeDate) != null )
     Flight [] flightQuery = manager.getFlights(startAirport, endAirport,timeDate);
     int length = flightQuery.length;
     String [] number = new String[length];
     System.arraycopy(flightQuery,0,number,0,length);
     //flightsList = new JList( number );
3.then make a constructor,I want in the constructor invoke the method doQuery( ) ,then use
code: flightsList = new JList( number );
     contents.add( new JScrollPane( flightsList) , BorderLayout.CENTER );
I want to put arryaay number in the flightsList,then create a JScrollPane show the arraay number.
But it does not work.I know it is the variable range,how to pass the number into the flightsList?
I have thought about it for a long time.
Please help me,thanks!

I mean:
example:
public class look extends JFrame {
//if I define a variable at the start of the class:
private JList flightsList;
//2.then write a method :public void doQuery( )
String startAirport = (String)from.getSelectedItem();
String endAirport = (String)to.getSelectedItem();
String timeDate = date.getText();
if( manager.getFlights(startAirport, endAirport,timeDate) != null )
Flight [] flightQuery = manager.getFlights(startAirport, endAirport,timeDate);
int length = flightQuery.length;
String [] number = new String[length];
System.arraycopy(flightQuery,0,number,0,length);
//flightsList = new JList( number );
3.then make a constructor,I want in the constructor invoke the method doQuery( ) ,
public gui
//use code
flightsList = new JList( number );
contents.add( new JScrollPane( flightsList) , BorderLayout.CENTER );
in sort I want to put array number in the jlist( flightsList),then create a JScrollPane show the arraay number(number).
//Your constructor assigns the private variable the value of what it is passed, then you can use it in other functions in the class.
Is that what you are asking?
no,I mean assingns a private variable,then write a method ,then invoke the method to put array number in the private variable.

Similar Messages

  • Ask help about detail explaination on "subtotal" field in pricing procedure

    Hi, everybody:
       I wanna get detail explanation about "subtotal" field in pricing procedure configuration. I have caught basic thoery on this field usage. However, I'm unclear on its option items, for exapmle, Dcopy value to XWORKD, Ecopy value to XWORKF and so on. I can't find where these kinds of objects are stored and in which suituation we have to select one of them in configuration.
      Another question is how the standard programe uses KOMP to store condition results and transfer them to relative modules, for example, A--carry over price to KOMP-CMPRE.
       Hoping get answer or some documents from you on this issue. If you have reference documents sent to me, please send to my e-mail box: [email protected]
      Tks!
    Justin

    dear justin
    Sub-total:     
    The value of this field determines where the value of the sub-total is gong to be stored in data base
    Sub-total – 1     : KOMP – KZWI-1
    Sub-total - 2     : KOMP – KZWI-2
    rewards if it helps
    siva

  • Ask help About Create Direct Database Request

    Hi, all.
    When I using the Create Direct Database Request, how can I specify a variable which can used to receive multiple input value?
    My SQL like this:
    select... from table t1 where t1.c1 in('@{v_c1}{001})
    where, v_c1 is the variabe name, 001 is the defaut value of the variable.
    But, it doesn' work.
    If it's the systax error, then how can I correct it?
    Thank you in advance.

    Hi katherine,
    Your connection pool should look like this "DEV_BI"."Connection Pool"
    Second thing is go to Administration/Manage privileages/Direct database privileage is there.
    If you want to use variables into your SQL query follow this link
    http://bintelligencegroup.wordpress.com/2010/08/26/how-to-use-the-presentation-variable-in-direct-database-request/
    Hope it helps you.
    By,
    KK

  • Ask help about compile c++ file with occi!

    Hello, every one! I am new to use occi to write programmer
    under the solaries 5.8. I have a trouble to complie a c++ file.I use the below command to complie,and the machine print error
    root@sun1 # g++ -I/export/home/oracle/product/rdbms/demo -I/export/home/oracle/product/rdbms/public -locci occicoll.cpp
    ld: fatal: file /export/home/oracle/product/lib/libocci.so: wrong ELF class: ELFCLASS64
    ld: fatal: File processing errors. No output written to a.out
    collect2: ld returned 1 exit status.
    It's true I installed the oracle 9.2, further more I find two libocci.so in the machine.
    /export/home/oracle/product/lib/libocci.so.9.0
    /export/home/oracle/product/lib32/libocci.so.9.0
    I don't know how to deal with this problem, so I hope someone is so kind to give me some clues, It's very important for me, Thanks a lot!

    It's finisd, every one! I link to a wrong dir. but I change to the correct dir, another error comes up, like this
    root@sun2 # g++ -I/export/home/oracle/product/rdbms/demo -I/export/home/oracle/product/rdbms/public -locci occicoll.cpp
    Undefined first referenced
    symbol in file
    __1cH__rwstdRexcept_msg_string2t6MIE_v_ /export/home/oracle/product/lib32/libocci.so
    OCIPDefineConvert /export/home/oracle/product/lib32/libocci.so
    lxhlod /export/home/oracle/product/lib32/libocci.so
    lnxcmp /export/home/oracle/product/lib32/libocci.so
    OCIStmtSetPieceInfo /export/home/oracle/product/lib32/libocci.so
    OCINumberFromInt /export/home/oracle/product/lib32/libocci.so
    OCIPAcquireMutex /export/home/oracle/product/lib32/libocci.so
    OCILobGetLength /export/home/oracle/product/lib32/libocci.so
    __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___I__getRep6MII_pnH__rwstdM__string_ref4Ccn0B_n0C____ /export/home/oracle/product/lib32/libocci.so
    lnxnur /export/home/oracle/product/lib32/libocci.so
    LdiInterInterSubtract /export/home/oracle/product/lib32/libocci.so
    LdiInterConstruct /export/home/oracle/product/lib32/libocci.so
    lnxln /export/home/oracle/product/lib32/libocci.so
    OCITransRollback /export/home/oracle/product/lib32/libocci.so
    lnxcopy /export/home/oracle/product/lib32/libocci.so
    lnxdec /export/home/oracle/product/lib32/libocci.so
    OCIEnvCreate /export/home/oracle/product/lib32/libocci.so
    OCIHandleAlloc /export/home/oracle/product/lib32/libocci.so
    OCIPGetInternalRowid /export/home/oracle/product/lib32/libocci.so
    ldxldd /export/home/oracle/product/lib32/libocci.so
    OCIContextSetValue /export/home/oracle/product/lib32/libocci.so
    lnxdiv /export/home/oracle/product/lib32/libocci.so
    OCIPGetEnv /export/home/oracle/product/lib32/libocci.so
    OCIPConvertRowidToUb1 /export/home/oracle/product/lib32/libocci.so
    __1cG__CrunKpure_error6F_v_ /export/home/oracle/product/lib32/libocci.so
    LdiDateCopy /export/home/oracle/product/lib32/libocci.so
    OCIPGetNLSNChar /export/home/oracle/product/lib32/libocci.so
    sldxgd /export/home/oracle/product/lib32/libocci.so
    OCIErrorGet /export/home/oracle/product/lib32/libocci.so
    OCIObjectSetData /export/home/oracle/product/lib32/libocci.so
    lnxpfl /export/home/oracle/product/lib32/libocci.so
    ldxadm /export/home/oracle/product/lib32/libocci.so
    OCIServerAttach /export/home/oracle/product/lib32/libocci.so
    ldxads /export/home/oracle/product/lib32/libocci.so
    __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2t6Mpkcrkn0C__v_ /export/home/oracle/product/lib32/libocci.so
    OCIObjectMarkDeleteByRef /export/home/oracle/product/lib32/libocci.so
    LdiInterFromString /export/home/oracle/product/lib32/libocci.so
    OCIContextGetValue /export/home/oracle/product/lib32/libocci.so
    typeinfo for oracle::occi::SQLException/var/tmp//ccV4Mpxl.o
    lnxpow /export/home/oracle/product/lib32/libocci.so
    OCIRefIsEqual /export/home/oracle/product/lib32/libocci.so
    LdiDateCompare /export/home/oracle/product/lib32/libocci.so
    OCIDateTimeFromText /export/home/oracle/product/lib32/libocci.so
    __1cG__CrunIex_throw6Fpvpkn0AQstatic_type_info_pF1_v_v_ /export/home/oracle/product/lib32/libocci.so
    LdiParseForInputType /export/home/oracle/product/lib32/libocci.so
    ldxatz /export/home/oracle/product/lib32/libocci.so
    oracle::occi::getVector(oracle::occi::ResultSet*, unsigned, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)/var/tmp//ccV4Mpxl.o
    OCILobIsEqual /export/home/oracle/product/lib32/libocci.so
    lnxfcn /export/home/oracle/product/lib32/libocci.so
    lxhcnv /export/home/oracle/product/lib32/libocci.so
    lnxqtra /export/home/oracle/product/lib32/libocci.so
    ¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£

  • HT5621 I got iphone 4s secondhand and i made restore then its asking me for apple Id which i don't  have it even the first owner i ask him about it but he don't have? please i need your HELP

    I got iphone 4s secondhand and i made restore then its asking me for apple Id which i don't  have it even the first owner i ask him about it but he don't have? please i need your HELP

    No one here can help you, nor can/will Apple. If you don't know the Apple ID/Password that was originally used to activate this phone, you won't be able to re-activate it. And, if the previous owner tells you that he/she doesn't know it, you're out of luck. You simply won't be able to use the phone for anything other than a paperweight.
    Called Activation Lock.

  • Icalentor and  ilife keep asking me about keychain password.when i login.if any one konws how to stop it ?thank you .please  help .i am a new mac user

    icalentor and ilife keep asking me about the keychain password ,wich i don't event know about (login password dosn't work), if any one knows about this ,and how to avoid from that ? thank you ! please help ,.i am a new mac user .

    See if this helps...
    Open Keychain Access in Utilities, use Keychain First Aid under the Keychain Menu item, then either check the Password under that item, change it, or delete it and start over.
    Keychain Access asks for keychain "login" after changing login password...
    http://support.apple.com/kb/HT1631
    Resetting your keychain in Mac OS X...
    If Keychain First Aid finds an issue that it cannot repair, or if you do not know your keychain password, you may need to reset your keychain.
    http://support.apple.com/kb/TS1544

  • TS1559 hello guys i wanted to ask u about my ipad wifi is not turning on and i have tried to reset the network but still is not working please i need ur help

    hello guys i wanted to ask u about my ipad wifi is not turning on and i have tried to reset the network but still is not working please i need ur help

    Thank you. I will try your tip. And if it works, I'll give you 10 points . But now its been charging for hours and its still the same . But thank you!

  • Last time i used FFsync it didnt ask me about any key! there was a phrse only which it didnt work now so i generate a new code as ur guide shows me and now i lost all my data! i need them alot, i adopted on your servies :( i need my data so badly plz help

    Last time i used FFsync it didnt ask me about any key! there was a phrse only which it didnt work now so i generate a new code as ur guide shows me and now i lost all my data! i need them alot, i adopted on your servies :( i need my data so badly plz help

    Lord K.  Thank you. Yes I am within the 90 time period, however I travel Intertionally and I can not receive not make a call to Apple. I was just at the Genius Bar in Chicago and they said, don't worry about it.  It just floats out there, however, I can not recover my messages on a flash drive. I need to go back to my old computer which I don't have with me.  My messages were in folders for a lawsuit.  It is going to take an incredible amount of work for me to, you have no Idea.  We are talking thousands of pages!  I the defendent will have them during discovery so I am not so worried.  However, I can not bring them to him on a Flashdrive when I meet with him without an extraordinary amount of presssure on my part.  THis is not just some little email issue. This is suing EXPEDIA and Tripadviosr.com

  • Variable Range For 0FISCPER

    Dear Experts,
    I am Using Entry Variable as ZFISCPER For FISCALPERIOD
    IF User Enters 003.2008
    The Output of the Report will be:         003.2008 ||| UPTO 003.2008
    UPTO 003.2008 means 001.2008 to 003.2008
    How Can we Get This By using variable Range.
    What Can I Give in FROM :
    where as TO is To : ZFISCPER
    Can Any one suggest me what to DO.
    Regards
    Supraja.K

    Hi,
    You can achieve this by creating a user exit variable and populating the YTD value based on the entry. Restrict the key figures with this variable. Use the sample code below.
       CLEAR ls_range.
      LOOP AT lt_var_range INTO ls_var_range WHERE vnam = 'ZFISCPER'.
       CONCATENATE ls_var_range-low+0(4) '001'  INTO ls_range-low.
       ls_range-high = ls_var_range-low.
       ls_range-sign = 'I'.
       ls_range-opt  = 'BT'.
       APPEND ls_range TO et_range.
      ENDLOOP.
    This code will populate values from 001.2009 to 008.2009 if you enter value for fiscal period year as 008.2009.
    Hope this helps.
    Regards,
    Akhn

  • AGAIN: What happened to "Ask me about every cookie?"

    I have to ask this question AGAIN, because I'm not getting an answer, and it's disturbing because it relates to grave security issues. (and I forgot to record the URL of the first post, even though I did save the page itself), and when I search for my username on the forum, I'm informed that there are no results in English, AND, since you provide no image upload for this question, I'll have to do it in a reply (which will not BE a reply).
    First post, which nobody is answering:
    One "solution" says to open "tasks" menu. The IS no "tasks" menu. There is no "preferences" menu, either, only "options." Under "options," there are only two possible sub-menus that are supposed to be of help here, "privacy" and "security," but neither now offers what USED to be available: "Ask me about every cookie." This is really frustrating and angering me because these pervasive, invasive, and destructive cookies cause irreparable harm (short of system reformat) to my operating system by allowing transparent access to my system by unauthorized domains. What happened to "Ask me about every cookie?" How am I supposed to limit and control cookies now? Currently, I have only one option: Review daily the HUNDREDS of cookies and manually delete the unwelcome newcomers, and back up the cookie list to the benefit of newly added WANTED cookies. If I let this go a few days, I have to delete the entire cookie cache and restore the list from backup. Why am I no longer afforded the protection of cookie setting approval? How is this removal of control improving my security in light of no provision of an added interface towards this end? I abandoned Internet Explorer for a VERY good reason (THIS one!), and now it looks like Firefox has become equally useless in this regard, and that I have absolutely no motivation whatsoever to use Firefox anymore. I might as well just go back to Internet Explorer, especially seeing as how I can no longer find Firefox Live Chat through your help options so I can "talk" to a live human.
    [Edit]
    What? Has nobody else noticed that their cookie cache is now filling up with garbage and threats? How do I get Firefox to ask me to vet every cookie again? Why have "they" decided to make Firefox an insecure browser? The way it's configured now, I have to examine every single NOW-UNAUTHORIZED cookie on a daily basis, and this makes the job MUCH, much harder, because a lot of required/friendly cookies have abstrusely arcane names, and when I mistakenly delete them, I screw up my browsing/login experience.

    hello gremlinkurst, please stay within your original topic at https://support.mozilla.org/en-US/questions/984152 (also see [[Forum rules and guidelines]]). you already got a detailed answer there by another contributor. if you still have questions, please follow up there!

  • Marydee-You asked me about resizing apps for jpeg images & how 2 get info

    Marydee- You asked me about resizing apps for jpeg images. And you also asked how to get photo info for each image in iphoto
    Here's what I found in the iPhoto6 Help Menu:
    Showing a photo's image and camera information
    iPhoto stores EXIF information with each photo in your library. This information includes the photo's image size, the date and time it was taken, and the type of camera it was taken on, as well as important exposure information, such as the shutter speed, aperture, and film ISO.
    To show image and camera information:
    Select the photo and choose Photos > Get Info.
    You can also see a photo's title, date taken, rating, format, and comments by clicking the Information button in the bottom-left corner of the iPhoto window.
    Also please take a look at these prior discussions in iPhoto Forum/s:
    http://discussions.apple.com/thread.jspa?messageID=3212997&#3212997
    http://discussions.apple.com/thread.jspa?messageID=4535542&#4535542
    http://kstudio.net/re.html
    Hope the above helps and good luck on this.
    (3) G4 PM's/(3) S-Drives/Sony TRV900/Nikons/6FWHD's/PS7/iLife06/FCPHD/DVDSP/etc.   Mac OS X (10.4.8)  

    Marydee- You asked me about resizing apps for jpeg images. And you also asked how to get photo info for each image in iphoto
    Here's what I found in the iPhoto6 Help Menu:
    Showing a photo's image and camera information
    iPhoto stores EXIF information with each photo in your library. This information includes the photo's image size, the date and time it was taken, and the type of camera it was taken on, as well as important exposure information, such as the shutter speed, aperture, and film ISO.
    To show image and camera information:
    Select the photo and choose Photos > Get Info.
    You can also see a photo's title, date taken, rating, format, and comments by clicking the Information button in the bottom-left corner of the iPhoto window.
    Also please take a look at these prior discussions in iPhoto Forum/s:
    http://discussions.apple.com/thread.jspa?messageID=3212997&#3212997
    http://discussions.apple.com/thread.jspa?messageID=4535542&#4535542
    http://kstudio.net/re.html
    Hope the above helps and good luck on this.
    (3) G4 PM's/(3) S-Drives/Sony TRV900/Nikons/6FWHD's/PS7/iLife06/FCPHD/DVDSP/etc.   Mac OS X (10.4.8)  

  • Need help about RRD4J, get data from rrdb

    i need more help about roundrobin database, especially using RRD4J library.
    i want to know, if i have one file database data1.rrd and i specific want to get data from startTime to endTime.
    how i can get that data from that database, and move them to another database file data2.rrd.
    can i do this?

    thx jschell
    javadoc from rrd4j not clearly enough for me to understanding about prosesing add, update and get data in there, so i ask in this forum may be anyone can give me solution.
    i think it's simple problem but i don't know how to implement with this API.
    with rrd4j we can create roundrobin database (rrd), the output in example: data1.rrd
    i just want to get data that i had put in data1.rrd to move them to another rrd, example: data2.rrd.
    data1.rrd and data2.rrd, they have same lastupdate time.

  • Hi, I did an apple account but they didn't asked me about payment methods and now when i need something from Appstore it is written: "this apple id has not yet been used in the iTunes Store" tap reviem. I tapped review and they are asking me to introduce,

    Hi I have created an apple Id but yhey didn't asked me about paymeny methods, and know when i need something from appstore it is written: This apple Id not yet been used in the iTunes Store, tap review....but when i tap review they ask me for a credit card without giving me the opption of ''NONE''. Can you help me?

    What kinda forum is this where nobody helps!
    I am waiting since so many days after leaving a thread and till nobody helped me with a reply.
    If it's a Google PlayStore forum many hundreds of people would have replied.
    Seeking a little help and nobody bothered to give it out to you, I am really annoyed.
    Still waiting for Help!

  • "Help About" dialog still shows 8.0 after applying 8.0.1 patch

    Hello all,
    I was wondering if anyone who has successfully applied the patch sees version 8.0.1 in the Help > About dialog box. I updated via the Help > Update option and I did see the update downloaded. I was then asked to close Elements 8 so the patch could be applied which I did. However, how does one know if the patch was successfully applied? Most softwate show the latest version when you click Help > About. I still see ver 8.0.

    gtacyclist wrote:
    I have a couple of them including display.dll and "Adobe Premier Elements.exe" with date modified on 2/26/2010 instead of 2/28/2010 (date created is still 9/29/2009). I assume this was the date when I intalled the patch.
    Can anyone provide confirmation beyond assumptions? My files likewise have a created date of 9/29/2009, with a date modified matching the 8.0.1 patch installation date (in this case 3/13/2010). In the other forum post referenced above, Steve Grisetti unfortunately did not distinguish between date created and date modified, and I have no idea where he came up with the 2/28/2010 date.

  • Hi, I´m new at the community. My book about the life of a bull who died in a bull fight was a best seller in Perú, and is been studied in many schools there. But I don't live there any more. People ask me about the book and is not any more at the lib

    Hi, I´m new at the community. My book about the life of a bull who died in a bull fight was a best seller in Perú, and is been studied in many schools there. But I don't live there any more. People ask me about the book and is not any more at the libraries. I would like to make a tradition to english, portugues, and may be another language that could be interesting to do.
    I am a psychologist with an specialization in couple and family therapy. I am writing more and more material and the people who reads me are asking me more.
    My mother thong is Spanish, my second Portuguese , and my third is english. I apologize if I make some mistakes trying to express myself.
    The situation is that I need to upload my book to iBook and I don't know how to do it. If I can pass that step I will like to upload more material I am sure people will enjoy and learn as they did with my first one.
    I really appreciate any help.
    Oliveste

    oliveste wrote:
    I need to upload my book to iBook and I don't know how to do it.
    Read the FAQ and come back if you have questions after you have signed up
    http://www.apple.com/itunes/working-itunes/sell-content/books/book-faq.html

Maybe you are looking for

  • How do I upload Adobe Reader 9, Adobe Acrobat XI Pro, and other tools with the Pro onto my new computer?

         Since I am already a customer of Adobe, I need to know how to upload Adobe Reader 9, Adobe Acrobat XI Pro, and the other tools that go with both programs onto my new Windows 7 HP computer without having to fill out a new customer form or without

  • Agent inventories Macs HW only or none seemingly at random

    The Inventory Only Agent (10.3) has NEVER worked in our heterogenous environment. After investigating the installation, OS, logs, etc., here is what I have found so far: 1. The installation goes smoothly and indicates that in the /var/log/zenumia-ins

  • Ipad2 30 pin to lighting connector

    My wife has an ipad2 - looking for a docking/charging station for it. Have found the iWant model but this uses a lightning connector --- does anyone know if there is an adapter to suit - ie male 30 pin/female lightning

  • Scroll panel easing?

    I have seen a few examples of creating a scroll panel in Illustrator/Photoshop and then making it functional in Catalyst but I am just curious, is there a way to add easing to the scroll in Catalyst? You know so it speeds up and/or slows down as you

  • I need an example for stacking waveforms in onboard memory using MS Visual c for PCI-6115

    I would like an example of stacking multiple acquisitions in onboard memory for the PCI-6115 card. This is sometimes referred to as "Multiple Record". It is called "Sequence Waveforms" on Lecroy Scopes. I have done this on other cards before, but not