Re: Inheritence problem i think

jomcfall97 wrote:
hi i need some help with my subclass here - its for a bank account program im getting the error
LoanAccount.java:12: cannot resolve symbol
symbol : constructor BankAccount (int,java.lang.String,java.lang.String,double)
location: class BankAccount
          super (accRefNo, name, address, balance);
^Read the error message. The compiler can't find the BankAccount constructor that takes an int, a String, another String and a double, in that order.
So where is that constructor? I don't see it either!

Apple never bopthered to explain that this would happen
Your iDisk is still accessible after moving to iCloud in exactly the same way as before. Nothing is deleted until June 30th 2012.
, so I could easily have lost ALL of the files I kept on iDisk.
No, you couldn't. Firstly, nothing was deleted from your iDisk. Secondly, any files stored on your iDisk should never be your only copy. Even if your iDisk spontaneously combusted, you should keep local backups elsewhere.
Does Apple WANT people to move their storage elsewhere and stop paying Apple for it?
Yes. Apple doesn't provide such a service anymore, nor are you paying them for it.
Apple has made no effort to suggest remedies for the problem it has given iDisk users
They've provided instructions on how to download your files from your iDisk. What you do with them after that is your choice.

Similar Messages

  • I have a problem with iPhone is that I can replace it at points of sale in the U.S. because I bought from Saudi Arabia because the problem I think in the hard ware software worked more than 3 times did not fix

    dears,
    I have a problem with iPhone is that I can replace it at points of sale in the U.S. because I bought from Saudi Arabia because the problem I think in the hard ware I do resoftware more than 3 times did not fix.
    Network also always missing.
    I am living in KS Wichita. I hope you help me pleas.
    Regards.

    iPhone warranty is not international. You will have to return your
    iPhone to Saudi Arabia for repair/replacement. Either take it back
    yourself or send to friend/relative for them to take to Apple. Apple
    will not accept international shipments for repair nor will Apple
    ship repaired/replaced iPhones out of the country where the repair
    was done.

  • I have a question my iphone4s has a problem when updated iOS8 there will be freeze problem i think iOS8 is not supported in 4s!!!!!!!!!

    i have a question my iphone4s has a problem when updated iOS8 there will be freeze problem i think iOS8 is not supported in 4s!!!!!!!!!.
    one more question when i phone5 update with iOS 8.1.2 this iOS supported iphone5???

    Hi Ios 8.1.2 Should work on iPhone 4s / 5 You may have a bug Backup to  cloud over WiFi Then Restore back to Factory  Settings This will make iPhone as new. Use same Apple ID & you will get your Apps & Data back Do Restore over your WiFi. Cheers Brian

  • I am having the same problem I think.  With mobileme you simply copy documents to the idisk folder and then synch.  I cannot seem to sink that folder anymore.  Any idea as to how I can simply copy folders to icloud and then access the MS Word and PDF file

    I am having the same problem I think.  With mobileme you simply copy documents to the idisk folder and then synch.  I cannot seem to sink that folder anymore.  Any idea as to how I can simply copy folders to icloud and then access the MS Word and PDF files on my iphone?

    Apple never bopthered to explain that this would happen
    Your iDisk is still accessible after moving to iCloud in exactly the same way as before. Nothing is deleted until June 30th 2012.
    , so I could easily have lost ALL of the files I kept on iDisk.
    No, you couldn't. Firstly, nothing was deleted from your iDisk. Secondly, any files stored on your iDisk should never be your only copy. Even if your iDisk spontaneously combusted, you should keep local backups elsewhere.
    Does Apple WANT people to move their storage elsewhere and stop paying Apple for it?
    Yes. Apple doesn't provide such a service anymore, nor are you paying them for it.
    Apple has made no effort to suggest remedies for the problem it has given iDisk users
    They've provided instructions on how to download your files from your iDisk. What you do with them after that is your choice.

  • HT204053 I want to play newly purchased music but cant, i get the message "You can use iTunes Match on this computer with just one Apple ID every 90 days. (mobileme family pack is the problem i think)

    I purchase a new album on my phone but then cannot download it to my laptop -  I get the message:
    "You can use iTunes Match on this computer with just one Apple ID every 90 days. All I can think is that the problem stems from purchasing a mobileme family & some of the music being my daughters. (she is 9 & I need to be ble to listen to more than Katy Perry & Justin Bieber) Please help! :-(

    Welcome to the Apple Community.
    Youll get that message when you change the iTunes account you are logged into, you can't keep changing it.

  • Safari crashes my macbook pro, it "restarts because of a problem," I think it is a kernel panic. How do I manage this?

    I have a late 2011 15", 2.3 GHZ intel core i7 macbook pro with 16GB of ram. I recently partitioned the computer using bootcamp and before doing this had the computer upgraded to Mavericks 10.9.5 . In order to partition my computer we had to restore it to factory settings so there is almost nothing on here.. my safari and google chrome were crashing before all these changes and my computer was sometimes "restarting because of a problem". I think most times that it did this I had safari or chrome up and running or at least open in the background. I also recently had someone test my hard drive and nothing is wrong with that so I believe this is some sort of software problem.
    Now my google chrome works as long as I am not signed into my account, but safari is un-usable. It crashes and then makes my computer "restart because of a problem." the computer seems to be fine besides these web browsing issues.
    I have disabled my extensions for safari but none were listed to disable anyways. I have the lengthy crash report from a recent crash and will post if needed.
    Thank you!

    Thank you for your response!! I will definitely try that out. Here is the error:
    Anonymous UUID: 6FD5C430-62AC-79AC-471A-E49A0ED4F778
    Sat Dec 20 21:41:51 2014
    panic(cpu 0 caller 0xffffff80096c63e7): "pmap_page_protect() " "pmap=0xffffff80358564b8 pn=0x600b2 vaddr=0x1763f1000\n"@/SourceCache/xnu/xnu-2422.115.4/osfmk/i386/pmap_x86_common .c:1336
    Backtrace (CPU 0), Frame : Return Address
    0xffffff81f5853a50 : 0xffffff8009622f79
    0xffffff81f5853ad0 : 0xffffff80096c63e7
    0xffffff81f5853b90 : 0xffffff80096922f3
    0xffffff81f5853bf0 : 0xffffff8009692626
    0xffffff81f5853c60 : 0xffffff800968525e
    0xffffff81f5853d50 : 0xffffff8009687150
    0xffffff81f5853de0 : 0xffffff800963cd5e
    0xffffff81f5853e30 : 0xffffff80099d3447
    0xffffff81f5853e60 : 0xffffff80099d3240
    0xffffff81f5853ea0 : 0xffffff80099d2867
    0xffffff81f5853f00 : 0xffffff80099d3569
    0xffffff81f5853f50 : 0xffffff8009a40c63
    0xffffff81f5853fb0 : 0xffffff80096f4176
    BSD process name corresponding to current thread: coreservicesd
    Mac OS version:
    13F34
    Kernel version:
    Darwin Kernel Version 13.4.0: Sun Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64
    Kernel UUID: 9477416E-7BCA-3679-AF97-E1EAAD3DD5A0
    Kernel slide: 0x0000000009400000
    Kernel text base: 0xffffff8009600000
    System model name: MacBookPro8,2 (Mac-94245A3940C91C80)
    System uptime in nanoseconds: 12693878949245
    last loaded kext at 10026402479079: com.apple.filesystems.smbfs     2.0.3 (addr 0xffffff7f8bf72000, size 335872)
    last unloaded kext at 399101944447: com.apple.filesystems.msdosfs 1.9 (addr 0xffffff7f8bf72000, size 57344)
    loaded kexts:
    com.apple.filesystems.smbfs            2.0.3
    com.apple.driver.AudioAUUC           1.60
    com.apple.filesystems.ntfs    3.11
    com.apple.driver.AppleHWSensor   1.9.5d0
    com.apple.driver.AGPM        100.14.34
    com.apple.filesystems.autofs            3.0
    com.apple.iokit.IOBluetoothSerialManager            4.2.7f3
    com.apple.driver.AppleMikeyHIDDriver     124
    com.apple.driver.AppleMikeyDriver           2.6.3f4
    com.apple.driver.AppleHDA 2.6.3f4
    com.apple.driver.AppleUpstreamUserClient          3.5.13
    com.apple.iokit.IOUserEthernet       1.0.0d1
    com.apple.driver.AppleIntelHD3000Graphics       8.2.4
    com.apple.kext.AMDFramebuffer    1.2.4
    com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport           4.2.7f3
    com.apple.driver.AppleSMCLMU     2.0.4d1
    com.apple.Dont_Steal_Mac_OS_X      7.0.0
    com.apple.driver.AppleHWAccess   1
    com.apple.driver.SMCMotionSensor           3.0.4d1
    com.apple.driver.AppleMuxControl            3.6.22
    com.apple.driver.AppleLPC  1.7.0
    com.apple.driver.ACPI_SMC_PlatformPlugin          1.0.0
    com.apple.driver.AppleIntelSNBGraphicsFB          8.2.4
    com.apple.driver.AppleMCCSControl          1.2.5
    com.apple.driver.AppleSMCPDRC   1.0.0
    com.apple.AMDRadeonX3000         1.2.4
    com.apple.kext.AMD6000Controller           1.2.4
    com.apple.driver.AppleThunderboltIP       1.1.2
    com.apple.driver.AppleUSBTCButtons        240.2
    com.apple.driver.AppleUSBTCKeyboard    240.2
    com.apple.driver.AppleIRController            325.7
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless      1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeLZVN           1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib  1.0.0d1
    com.apple.BootCache            35
    com.apple.iokit.SCSITaskUserClient            3.6.7
    com.apple.driver.XsanFilter 404
    com.apple.driver.AppleUSBHub      683.4.0
    com.apple.iokit.IOAHCIBlockStorage           2.6.0
    com.apple.driver.AppleSDXC           1.5.2
    com.apple.iokit.AppleBCM5701Ethernet   3.8.1b2
    com.apple.driver.AppleFWOHCI      5.0.2
    com.apple.driver.AirPort.Brcm4331           700.20.22
    com.apple.driver.AppleAHCIPort     3.0.5
    com.apple.driver.AppleUSBEHCI     660.4.0
    com.apple.driver.AppleSmartBatteryManager      161.0.0
    com.apple.driver.AppleRTC  2.0
    com.apple.driver.AppleACPIButtons           2.0
    com.apple.driver.AppleHPET           1.8
    com.apple.driver.AppleSMBIOS       2.1
    com.apple.driver.AppleACPIEC        2.0
    com.apple.driver.AppleAPIC            1.7
    com.apple.driver.AppleIntelCPUPowerManagementClient          217.92.1
    com.apple.nke.applicationfirewall   153
    com.apple.security.quarantine        3
    com.apple.driver.AppleIntelCPUPowerManagement        217.92.1
    com.apple.kext.triggers         1.0
    com.apple.iokit.IOSerialFamily         10.0.7
    com.apple.driver.DspFuncLib          2.6.3f4
    com.apple.vecLib.kext           1.0.0
    com.apple.iokit.IOAudioFamily         1.9.7fc2
    com.apple.kext.OSvKernDSPLib      1.14
    com.apple.iokit.IOFireWireIP           2.2.6
    com.apple.iokit.IOSurface     91.1
    com.apple.iokit.IOBluetoothHostControllerUSBTransport            4.2.7f3
    com.apple.iokit.IOBluetoothFamily  4.2.7f3
    com.apple.driver.AppleBacklightExpert     1.0.4
    com.apple.iokit.IONDRVSupport      2.4.1
    com.apple.driver.AppleGraphicsControl     3.6.22
    com.apple.driver.AppleSMC 3.1.8
    com.apple.driver.IOPlatformPluginLegacy 1.0.0
    com.apple.driver.AppleSMBusPCI   1.0.12d1
    com.apple.driver.AppleSMBusController    1.0.12d1
    com.apple.driver.IOPlatformPluginFamily 5.7.1d6
    com.apple.iokit.IOAcceleratorFamily           98.23
    com.apple.kext.AMDSupport            1.2.4
    com.apple.AppleGraphicsDeviceControl     3.6.22
    com.apple.driver.AppleHDAController        2.6.3f4
    com.apple.iokit.IOGraphicsFamily    2.4.1
    com.apple.iokit.IOHDAFamily           2.6.3f4
    com.apple.driver.AppleThunderboltDPInAdapter            3.1.7
    com.apple.driver.AppleThunderboltDPOutAdapter         3.1.7
    com.apple.driver.AppleThunderboltDPAdapterFamily    3.1.7
    com.apple.driver.AppleThunderboltPCIDownAdapter     1.4.5
    com.apple.driver.AppleUSBMultitouch       240.10
    com.apple.iokit.IOUSBHIDDriver     660.4.0
    com.apple.driver.AppleUSBMergeNub       650.4.0
    com.apple.driver.AppleUSBComposite        656.4.1
    com.apple.iokit.IOSCSIMultimediaCommandsDevice        3.6.7
    com.apple.iokit.IOBDStorageFamily 1.7
    com.apple.iokit.IODVDStorageFamily          1.7.1
    com.apple.iokit.IOCDStorageFamily 1.7.1
    com.apple.driver.AppleThunderboltNHI    2.0.1
    com.apple.iokit.IOThunderboltFamily         3.3.1
    com.apple.iokit.IOAHCISerialATAPI 2.6.1
    com.apple.iokit.IOSCSIArchitectureModelFamily   3.6.7
    com.apple.iokit.IOUSBUserClient     660.4.2
    com.apple.iokit.IOEthernetAVBController  1.0.3b4
    com.apple.driver.mDNSOffloadUserClient 1.0.1b5
    com.apple.iokit.IOFireWireFamily    4.5.5
    com.apple.iokit.IO80211Family       640.36
    com.apple.iokit.IONetworkingFamily           3.2
    com.apple.iokit.IOAHCIFamily          2.6.5
    com.apple.iokit.IOUSBFamily            686.4.1
    com.apple.driver.AppleEFINVRAM  2.0
    com.apple.driver.AppleEFIRuntime            2.0
    com.apple.iokit.IOHIDFamily            2.0.0
    com.apple.iokit.IOSMBusFamily       1.1
    com.apple.security.sandbox 278.11.1
    com.apple.kext.AppleMatch 1.0.0d1
    com.apple.security.TMSafetyNet     7
    com.apple.driver.AppleKeyStore     2
    com.apple.driver.DiskImages           371.1
    com.apple.iokit.IOStorageFamily      1.9
    com.apple.iokit.IOReportFamily       23
    com.apple.driver.AppleFDEKeyStore          28.30
    com.apple.driver.AppleACPIPlatform         2.0
    com.apple.iokit.IOPCIFamily 2.9
    com.apple.iokit.IOACPIFamily          1.4
    com.apple.kec.pthread          1
    com.apple.kec.corecrypto     1.0
    Model: MacBookPro8,2, BootROM MBP81.0047.B1E, 4 processors, Intel Core i7, 2.3 GHz, 16 GB, SMC 1.69f1
    Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 512 MB
    Graphics: AMD Radeon HD 6750M, AMD Radeon HD 6750M, PCIe, 1024 MB
    Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1333 MHz, 0x85F7, 0x483634314755363746393333334700000000
    Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1333 MHz, 0x85F7, 0x483634314755363746393333334700000000
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6), Broadcom BCM43xx 1.0 (5.106.98.100.22)
    Bluetooth: Version 4.2.7f3 14616, 3 services, 23 devices, 1 incoming serial ports
    Network Service: Wi-Fi, AirPort, en1
    Serial ATA Device: TOSHIBA MK7559GSXF, 750.16 GB
    Serial ATA Device: MATSHITADVD-R   UJ-898
    USB Device: FaceTime HD Camera (Built-in)
    USB Device: Hub
    USB Device: BRCM2070 Hub
    USB Device: Bluetooth USB Host Controller
    USB Device: Apple Internal Keyboard / Trackpad
    USB Device: Hub
    USB Device: IR Receiver
    Thunderbolt Bus: MacBook Pro, Apple Inc., 22.1

  • MacBook Pro 15" video card problems (i think)

    Can anyone tell me if this is indeed a video card problem?
    MBP 15" info (Dec. 2011)
    Processor 2.4 GHz Intel Core i7
    Memory 4GB 1333 MHz DDR3
    Graphics Intel HD Graphics 3000 384 MB
    OS X Lion 10.7.5
    This is what happened:
    I use my mbp heavily because I edit a lot of videos with Premiere. I also use lightroom / photoshop alot + games. I also installed Parallels desktop late 2013. I don't know if that is relevant but anyway. Everything started late 2013 (a little after installing parallels actually) when there are moments when the audio wouldn't work and I couldn't adjust the volume. It would come back anyway so i didn't mind it. Then the fans were on high speed for little activity. After that the keyboard backlight couldn't be adjusted and wouldnt work. I ignored all of these cuz i wasn't troubling me at the time. In January i left for france to study - I use bike all the time and once stupidly placed my laptop on the basket going to school (rough roads). I had a class with html so I had to open Parallels, my teacher pointed out the fans and how loud they were. That day, parallels desktop said i must upgrade to windows 9 or it will restart every 2hours. I didn't of course. I didn't have time to.
    After that (a few days later i think) my laptop would randomly turn into a black screen but it's still on (the power LED is on) I tried turning it off by pressing down the power button and then turning it back on. It worked the first time. During the first week, the frequency of it happening grew. It would do it almost 3 times a day. during that same week I tried to do an SMC reset. It fixed the keyboard light, fans and audio but not the black screen thing. It just keeps on happening around 1-3 times a day. It only happens when I'm using it btw, never when I just leave it. ALSO, after a few days, it would take longer hours to open my mbp again. I mean, the screen would turn black. i would turn it off, then on again. I will ONLY hear the hard drive moving but no startup sound and no grey screen and apple logo. nothing.
    The following weeks after that, I asked a friend to help me out. He suggested that I install gfxCardStatus because he said it might be my video card. He instructed that I keep it on intergrated only. So I installed that and did what he said I thought it worked for a while because the black screens stopped happening (even when gfx keeps on going back to dynamic) BUT NOW, MY LAPTOP WOULD FREEZE (not turn black). I'd shut it down using the power button but it still takes me hours to open it again. Sometimes, I'd wait for the battery to drain because it would startup when i charge it (sometimes)
    I tried doing AHT as well to confirm the video card problem, but the results are no problems found. I really don't want to replace my logicboard here in france. everything is more expensive here. ;__;
    Today I uninstalled parallels to see if that might have had anything to do with my problem now but i think that's just wishful thinking.
    Can somebody tell me if this is really about the video card? Thank you

    Your appointment at the genius Bar in an Apple Store (anywhere in the world) for an evaluation is FREE, in warranty or out. Those guys put their hands on these Macs all day every day, and they are especially good at Physical and Power problems.
    Ask them.

  • Query structure problem (i think)

    hi am trying to get selected strings out of a jlist
    and concanate them into a query i dont have any
    problems getting the strings out of the list and
    into the query ,i think that my problem lies within
    the structure of my query.i am trying to create a new
    user for a database and set their privleges when i run
    the program and create a new user every things fine as
    long as the only value that i select from the
    privilegs list is "ALL PRIVILEGES" or "CREATE" any ther values
    and i get a connection failure to the MySQL server. could any one tell
    me where i am going wrong or knows the structure of another query
    that can do the same job???
    cheers gerry
    final String privilegetype[] = {"SELECT","INSERT","UPDATE","DELETE","CREATE"
    ,"DROP","ALL PRIVILEGES"};
    String databasename[] = {"garage","music store",};
    //the query where mk=the selected string from privilegetype,
    mkk=the selected string from databasename,
    name=new username,new String(pass)=the new user password
    s.executeUpdate ("GRANT "+mk+" ON "+mkk+" TO "+name+" @"+host+"
    IDENTIFIED BY '"+new String(pass)+"' WITH GRANT OPTION");

    Output the actual query string and see if you can run it outside Java. If you cannot, then it's a database/SQL problem, not a Java problem. If you can, come back and post more details.

  • Add-in Problem: Hyperion & Think-Cell issue

    Hi,
    As anyone experienced issues with Powerpoint and Hyperion Add-in? I have a user that is using Think-Cell (Powerpoint chart add-in). Think-Cell errors out on me every time exept when he removes the Hyperion Add-in from excel and close excel down completely. I do not know if you have heard about this problem, but if you have any guidance or fixes would be greatly appreciated.
    Thx

    Dear Tim,
    a conflict between Oracle Hyperion Smartview for Office and think-cell has occured due to a bug in Smartview (Oracle Bug Number 10327245).
    For details please refer to http://www.think-cell.com/support/kb/0149.shtml. Please contact the Oracle support to receive the fix.
    think-cell users who have any questions or issues with regard to think-cell, are always welcome to contact the think-cell support team directly. Whenever this is possible we will quickly provide a solution for the problem.
    Kind regards
    Your think-cell support team
    ([email protected])

  • A unique problem, i think.

    ok, here's the lowdown. 3 computers are in the office, and i also have 1 laptop. all macs. the 3 in the office are connected to my wireless network through ethernet, because i find the idea of putting a wireless card in a desktop that is 2 feet from the router to be @#$%ing ridiculous. i want them all to have the option to play music from the awesome vintage stereo i have in my living room. so i buy an airport express, cuz that's what it says it's for. computers on a wireless network, all hooked up to music, printing, etc.. i plug it in, set it up with the laptop, works great.
    so why oh why can none of the other computers find the airport express unless i PLUG my, ahem WIRELESS airport express into my router with an ethernet cable. kinda defeats the purpose of the whole wireless idea now, doesnt it? the apple tech i spoke to on the phone failed to be able to comprehend my problem. so i defer to you, oh discussions reader. you're my only hope.

    ...the 3 in the office are connected to my wireless network through ethernet...
    I think that you are trying to say is that you have a wireless router and these 3 are connected to that wireless router via Ethernet. Is that correct?
    If you do have a wireless router, you want to configure your AirPort Express (AX) to join the network provided by that router. Follow the directions in KB 302153, AirPort Express: How to join an existing wireless network in client mode.

  • Another N80 PROBLEM (I think?)

    i was stupid enough to get an N80 on ORANGE... eversince the phones constantly connecting to orange internet without even a warning!
    has anyone else had this problem or do you think its the sim
    is there anything i can do to fix it!

    Seraphin,
    Dont know what your problem is but you seem to constantly be giving insults to people who dont conform to your ideas or suggestions here.
    I have spoken to many people who are not happy about the operator firmware because of problems it gives them because of restrictions and the way that the operator configures the phone so that you have to use their sevices, especially in the begining withought realizing and actualy being charged a large amount of money for these services.
    I made one suggestion that somebody can take or not, its up to them, not you..the suggestion wasnt meant for you.
    I know many people who have upgraded from network specific firmware to non network specific firmware, and some of those upgrades were done at Nokia sevice centers and the warantees on those phones are still intact. This rightly or wrongly has been explained to them by the NSC and if there is a problem with warantee then this is the problem of the NSC that the upgrade was made.
    please keep your personal insults to yourself, or as I have suggested to you before PM me and I will answer you directly, as you keep telling us to the point that its getting boring, these forums are for help and advice, I dont see insults either helpull or good advice.
    Live by your own preachings.Message Edited by cash on 05-Aug-2006
    11:21 AM
    Message Edited by cash on 05-Aug-2006
    11:23 AM

  • JScrollPane resizing problem, I think...

    The Task
    I want to build a dialog that holds different option panels.
    Instead of using a JTabbedPane, I want to use a JTree to select among the different panels.
    I put the tree in a nice scroll pane, place the whole thing in the left side of
    the dialog. I think I have the logic down except for one thing...
    The Problem
    Whenever I click a node when the JTree is expanded, it resizes itself. It does this so that words that go off to the right can be seen.
    I don't want this to happen, but I do have to revalidate the main panel for it to change.
    Apparently, just revalidating the main panel revalidates everything.
    The Question
    Is there a setting in the JTree or the JScrollPane that stops this from happening?
    I have tried to change the LayoutManager, but the same thing happens with GridBagLayout.
    I'll put example code in the following post so you can see my issue. I put the most pertinent code to the front, so that you don't have to read too deeply.
    Can anyone advise me?
    Thanks.

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.tree.*;
    import java.util.*;
    public class ScrollPaneProblem extends JDialog
       implements TreeSelectionListener
       private JButton jbClose;
       private JTree optionsTree;
       private MainPanel jpMain;
       private ActionListener terminator;
       public ScrollPaneProblem()
          // I would prefer that it stay this size.
          setSize( 535, 375 );
          setResizable( false );
          setTitle( "Preferences" );
          setupGui();
          setDefaultCloseOperation( DO_NOTHING_ON_CLOSE );
       protected void setupGui()
          Container contentPane = getContentPane();
             The left side of dialog will hold the option tree.
          optionsTree = buildTheTree();
          JScrollPane scrollPane = new JScrollPane( optionsTree );
          contentPane.add( scrollPane, BorderLayout.WEST );
             The center panel will hold another panel
             that changes according to what has been selected
             in the JTree.
          JPanel centerPanel = new JPanel( new BorderLayout() );
          Box bxButtons = buildTheButtonBox();
          centerPanel.add( bxButtons, BorderLayout.SOUTH );
          jpMain = new MainPanel();
          centerPanel.add( jpMain, BorderLayout.CENTER );
          contentPane.add( centerPanel, BorderLayout.CENTER );
       } // end setupGui()
          Changes the text on the main panel, according to what
          has been clicked in the JTree.
       public void valueChanged( TreeSelectionEvent evt )
          TreePath path = evt.getPath();
          Object obj = path.getLastPathComponent();
          if ( obj instanceof DefaultMutableTreeNode )
             DefaultMutableTreeNode node =
             (DefaultMutableTreeNode)obj;
             obj = node.getUserObject();
             // The problem happens when I do the following...
             jpMain.setText( obj.toString() );
             jpMain.revalidate();
             jpMain.repaint();
          } // end if ( a DefaultMutableTreeNode )
       } // end valueChanged( TreeSelectionEvent )
       private JTree buildTheTree()
          // First, build the parent nodes
          Object [] smurfNodes =
             "Smurfette", "Vanity", "Papa Smurf",
             "Greedy Smurf", "Lazy Smurf",
             "O.J., the ostracized orange smurf"
          ParentNode theSmurfs = new ParentNode(
                                  "The Smurfs", smurfNodes );
          Object [] dwarfNodes =
             "Doc", "Happy", "Dopey", "Sneezy",
             "Scratchy", "Sniffy", "Stuffy Head",
             "Fever", "So you can rest medicine"
          ParentNode theDwarfs = new ParentNode(
                                  "The Seven Plus Dwarfs", dwarfNodes );
          // These are all the nodes that go on the tree.
          Object [] theNodes =
             "Scooby Doo",
             "Inspector Gadget",
             "Mighty Mouse",
             "Captain Caveman",
             theSmurfs,
             theDwarfs
          JTree theTree = new JTree( theNodes );
          theTree.addTreeSelectionListener( this );
          return theTree;
       } // end buildTheTree()
       public Box buildTheButtonBox()
          Box box = Box.createHorizontalBox();
          box.add( Box.createHorizontalGlue() );
          // Make it so that we can close this JDialog.
          jbClose = new JButton( "Exit" );
          jbClose.addActionListener( terminator );
          box.add( jbClose );
          box.add( Box.createHorizontalGlue() );
          // help button that does absolutely nothing.
          JButton jbHelp = new JButton( "Help" );
          box.add( jbHelp );
          box.add( Box.createHorizontalGlue() );
          return box;
       } // end buildTheButtonBox()
       // Main entry point.
       public static void main( String [] args )
          JDialog dialog = new ScrollPaneProblem();
          dialog.setVisible( true );
       // So we can shut the dialog off
       static
          terminator =
          new ActionListener()
             public void actionPerformed( ActionEvent evt )
                System.exit( 0 );
    } // end ScrollPaneProblem class
       This MainPanel class goes in the middle of the dialog.
       My other program switches panels instead of using
       the same panel, but that's too much code to put here.
    class MainPanel extends JPanel
       String theText = "Tell me what to draw";
       Font theFont = new Font( "Sans Serif", Font.PLAIN, 12 );
       Dimension theSize;
       // Draws the selected text
       public void paintComponent( Graphics g )
          super.paintComponent( g );
          theSize = getSize( theSize );
          Font oldFont = g.getFont();
          g.setFont( theFont );
          g.drawString( theText, theSize.width / 10, theSize.height / 2 );
          g.setFont( oldFont );
       public void setText( String text )
          theText = text;
    } // end class MainPanel
       This helps with the JTree parent nodes.
    class ParentNode extends Vector
       String theName;
       public ParentNode( String name )
          this( name, null );
       public ParentNode( String name, Object [] values )
          theName = name;
          if ( values != null )
             addAll( Arrays.asList(values) );
       public String toString()
          return theName;
    } // end ParentNode class

  • Jsp forward problem, I think.....

    I have a default.htm page that takes in a feild, EMP_NUM. Once the user
              hits the Submit button, I run a select statement(select.jsp) to see if that
              number exists. If it does then I forward the contents to correct.jsp, if the
              number doesn't exist then I forward to failed.jsp.
              Today is Tuesday, and last Friday I was working on this and everything
              worked fine, in fact perfect. I came in this morning to do some more
              testing, specifically catching errors in my try and catch, example - to make
              sure they enter in a number, and after I type in a number and hit the submit
              button, it trys to go to the next page, but displays nothing, the page is
              blank. Where has before, when everything was working fine on Friday, my
              correct.jsp page or my failed.jsp page would be displayed.
              From Friday to Tuesday I had not made any changes to my files. The only
              thing different, that I can think of, would be that on Friday I would have
              stoppped weblogic and this morning I started weblogic again. This is why I
              think this is a weblogic issue or syntax on my part. I have tried to restart
              my computer, restart weblogic, and I even deleted the .java files that
              weblogic creates and places in the weblogic/myserver/classfiles/jsp_servlets
              folder.
              Below is my source code.
              Please help!
              Thanks, jl.
              <% try {
              <%@ include file = "db_conn.jsp"%>
              <%
              // A Statement object is what sends your SQL statement to the db
              Statement stmt = conn.createStatement();
              // Retrieve the user id number from the previous form.
              int EMP_NUM = Integer.parseInt(request.getParameter("EMP_NUM"));
              //SQL prepared statement
              String selectEMP_NUM = "SELECT NAME, COMPANY_KEY FROM WTS_PROFILE WHERE
              EMP_NUM=?";
              PreparedStatement psEMP_NUM = conn.prepareStatement(selectEMP_NUM);
              psEMP_NUM.setInt(1, EMP_NUM);
              ResultSet rsEMP_NUM = psEMP_NUM.executeQuery();
              String NAME = "";
              int CompanyKey = 0;
              while (rsEMP_NUM.next()) {
              NAME = rsEMP_NUM.getString("NAME");
              CompanyKey = rsEMP_NUM.getInt("COMPANY_KEY");
              }// end of while
              psEMP_NUM.clearParameters();
              psEMP_NUM.close();
              conn.close();
              String sEMP_NUM = Integer.toString(EMP_NUM);
              String sCompanyKey = Integer.toString(CompanyKey);
              if (NAME.equals("")) {
              request.setAttribute("EMP_NUM", sEMP_NUM);%>
              <jsp:forward page="failed.jsp">
              <% }// end of if
              else {
              request.setAttribute("NAME", NAME);
              request.setAttribute("EMP_NUM", sEMP_NUM);
              request.setAttribute("CompanyKey", sCompanyKey);%>
              <jsp:forward page="creditcard.jsp">
              <% }// end of else
              }// end of try1
              catch(Exception e) {
              <% if(e.toString().equals("java.lang.NumberFormatException: ")) { %>
              <font face="Arial" size="2" color="red"><center><strong>Please enter in a
              EMPLOYEE ID NUMBER.<br><br></strong></font></CENTER>
              <%}// end of if
              %>
              </TD></TR></TABLE></DIV>
              <font color="red">"<%=e.toString()%>"</font>
              <%
              }// end of catch1
              %>
              

              Sounds like you have some debugging to do. If you didn't reinstall WLS and it worked fine before,
              then I doubt it is a WLS problem.
              Is your page really blank? Try show source in your browser? I think you have some mismatched
              <table> </table>. Try it in both IE and Netscape - one of them forgives you for mismatched table
              tags.
              Add some System.out.println() in your code to see what is being executed.
              "james lorenzen" <[email protected]> wrote:
              > I have a default.htm page that takes in a feild, EMP_NUM. Once the user
              >hits the Submit button, I run a select statement(select.jsp) to see if that
              >number exists. If it does then I forward the contents to correct.jsp, if the
              >number doesn't exist then I forward to failed.jsp.
              > Today is Tuesday, and last Friday I was working on this and everything
              >worked fine, in fact perfect. I came in this morning to do some more
              >testing, specifically catching errors in my try and catch, example - to make
              >sure they enter in a number, and after I type in a number and hit the submit
              >button, it trys to go to the next page, but displays nothing, the page is
              >blank. Where has before, when everything was working fine on Friday, my
              >correct.jsp page or my failed.jsp page would be displayed.
              > From Friday to Tuesday I had not made any changes to my files. The only
              >thing different, that I can think of, would be that on Friday I would have
              >stoppped weblogic and this morning I started weblogic again. This is why I
              >think this is a weblogic issue or syntax on my part. I have tried to restart
              >my computer, restart weblogic, and I even deleted the .java files that
              >weblogic creates and places in the weblogic/myserver/classfiles/jsp_servlets
              >folder.
              >
              >Below is my source code.
              >Please help!
              >Thanks, jl.
              >
              ><% try {
              > <%@ include file = "db_conn.jsp"%>
              ><%
              > // A Statement object is what sends your SQL statement to the db
              > Statement stmt = conn.createStatement();
              >
              > // Retrieve the user id number from the previous form.
              > int EMP_NUM = Integer.parseInt(request.getParameter("EMP_NUM"));
              >
              > //SQL prepared statement
              > String selectEMP_NUM = "SELECT NAME, COMPANY_KEY FROM WTS_PROFILE WHERE
              >EMP_NUM=?";
              > PreparedStatement psEMP_NUM = conn.prepareStatement(selectEMP_NUM);
              > psEMP_NUM.setInt(1, EMP_NUM);
              >
              > ResultSet rsEMP_NUM = psEMP_NUM.executeQuery();
              >
              > String NAME = "";
              > int CompanyKey = 0;
              > while (rsEMP_NUM.next()) {
              > NAME = rsEMP_NUM.getString("NAME");
              > CompanyKey = rsEMP_NUM.getInt("COMPANY_KEY");
              > }// end of while
              >
              > psEMP_NUM.clearParameters();
              > psEMP_NUM.close();
              > conn.close();
              >
              > String sEMP_NUM = Integer.toString(EMP_NUM);
              > String sCompanyKey = Integer.toString(CompanyKey);
              > if (NAME.equals("")) {
              > request.setAttribute("EMP_NUM", sEMP_NUM);%>
              > <jsp:forward page="failed.jsp">
              ><% }// end of if
              > else {
              > request.setAttribute("NAME", NAME);
              > request.setAttribute("EMP_NUM", sEMP_NUM);
              > request.setAttribute("CompanyKey", sCompanyKey);%>
              > <jsp:forward page="creditcard.jsp">
              ><% }// end of else
              >}// end of try1
              >catch(Exception e) {
              ><% if(e.toString().equals("java.lang.NumberFormatException: ")) { %>
              > <font face="Arial" size="2" color="red"><center><strong>Please enter in a
              >EMPLOYEE ID NUMBER.<br><br></strong></font></CENTER>
              ><%}// end of if
              >%>
              > </TD></TR></TABLE></DIV>
              > <font color="red">"<%=e.toString()%>"</font>
              ><%
              >}// end of catch1
              >%>
              >
              >
              

  • I have a new ipod classic and i can't get any of my music to download to my ipod this is the second ipod classic they sent me and i have the same problem i think this product is a piece of **** and i want back my $300.00.

    I can't download any music from my cd's or my computer manually this is the second ipod  classic apple sent to me and i have the same problem i am thinking about asking apple for my $319.00 back i am fedup.

    Winston,
    If you provide a little more detail about whats happening when you try add music to your iPod instead of ranting about how much your iPod *****, somebody here may be able to offer you some much need assistance. 
    Totally up to you though.
    B-rock

  • Problem recording from Line-in (Audio Control Pod)... NOT THE TIPICAL OBVIOUS PROBLEM (I think X

    Hi guys!!
    I have a little problem and i have think you could help me...
    I'm trying to connect my electric guitar to my Audigy 2 ZS... My problem is that i connect the AMPLIFIED output of my guitar to Line-In in Audio Control Pod of my T7700 speakers... I Can hear the what i'm playing from my speakers but I can't record anything... I check all the obviuos things, like I have selected Analog Mixer (Line/CD/TAD/...) from Surround Mixer Tab drivers (Rec tab) and in Control Panel of Windows too. What am i doing bad?...
    Thank you for your help!

    May have already been answered, but, hey, what the heck, I've got free time:
    Allow me to clarify. Plug your guitar into the Line-In on your <EM>sound card</EM>. Plugging it into your speakers only uses your speakers as an amp.
    Then, in Creative Recorder select Line-In as the source.
    Speakers, unless they're plugged into the mic jack on your sound card (which they shouldn't be), do not transmit data back to the PC.
    EDIT: Line-in is this thingie (( )) with an arrow pointing inside.Message Edited by ghostrecon09 on 02-22-2005 05:4 AM

Maybe you are looking for

  • Help! Can't get iChat to work.

    I've created two iChat accounts so I could help my nice with any issues with her mac, but we can't connect to eachother. Our statuses are set to available but they don't show as available when we log in. I can't figure out why it's not working. I did

  • My iphone 3gs is stuck in recovery mode

    i was trying to update my phone from 4.3.3 to 4.3.5. now its stuck in recovery mode. what to do. i have tried everything

  • System accessibility settings not saving on Yosemite - any ideas?

    Hi everyone! I've noticed a while ago that in the accessibility settings, the reduce transparency option was enabled. When I disabled it (I prefer to keep the transparency), after a little while, it will always revert back to 'reduce transparency'. T

  • Melrose public beta is now available on Adobe Labs

    http://blogs.adobe.com/flashplatformservices/

  • Autofill Applet Form

    I'm trying to fill out the form fields in an applet running in a browser from an independent external application. I have no control over the Applet as it is part of a separate application. I've tried screen hopping with the Robot API but this depend