Request for feedback:  implementing Swing-based drawers

Good day.
I've inherited some code to which I need to add a 'dresser drawer' like functionality. Click on a logical 'open' button and the drawer opens, revealing, or displaying as the case may be, a JPanel with more stuff in it. Click on a logical 'close' button and the drawer closes, leaving its container in the visual state in which it started. A familiar example of this effect might be something like the Mac Dock in 'auto hide' mode, where the Dock moves in and out of sight and addressability with some pointer action. The Dock is always 'there', but sometimes just not visible. So it would be with the drawer.
I am wondering if a solution would be based loosely on theDrawer.setVisible(), or whether something that sets the drawer's component width or height to 0 for-hide would be more likely.
Can anyone offer guidance on how to approach this using standard Swing techniques?
Thanks.

You are on the right track with the setVisible method. It will hide and visibly behave like the component was never added to the layout of the component it is contained in.
For example, say I have 2 panels and two buttons. Panel A is the main container of Panel B and the two buttons. Button A is the 'Open' button, and Button B is the 'Close' button. Panel B was added to Panel A but immediately set to be not visible. Pressing the 'Open' button will toggle the Panel B setVisible method to true and show the panel and it's contents. Obviously the 'Close' button is the opposite.
By doing this it is very easy to have a collapse and expand functionality with your components.

Similar Messages

  • Matthew :: Request for Feedback Gallery :-)

    I was wondering if I could make a special request to Matthew.
    I wonder if you would be willing, and also if there would be enough demand, to create one of your lovely galleries for the purpose of clients offering feedback? Photoshop's Feedback Galleries could use a face lift.
    Maybe we could get an idea how many here might benefit from this. And if so, maybe those of us who benefit could donate to Matt's Paypal for his time.
    This is all contingent on if Matt wants to take on this task of course. :-)
    Linda

    This would be nice

  • Request for feedback on crash report (OS 10.4.11, Firefox 2.0.0.16)

    I'd appreciate any feedback on the following crash report. Although actual crashes have been infrequent, I have recently been experiencing a lot of repeated 'non-response' to mouseclicks on webpages, and am wondering whether this is a Firefox-related problem (2.0.0.16 update) or something else.
    Thanks.
    Date/Time: 2008-07-20 21:41:28.843 -0400
    OS Version: 10.4.11 (Build 8S2167)
    Report Version: 4
    Command: firefox-bin
    Path: /Applications/Firefox.app/Contents/MacOS/firefox-bin
    Parent: WindowServer [58]
    Version: 2.0.0.16 (2.0.0.16)
    PID: 388
    Thread: 14
    Exception: EXCBADACCESS (0x0001)
    Codes: KERNINVALIDADDRESS (0x0001) at 0x3df2645c
    Thread 0:
    0 libSystem.B.dylib 0x90009cd7 machmsgtrap + 7
    1 com.apple.CoreFoundation 0x9082d227 CFRunLoopRunSpecific + 2014
    2 com.apple.CoreFoundation 0x9082ca42 CFRunLoopRunInMode + 61
    3 com.apple.HIToolbox 0x92ded878 RunCurrentEventLoopInMode + 285
    4 com.apple.HIToolbox 0x92decf82 ReceiveNextEventCommon + 385
    5 com.apple.HIToolbox 0x92e35a74 _AcquireNextEvent + 58
    6 com.apple.HIToolbox 0x92e358bc RunApplicationEventLoop + 150
    7 org.mozilla.firefox 0x00237f3f nsAppShell::~nsAppShell [in-charge deleting]() + 133
    8 org.mozilla.firefox 0x002c3cde nsAppStartup::DestroyExitEvent(PLEvent*) + 148
    9 org.mozilla.firefox 0x0000656e XRE_main + 5892
    10 org.mozilla.firefox 0x00003178 main + 32
    11 org.mozilla.firefox 0x000030fe start + 270
    12 org.mozilla.firefox 0x00003019 start + 41
    Thread 1:
    0 libSystem.B.dylib 0x9001a1cc select + 12
    1 libnspr4.dylib 0x00ed99bc PR_Poll + 134
    2 org.mozilla.firefox 0x0033fc3b nsSocketTransportService::Poll(unsigned*) + 99
    3 org.mozilla.firefox 0x00340219 nsSocketTransportService::ServiceEventQ() + 623
    4 libxpcom_core.dylib 0x00e46fe3 nsThread::Main(void*) + 41
    5 libnspr4.dylib 0x00edaffd PR_Select + 813
    6 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 2:
    0 libSystem.B.dylib 0x90047dd7 semaphoretimedwait_signaltrap + 7
    1 libnspr4.dylib 0x00ed6694 PR_Lock + 246
    2 libnspr4.dylib 0x00ed69eb PR_WaitCondVar + 75
    3 libxpcom_core.dylib 0x00e492fc TimerThread::Shutdown() + 284
    4 libxpcom_core.dylib 0x00e46fe3 nsThread::Main(void*) + 41
    5 libnspr4.dylib 0x00edaffd PR_Select + 813
    6 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 3:
    0 libSystem.B.dylib 0x900248c7 semaphorewait_signaltrap + 7
    1 libnspr4.dylib 0x00ed6a75 PR_WaitCondVar + 213
    2 libnspr4.dylib 0x00ed6cd5 PR_Wait + 53
    3 libxpcom_core.dylib 0x00e4466e PL_WaitForEvent + 62
    4 libxpcom_core.dylib 0x00e45939 nsEventQueueImpl::CheckForDeactivation() + 149
    5 libgoogletoolbar.dylib 0x1612e029 NSGetModule + 16049
    6 libnspr4.dylib 0x00edaffd PR_Select + 813
    7 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 4:
    0 libSystem.B.dylib 0x900248c7 semaphorewait_signaltrap + 7
    1 libnspr4.dylib 0x00ed6a75 PR_WaitCondVar + 213
    2 org.mozilla.firefox 0x003533f0 nsSSLThread::Run() + 162
    3 libnspr4.dylib 0x00edaffd PR_Select + 813
    4 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 5:
    0 libSystem.B.dylib 0x900248c7 semaphorewait_signaltrap + 7
    1 libnspr4.dylib 0x00ed6a75 PR_WaitCondVar + 213
    2 org.mozilla.firefox 0x00350025 nsCertVerificationThread::Run() + 239
    3 libnspr4.dylib 0x00edaffd PR_Select + 813
    4 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 6:
    0 libSystem.B.dylib 0x900248c7 semaphorewait_signaltrap + 7
    1 libnspr4.dylib 0x00ed6a75 PR_WaitCondVar + 213
    2 org.mozilla.firefox 0x0052a8b8 mozStorageService::FinishAsyncIO() + 284
    3 org.mozilla.firefox 0x0086d476 nsPluginNativeWindow::~nsPluginNativeWindow [in-charge deleting]() + 424
    4 libxpcom_core.dylib 0x00e46fe3 nsThread::Main(void*) + 41
    5 libnspr4.dylib 0x00edaffd PR_Select + 813
    6 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 7:
    0 libSystem.B.dylib 0x900248c7 semaphorewait_signaltrap + 7
    1 libnspr4.dylib 0x00ed6a75 PR_WaitCondVar + 213
    2 libnspr4.dylib 0x00ed6cd5 PR_Wait + 53
    3 libxpcom_core.dylib 0x00e4466e PL_WaitForEvent + 62
    4 libxpcom_core.dylib 0x00e45939 nsEventQueueImpl::CheckForDeactivation() + 149
    5 org.mozilla.firefox 0x002e99ed nsUrlClassifierDBServiceWorker::~nsUrlClassifierDBServiceWorker [in-charge]() + 345
    6 libnspr4.dylib 0x00edaffd PR_Select + 813
    7 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 8:
    0 libSystem.B.dylib 0x90009cd7 machmsgtrap + 7
    1 ...romedia.Flash Player.plugin 0x1a484959 memcopy_mmx + 709497
    2 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 9:
    0 libSystem.B.dylib 0x900248c7 semaphorewait_signaltrap + 7
    1 ...romedia.Flash Player.plugin 0x1a34b928 0x19fb9000 + 3746088
    2 ...romedia.Flash Player.plugin 0x1a383230 Flash_EnforceLocalSecurity + 125000
    3 ...romedia.Flash Player.plugin 0x1a34bbd2 0x19fb9000 + 3746770
    4 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 10:
    0 libSystem.B.dylib 0x900248c7 semaphorewait_signaltrap + 7
    1 ...romedia.Flash Player.plugin 0x1a34b928 0x19fb9000 + 3746088
    2 ...romedia.Flash Player.plugin 0x1a383230 Flash_EnforceLocalSecurity + 125000
    3 ...romedia.Flash Player.plugin 0x1a34bbd2 0x19fb9000 + 3746770
    4 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 11:
    0 libSystem.B.dylib 0x90047dd7 semaphoretimedwait_signaltrap + 7
    1 libnspr4.dylib 0x00ed6694 PR_Lock + 246
    2 libnspr4.dylib 0x00ed69eb PR_WaitCondVar + 75
    3 org.mozilla.firefox 0x00304af9 nsIOThreadPool::ThreadFunc(void*) + 145
    4 libnspr4.dylib 0x00edaffd PR_Select + 813
    5 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 12:
    0 libSystem.B.dylib 0x90047dd7 semaphoretimedwait_signaltrap + 7
    1 libnspr4.dylib 0x00ed6694 PR_Lock + 246
    2 libnspr4.dylib 0x00ed69eb PR_WaitCondVar + 75
    3 org.mozilla.firefox 0x005a38a6 nsHostResolver::GetHostToLookup(nsHostRecord**) + 212
    4 org.mozilla.firefox 0x005a4053 nsHostResolver::ThreadFunc(void*) + 123
    5 libnspr4.dylib 0x00edaffd PR_Select + 813
    6 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 13:
    0 libSystem.B.dylib 0x90009cd7 machmsgtrap + 7
    1 com.apple.CoreFoundation 0x9082d227 CFRunLoopRunSpecific + 2014
    2 com.apple.CoreFoundation 0x9082ca42 CFRunLoopRunInMode + 61
    3 com.apple.CFNetwork 0x91019ed4 httpRequestRead + 532
    4 com.apple.CoreFoundation 0x9087b762 CFReadStreamRead + 285
    5 ...romedia.Flash Player.plugin 0x1a34c31d 0x19fb9000 + 3748637
    6 ...romedia.Flash Player.plugin 0x1a341ddd 0x19fb9000 + 3706333
    7 ...romedia.Flash Player.plugin 0x1a093bd9 0x19fb9000 + 895961
    8 ...romedia.Flash Player.plugin 0x1a0955ff 0x19fb9000 + 902655
    9 ...romedia.Flash Player.plugin 0x1a095d7a 0x19fb9000 + 904570
    10 ...romedia.Flash Player.plugin 0x1a096255 0x19fb9000 + 905813
    11 ...romedia.Flash Player.plugin 0x1a34bbd2 0x19fb9000 + 3746770
    12 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 14 Crashed:
    0 com.apple.CoreFoundation 0x90841d63 __CFSocketManager + 1090
    1 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 14 crashed with X86 Thread State (32-bit):
    eax: 0x07ffffff ebx: 0x90841932 ecx: 0x0000001f edx: 0xffffffff
    edi: 0x00000020 esi: 0x1df26460 ebp: 0xb054ff38 esp: 0xb0547b40
    ss: 0x0000001f efl: 0x00010202 eip: 0x90841d63 cs: 0x00000017
    ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
    Binary Images Description:
    0x1000 - 0x994fff org.mozilla.firefox 2.0.0.16 /Applications/Firefox.app/Contents/MacOS/firefox-bin
    0xc23000 - 0xcb5fff libmozjs.dylib /Applications/Firefox.app/Contents/MacOS/libmozjs.dylib
    0xcd0000 - 0xcd0fff libxpcom.dylib /Applications/Firefox.app/Contents/MacOS/libxpcom.dylib
    0xcd4000 - 0xcd9fff libplds4.dylib /Applications/Firefox.app/Contents/MacOS/libplds4.dylib
    0xcde000 - 0xce4fff libplc4.dylib /Applications/Firefox.app/Contents/MacOS/libplc4.dylib
    0xe05000 - 0xe75fff libxpcom_core.dylib /Applications/Firefox.app/Contents/MacOS/libxpcom_core.dylib
    0xec0000 - 0xee5fff libnspr4.dylib /Applications/Firefox.app/Contents/MacOS/libnspr4.dylib
    0xef6000 - 0xf0ffff libsmime3.dylib /Applications/Firefox.app/Contents/MacOS/libsmime3.dylib
    0xf1b000 - 0xf3cfff libssl3.dylib /Applications/Firefox.app/Contents/MacOS/libssl3.dylib
    0xf46000 - 0xf9bfff libnss3.dylib /Applications/Firefox.app/Contents/MacOS/libnss3.dylib
    0xfb7000 - 0xfc6fff libxpcom_compat.dylib /Applications/Firefox.app/Contents/MacOS/libxpcom_compat.dylib
    0x1808000 - 0x184efff libsoftokn3.dylib /Applications/Firefox.app/Contents/MacOS/libsoftokn3.dylib
    0x18b4000 - 0x18bcfff libmyspell.dylib /Applications/Firefox.app/Contents/MacOS/components/libmyspell.dylib
    0x1b01000 - 0x1b1dfff libmetrics.dylib /Users/RLK/Library/Application Support/Firefox/Profiles/az75p9be.default/extensions/{3112ca9c-de6d-4884-a869-9 855de68056c}/components/libmetrics.dylib
    0x1da5000 - 0x1da6fff com.apple.textencoding.unicode 2.1 /System/Library/TextEncodings/Unicode Encodings.bundle/Contents/MacOS/Unicode Encodings
    0x1fd0000 - 0x1fdafff libspellchecker.dylib /Applications/Firefox.app/Contents/MacOS/components/libspellchecker.dylib
    0x15cb1000 - 0x15ce3fff libnssckbi.dylib /Applications/Firefox.app/Contents/MacOS/libnssckbi.dylib
    0x16129000 - 0x16184fff libgoogletoolbar.dylib /Users/RLK/Library/Application Support/Firefox/Profiles/az75p9be.default/extensions/{3112ca9c-de6d-4884-a869-9 855de68056c}/components/libgoogletoolbar.dylib
    0x163bc000 - 0x16419fff libfreebl3.dylib /Applications/Firefox.app/Contents/MacOS/libfreebl3.dylib
    0x19fb9000 - 0x1a5b9fff com.macromedia.Flash Player.plugin 9.0.124 (1.0.4f60) /Library/Internet Plug-Ins/Flash Player.plugin/Contents/MacOS/Flash Player
    0x8fe00000 - 0x8fe4afff dyld 46.16 /usr/lib/dyld
    0x90000000 - 0x90171fff libSystem.B.dylib /usr/lib/libSystem.B.dylib
    0x901c1000 - 0x901c3fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
    0x901c5000 - 0x90202fff com.apple.CoreText 1.1.3 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreText.framework/Versions/A/CoreText
    0x90229000 - 0x902fffff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
    0x9031f000 - 0x90774fff com.apple.CoreGraphics 1.258.78 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
    0x9080b000 - 0x908d3fff com.apple.CoreFoundation 6.4.11 (368.35) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x90911000 - 0x90911fff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x90913000 - 0x90a07fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
    0x90a57000 - 0x90ad6fff libobjc.A.dylib /usr/lib/libobjc.A.dylib
    0x90aff000 - 0x90b63fff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
    0x90bd2000 - 0x90bd9fff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
    0x90bde000 - 0x90c51fff com.apple.framework.IOKit 1.4.8 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x90c66000 - 0x90c78fff libauto.dylib /usr/lib/libauto.dylib
    0x90c7e000 - 0x90f24fff com.apple.CoreServices.CarbonCore 682.29 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
    0x90f67000 - 0x90fcffff com.apple.CoreServices.OSServices 4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    0x91008000 - 0x91047fff com.apple.CFNetwork 129.22 (129.23) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
    0x9105a000 - 0x9106afff com.apple.WebServices 1.1.3 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServ icesCore.framework/Versions/A/WebServicesCore
    0x91075000 - 0x910f4fff com.apple.SearchKit 1.0.7 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
    0x9112e000 - 0x9114cfff com.apple.Metadata 10.4.4 (121.36) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
    0x91158000 - 0x91166fff libz.1.dylib /usr/lib/libz.1.dylib
    0x91169000 - 0x91308fff com.apple.security 4.5.2 (29774) /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x91406000 - 0x9140efff com.apple.DiskArbitration 2.1.2 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x91415000 - 0x9141cfff libbsm.dylib /usr/lib/libbsm.dylib
    0x91420000 - 0x91446fff com.apple.SystemConfiguration 1.8.6 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
    0x91458000 - 0x914cefff com.apple.audio.CoreAudio 3.0.5 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x9151f000 - 0x9151ffff com.apple.ApplicationServices 10.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
    0x91521000 - 0x9154cfff com.apple.AE 314 (313) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ AE.framework/Versions/A/AE
    0x9155f000 - 0x91633fff com.apple.ColorSync 4.4.10 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
    0x9166e000 - 0x916ebfff com.apple.print.framework.PrintCore 4.6 (177.13) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
    0x91718000 - 0x917c1fff com.apple.QD 3.10.25 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
    0x917e7000 - 0x91832fff com.apple.HIServices 1.5.2 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
    0x91851000 - 0x91867fff com.apple.LangAnalysis 1.6.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
    0x91873000 - 0x9188dfff com.apple.FindByContent 1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ FindByContent.framework/Versions/A/FindByContent
    0x91897000 - 0x918d4fff com.apple.LaunchServices 183 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LaunchServices.framework/Versions/A/LaunchServices
    0x918e8000 - 0x918f4fff com.apple.speech.synthesis.framework 3.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x918fb000 - 0x9193bfff com.apple.ImageIO.framework 1.5.7 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO
    0x9194e000 - 0x91a00fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
    0x91a46000 - 0x91a5cfff libcups.2.dylib /usr/lib/libcups.2.dylib
    0x91a61000 - 0x91a7ffff libJPEG.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x91a84000 - 0x91ae3fff libJP2.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJP2.dylib
    0x91af5000 - 0x91af9fff libGIF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x91afb000 - 0x91b83fff libRaw.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRaw.dylib
    0x91b87000 - 0x91bc4fff libTIFF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x91bca000 - 0x91be5fff libPng.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x91bea000 - 0x91becfff libRadiance.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x91bee000 - 0x91cccfff libxml2.2.dylib /usr/lib/libxml2.2.dylib
    0x91ce9000 - 0x91ce9fff com.apple.Accelerate 1.3.1 (Accelerate 1.3.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x91ceb000 - 0x91d79fff com.apple.vImage 2.5 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
    0x91d80000 - 0x91d80fff com.apple.Accelerate.vecLib 3.3.1 (vecLib 3.3.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
    0x91d82000 - 0x91ddbfff libvMisc.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
    0x91de4000 - 0x91e08fff libvDSP.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
    0x91e10000 - 0x92219fff libBLAS.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
    0x92253000 - 0x92607fff libLAPACK.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
    0x92634000 - 0x92721fff libiconv.2.dylib /usr/lib/libiconv.2.dylib
    0x92723000 - 0x927a1fff com.apple.DesktopServices 1.3.7 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
    0x927e2000 - 0x92a12fff com.apple.Foundation 6.4.10 (567.37) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x92b2c000 - 0x92b43fff libGL.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x92b4e000 - 0x92ba6fff libGLU.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x92bba000 - 0x92bbafff com.apple.Carbon 10.4 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x92bbc000 - 0x92bccfff com.apple.ImageCapture 3.0.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
    0x92bda000 - 0x92be2fff com.apple.speech.recognition.framework 3.6 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
    0x92be8000 - 0x92bedfff com.apple.securityhi 2.0.1 (24742) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
    0x92bf3000 - 0x92c84fff com.apple.ink.framework 101.2.1 (71) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
    0x92c98000 - 0x92c9bfff com.apple.help 1.0.3 (32.1) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
    0x92c9e000 - 0x92cbbfff com.apple.openscripting 1.2.5 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
    0x92ccb000 - 0x92cd1fff com.apple.print.framework.Print 5.2 (192.4) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
    0x92cd7000 - 0x92d3afff com.apple.htmlrendering 66.1 (1.1.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering .framework/Versions/A/HTMLRendering
    0x92d5e000 - 0x92d9ffff com.apple.NavigationServices 3.4.4 (3.4.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationSer vices.framework/Versions/A/NavigationServices
    0x92dc6000 - 0x92dd3fff com.apple.audio.SoundManager 3.9.1 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.f ramework/Versions/A/CarbonSound
    0x92dda000 - 0x92ddffff com.apple.CommonPanels 1.2.3 (73) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
    0x92de4000 - 0x930d9fff com.apple.HIToolbox 1.4.10 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
    0x931df000 - 0x931eafff com.apple.opengl 1.4.16 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x9325a000 - 0x9325afff com.apple.Cocoa 6.4 (???) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x9325c000 - 0x93912fff com.apple.AppKit 6.4.10 (824.48) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x93c93000 - 0x93d0efff com.apple.CoreData 91 (92.1) /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x93d47000 - 0x93e00fff com.apple.audio.toolbox.AudioToolbox 1.4.7 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x93e43000 - 0x93e43fff com.apple.audio.units.AudioUnit 1.4.2 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x93e45000 - 0x94006fff com.apple.QuartzCore 1.4.12 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x9404c000 - 0x9408dfff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib
    0x94095000 - 0x940cffff libGLImage.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dyl ib
    0x940d4000 - 0x940eafff com.apple.CoreVideo 1.4.2 /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
    0x9427b000 - 0x9428afff libCGATS.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
    0x94291000 - 0x9429cfff libCSync.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
    0x942e8000 - 0x94302fff libRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
    0x94308000 - 0x94620fff com.apple.QuickTime 7.5.0 (861) /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
    0x95f9c000 - 0x95f9dfff libCyrillicConverter.dylib /System/Library/CoreServices/Encodings/libCyrillicConverter.dylib
    0x95f9f000 - 0x95fa0fff libGreekConverter.dylib /System/Library/CoreServices/Encodings/libGreekConverter.dylib
    0x95fa4000 - 0x95fbafff libJapaneseConverter.dylib /System/Library/CoreServices/Encodings/libJapaneseConverter.dylib
    0x95fbc000 - 0x95fddfff libKoreanConverter.dylib /System/Library/CoreServices/Encodings/libKoreanConverter.dylib
    0x95fea000 - 0x95ff8fff libSimplifiedChineseConverter.dylib /System/Library/CoreServices/Encodings/libSimplifiedChineseConverter.dylib
    0x95ffd000 - 0x95ffefff libThaiConverter.dylib /System/Library/CoreServices/Encodings/libThaiConverter.dylib
    0x96000000 - 0x96012fff libTraditionalChineseConverter.dylib /System/Library/CoreServices/Encodings/libTraditionalChineseConverter.dylib
    0x97027000 - 0x9702cfff com.apple.agl 2.5.9 (AGL-2.5.9) /System/Library/Frameworks/AGL.framework/Versions/A/AGL
    0x973b3000 - 0x973c7fff com.apple.audio.CoreAudioKit 1.0.1 /System/Library/Frameworks/CoreAudioKit.framework/Versions/A/CoreAudioKit
    Model: MacBook1,1, BootROM MB11.0061.B03, 2 processors, Intel Core Duo, 1.83 GHz, 2 GB
    Graphics: Intel GMA 950, GMA 950, Built-In, spdisplaysintegratedvram
    Memory Module: BANK 0/DIMM0, 1 GB, DDR2 SDRAM, 667 MHz
    Memory Module: BANK 1/DIMM1, 1 GB, DDR2 SDRAM, 667 MHz
    AirPort: spairportwireless_card_type_airportextreme (0x168C, 0x86), 1.3.5
    Bluetooth: Version 1.9.5f4, 2 service, 0 devices, 1 incoming serial ports
    Network Service: Built-in Ethernet, Ethernet, en0
    Serial ATA Device: ST96812AS, 55.89 GB
    Parallel ATA Device: MATSHITACD-RW CW-8221
    USB Device: Hub, Up to 480 Mb/sec, 500 mA
    USB Device: PS/2+USB Mouse, Up to 1.5 Mb/sec, 500 mA
    USB Device: Built-in iSight, Micron, Up to 480 Mb/sec, 500 mA
    USB Device: Apple Internal Keyboard / Trackpad, Apple Computer, Up to 12 Mb/sec, 500 mA
    USB Device: IR Receiver, Apple Computer, Inc., Up to 12 Mb/sec, 500 mA
    USB Device: Bluetooth USB Host Controller, Apple, Inc., Up to 12 Mb/sec, 500 mA
    -------------------------------------------------------------------------------

    Tough to say unless it happens again, some sites are just defectively coded themselves.
    If you're worried about it, it may pay to run through this as insurance...
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc that came with your computer, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
    5. Select your Mac OS X volume.
    6. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot.
    The usual reason why updates fail or mess things up, is if Permissions are not fixed before & after every update, with a reboot... you may get a partial update when the installer finds it doesn't have Permissions to change one obscure little part of the OS, leaving you with a mix of OS versions.
    Some people get away without Repairing Permissions for years, some for only days.
    If Permissions are wrong before applying an update, you could get mixed OS versions, if Directory is the slightest messed up, who knows!
    If many Permission are repaired, or any Directory errors are found, you may need to re-apply some the latest/biggest updates again, or even do an A&I if you have enough free disk space.
    An Archive & Install, which gives you a new OS, but can preserve all your files, pics, music, settings, etc...
    http://docs.info.apple.com/article.html?artnum=107120

  • Sun Forum request for feedback

    For those of you who may not frequent the News and Updates forum of this site the Sun forum team would like to have feedback from as many people as possible on the proposed changes for a forum redesign.
    Recent improvements like fixes to long time forum bugs, the news and update forum itself and the dialogue within and the new moderator program are all steps that the current Sun forum team has taken to improve the experience of users on this site and help to grow the community here.
    So please take a moment to review and comment on the proposed changes in order to make known your interest in the forum teams activities and your interest in seeing the continued growth of this community.
    [http://wikis.sun.com/display/SunForums/Proposed+Sun+Forums+Redesign+and+Improved+Information+Architecture]
    You can make comments on the bottom of the wiki. If there is a link for login/sign in just click it. It seemed to login for me automatically otherwise use the same username and password as you use for this site.
    Thank you for your participation.

    Just bumping this topic for people who may have missed it.

  • Request for feedback on a class introducing static typing

    Hello, the industrious HalosGhost is working on a class, A Gentle Introduction to Static Typing. I am asking on his behalf for some feedback. A draft of his notes can found through this finely crafted link: https://gist.github.com/HalosGhost/aaf5ea068ef0f2854a3c.

    Feel free to either comment directly on the Gist, comment here, send me an email, use smoke signals or otherwise communicate to me your questions/concerns/comments
    All the best,
    -HG

  • JRE1.6 in Windows Vista for Swing based application

    Hi,
    I am running a Swing based and applet based application in Windows VISTA using JRE 1.6_U13. The text font is appearing bold in JRE 1.6_U13 whereas it is appearing normal while using JRE 1.5, though the style of the Font
    is "SansSerif", PLAIN and size 12 for both JRE 1.6 and JRE 1.5.
    Reason for the Issue:
    Swings follows the concept of taking the display values from the Windows UIManager(). The UIManager consists of keys and values. The values for the keys change from OS to OS. As a result, if the UIManager key values are not overridden with the customized values, the display will change from OS to OS. Hence the issue has occurred.
    Analysis:
    Case-1:
    1.     CALM is setting the font style to “Font("SansSerif", Font.PLAIN, 12)”.
    2.     This font is being set to the Label and Text components in swings.
    3.     The font class consists of Font.PLAIN argument whose value is 0 as per the java API.
    4.     This value can’t be changed.
    5.     Hence we couldn’t solve.
    Case-2:
    1.     We tried to get the key value for the key “Label.font” and tried to override its value.
    2.     But then the issue is with the Font.Plain which is one of the arguments in Font object.
    3.     Hence couldn’t achieve it.
    Case-3:
    1.     We thought of creating a new font where in we can have control over the weight and width of the text. Then set this font to respective key of the UIManager.
    2.     Here the weight indicates the bold thickness. As a result of which we thought of changing the weight.
    3.     But then the options that we have in the API are less and the least weight value is “TextAttribute.WEIGHT_EXTRA_LIGHT” which is equal to “0.5”.
    4.     This value is not sufficient as the boldness of the text is comparatively more than the text that is appearing in jre-1.5.
    5.     Then we tried to give the value manually, instead of using the API. But then, it was mentioned in the API that any values mentioned other than the ones specified in the API will be rounded to the nearest integer.
    6.     By doing this we have customized the boldness of the Label, but could not achieve the required boldness of the Label.
    Please need a urgent solution.

    Hi,
    The reason of the problem is Antialiasing effect of the graphics. In Control Panel -> Performance Information and tools -> Adjust visual effect, if the 'Smooth edges of screen font' is unchecked then the boldiness of the font or the Antialiasing effect is not there.
    But this effect is reflecting not only on my swing based and applet based application but also on the whole system.
    I tried to call the renderingHint method and change default value of the key KEY_TEXT_ANTIALIASING to VALUE_TEXT_ANTIALIASING_OFF, to make the antialiasing effect off for the application.
    I implemented the below code:
    Graphics g= new Graphics();
    Graphics2D g2d = (Graphics2D)g;
    g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
    RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);
    But I am not able to create an object of Graphics.

  • How to Implement Condition-Based Tax Calculation in R/3 for Mexico

    Is there a manual, or some type of guide to implementing condition-based tax calculation in R/3 for Mexico?
    Kind regards,
    Mark Walker

    Hey Mark,
    Check the following link for mexico taxes, may be helpful to you..
    http://help.sap.com/printdocu/core/Print46c/EN/data/pdf/CAINTMX/CAINTMX.pdf
    Thanks
    Prasada

  • Packaging executable jars for my Swings based Desktop application

    I have developed a swings based desktop application for which we used third party JDIC jar inorder to incorporate the tray icon functionality for our application.
    The problem is i need to provide a distributable for this application and the application's executable jar file gets automatically created as a part of build from IDE [Am using NetBeans6.0]. The Application's exec.jar is not able to locate the jdic.jar and hence am unable to get the tray icon functionality, when i run the application's exec jar.
    i.I tried packaging the jdic lib jar with in the application's jar but got to know that tht can't solve the issue.
    ii.I also tried editing the manifest file to provide the class path to the thrid party jar [jdic] ... but of no use
    Any Help regarding this would be thoroughly appreciated.

    can anyone pls let me know how would i be able to package my application as distributable so that others can deploy and run.

  • Using MS FileSharingTestSuite for TESTING a LINUX Based SMB/CIFS implementation.

    Hi,
    I was trying to setup the MS File Sharing test suite for testing the below implementation.
    Could please let me know if this use-case is supported. If not could please point me to
    resources [Microsoft] which could help achieve this purpose effectively.
    I want to test CIFS File server implementation running on Linux [SUSE Linux - Open Enterprise Server]
    The client accessing the file services from above
    CIFS server implementation is vastly
    Windows clients.
    Though would like to know ways of testing if the client is a Linux based desktop or a Mac based client as well in future.
    For the above setup details I would like to know if and how we could create a "Driver
    Computer" setup mainly. So we could use the File Sharing test suite to test against this Linux based CIFS server implementation.
    And also the details on setting up the  'System Under Test (SUT)' , if any changes required[from what is documented in the "FileSharing_ServerUserGuide]" to
    achieve the above.
    Could kindly point me in the right direction to help achieve the above testing purpose.
    Please let me know in case any details are required to help resolve the query.
    Thanks for your time and help.
    Regards,
    Kavitha A

    Hi,
    Thanks for your time.
    I am actually talking about using file sharing test suite provided My microsoft for testing a Linux Based CIFS/SMB implementation.
    I have got my query answered via Mail from Microsoft dochelp team. hence marking this as resolved.
    Posting the response /resolution from DOcHelp team on this thread for benefit of anyone looking for similar information/understanding:
    If you are testing in a Workgroup scenario you need a Driver Computer and the System Under Test (SUT) computer.
    In a domain-joined scenario, you need a DC somewhere in your environment to join the machines.
    The guide document that comes with the test suite package provides guidance on what needs to be configured in each scenario.
    The Driver Computer is the Windows machine where the synthetic test suite runs and simulates a client by emitting the protocol packets. The client sends packets to the file server
    (the SUT) to test the server implementation of the protocol.
    The SUT implements the server side of the protocol and the SUT can be running on any operating system.
    For your convenience, you can setup a Windows SUT just for the purpose of understanding the test configuration on the driver client.
    The document has instructions for Windows SUT and guidelines for non-Windows SUT as well. In your case, it’s a non-Windows SUT. You need to configure your server where your file
    server implementation is running and setup the Driver computer to test your SUT.
    I understand that your ultimate goal is to setup your own SUT on the SUSE Linux server.
    Many customers have setup SUTs on CentOS, Ubuntu, etc. The flavor of the operating system is not relevant as such. The client simulator talks the SUT by following the protocol
    packets.
    Please go through the document step-by-step and I am sure it will come together.
    Let’s me know whether you have any further questions.
    I am not looking at CIFS share access from a Linux system. Otherwise would have posted in relevant Linux forums If looking for the same information. Thanks again for taking time to help though.

  • Posting Feature Requests for others to Copy/Paste

    I recently posted a Feature Request I sent to Adobe for another member to copy/paste as his own FR since he liked the suggestion (see the FR below). 
    After doing so, I got the idea that we could all do this: copy/paste FRs we send to Adobe into threads on this forum to help each other support the idea with similar requests, or even copy/paste the FR as our own.  With limited resources and time, there's only so many requests Adobe can implement in every new version.   That why it's so important that new features the Premiere Pro team invests their hard work and time on be the tools that would benefit the greatest number of editors.  The more people back up certain ideas, the more likely they'll be implemented sooner than later.
    There's power in numbers, so how about using this forum to share our best ideas and make it easier for others to add their voice of support?  It's great that Adobe provides us with a way to send them feedback, but it's too bad that it's a one-way conversation with very little, if any, dialogue back and forth between the submitter and Adobe.  That's why I thought it would be great to bring more of that potential dialogue here, where we can share ideas and support the creation of an ever better Premiere Pro!
    If you've never posted a FR or BR (Bug Report) before, you can easily join the effort to make Premiere Pro become all that it can be, here: www.adobe.com/go/wish
    Comments?  Ideas?  Please share!
    Here's the FR I pasted in another thread, as an example. 
    *******Enhancement / FMR*********
    Brief title for your desired feature:  Drag&Drop Modified clips into Project Window
    How would you like the feature to work?
    Ability to Drag&Drop clips with effects, motion settings, keyframes and/or markers back into the Project Window from the Timeline for later use.
    Why is this feature important to you?
    The Project Window is far better than Sequences for storing/organizing modified clips for future use, since it is:
    Searchable
    Sortable
    Viewable in Icon and List views
    Full of helpful metadata columns such as 'Video/Audio Usage'
    Foolproof in that the original sequence can be deleted without losing any created subclips
    Given these advantages, why only allow us to store modified clips in Sequences? Please fix this by allowing users to Drag&Drop clips from the Timeline to the Project Window while preserving all of their modifications (effects, keyframes, motion settings and/or markers).

    Comments?  Ideas?  Please share!
    As it has already been discussed in this thread (and duplicated threads are not allowed in Adobe Forums), the aforementioned feature request is mainly based on the false statement that an editor can either store raw clips in the Project panel or modified clip in the timeline. That's false because an editor can nest modified clip right in the timeline and the nested sequence will be automatically stored in the Project panel, turning into a regular reusable asset.
    Unfortunately, the OP, as was also outlined in the duplicated thread, carefully avoids any mentioning this ability, which becomes your second nature if you use After Effects (which is unlike FCP is a part of Adobe Suite).
    However, since the OP asks for sharing ideas, I do not hesitate to do this once again. Here is the feature request intended to improve the usability of such PrPro assets as 'Sequences' without breaking existing workflow:
    *******Managing Sequences*******
    It would be nice if managing capabilities for such assets as 'Sequences' were extended with the following features:
    - similar live thumbnail view, which was introduced for footages in CS6. A small 'Sequence' badge in the top left corner of the thumbnail would allow to differentiate between sequences and clips;
    - enabled metadata and ability to handle them like for any other regular asset;
    - ability to remove empty audio or video tracks completely, i.e. get a sequence as an Audio or Video asset only;
    - pop-up dialog box on hitting 'Nest' command, which would allow to give meaning name instead of default 'Nested Sequence XXX', contain 'Delete All Empty Tracks' checkbox and a button for advanced dialog for logging metadata right on a brand new asset creation.
    These features would improve an ability to exploit sequences as reusable assets and preserve consistent applications behaviour throughout the Suite instead of breaking existing workflow by inventing new FCP style 'subclip with effects' type of asset. See this discussion in PrPro Forum for some more details:
    http://forums.adobe.com/thread/1204107?tstart=0

  • A Request for help from me again! Yay!

    hi guys! I was working on implementing threads for the directions of the unit. When i press forward once...nothing happens, but when i press twice it gives me this HUGE list of errors. I dont have a clue. Again, any help would be appreciated.
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class NBoard extends JFrame implements KeyListener{
         int selection = 0;
         boolean selectionmade = false;
         final int WIDTH = 600;
         final int HEIGHT = 600;
         Image Viz =Toolkit.getDefaultToolkit().getImage(JOptionPane.showInputDialog("What character do you want?")+".gif");
         int XC = 50;
         int YC = 50;
         Thread moving = new Move();
         Unit Host = new Unit();
         public NBoard(){
              this.setSize(WIDTH,HEIGHT);
              selection = Integer.parseInt(JOptionPane.showInputDialog("What level design do you want?"));
              if(selection > 0){
                   selectionmade = true;
              addKeyListener(this);
              this.setVisible(true);
         public static void main(String args[]){
              new NBoard();
         public void paint(Graphics g){
              if(selectionmade == true){
                   if(selection == 1){
                        g.setColor(Color.white);
                        g.fillRect(0,0,WIDTH,HEIGHT);
                        g.setColor(Color.black);
                        g.drawLine(WIDTH/2,0,WIDTH/2,HEIGHT);
                   if(selection == 2){
                        g.setColor(Color.white);
                        g.fillRect(0,0,WIDTH,HEIGHT);
                        g.setColor(Color.black);
                        g.drawLine(WIDTH/2,0,WIDTH/2,HEIGHT);
                        for(int ctr = 1; ctr < 6; ++ctr){
                             g.drawRect(WIDTH/4 ,ctr * 100, 20, 20);
                             g.drawRect((WIDTH / 3) * 2 ,ctr * 100, 20, 20);
                   if(selection == 3){
                        g.setColor(Color.white);
                        g.fillRect(0,0,WIDTH,HEIGHT);
                        g.setColor(Color.black);
                        g.drawLine((WIDTH/2) - 90,0,(WIDTH/2) + 90,HEIGHT);
                   g.drawImage(Viz,XC,YC,this);
              public void keyPressed(KeyEvent e){                              //The Problem Areas
                   if(e.getKeyChar() == 'w'){
                        moving.start();                                             //Starting the thread to move up
                   else if(e.getKeyChar() == 's'){
                        YC = YC + 2;
                   else if(e.getKeyChar() == 'a'){
                        XC = XC - 2;
                   else if(e.getKeyChar() == 'd'){
                        XC = XC + 2;
                   System.out.println(e.getKeyChar());
                   repaint();
         public void keyReleased(KeyEvent e){                              //The Problem Areas
              if(e.getKeyChar() == 'w'){
                   moving.interrupt();                                             //Trying to interrupt the thread once the key is released
         public void keyTyped(KeyEvent e){}
    class Move extends Thread{                                                  //The Problem Areas
         public void run(){                                                       //The Thread
              Unit.XC = Unit.XC - 2;
              try{
                   Thread.sleep(1000);
              catch (Exception e){}
    class Unit{                                                                      //The Object which will hold all of the information about each unit
         static int XC = 30;
         static int YC = 30;
    } By the way, here is my order of events, so you can look forward to seeing requests for help for them (hopefully not).
    Threads: Moving the guy around
    Threads: Making him shoot a ball at the mouses position
    Network: Allow others to join/play game (This is gonna be HUGE probably), while host decides on game type.
    Thanks for all the help so far!

    Where does moving ever get started? Why does Move extend Thread instead of implementing Runnable? (Implementing runnable is preferred and often the correct way to do it and it is in this case)
    But regardless there shoud be a moving.start() somewhere or start of the Thread that has the Runnable target Move.... I don't think I see one. Unless I missed it.
    so...itll work if i change the setup to Runnable?

  • In R12, can payroll user enter expense report for employees via web-based?

    Hi,
    In R12, can payroll user enter expense report for employees via web-based screen? Previously in 11i, it can be done via the Expense Report forms.
    Appreciate advise on this.
    Thanks in advance.
    Regards,
    Shiau Chin

    Hi Anne,
    Please see page 42 of the [url http://download.oracle.com/docs/cd/B34956_01/current/acrobat/120oieig.pdf]iExpenses Implementation and Admin Guide for R12 . If you are unable to enter the ID as per the guide, I would suggest raising an Service Request with Oracle Support.
    Cheers, Pete

  • Unable to securely request for a page

    Question:
    a) I'm unable to securely request for my webpage : https://127.0.0.1:8443/Blah , instead I get the following Error:
    Firefox can't establish a connection to the server at localhost:8443.
    The site could be temporarily unavailable or too busy. Try again in a few
    moments.
    If you are unable to load any pages, check your computer's network
    connection.
    If your computer or network is protected by a firewall or proxy, make sure
    that Firefox is permitted to access the Web.
    On Internet Explorer I simply get:
    Internet Explorer cannot display the webpage
    b) How do I know which SSL Implementation my tomcat is making use of: JSSE/APR
    Details:
    web.xml
    <?xml version="1.0"?>
    <!DOCTYPE web-app PUBLIC
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    id="Your_WebApp_ID"
    version="2.5">
    <description>The standard web descriptor for the email client</description>
    <servlet>
    <servlet-name>AuthenticateUser</servlet-name>
    <servlet-class>MailBoxController</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>AuthenticateUser</servlet-name>
    <url-pattern>/ControlPanel</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>login.jsp</welcome-file>
    </welcome-file-list>
    <error-page>
    <error-code>401</error-code>
    <location>/authenticationFailed.jsp</location>
    </error-page>
    <context-param>
    <param-name>serverName</param-name>
    <param-value>Gmail</param-value>
    </context-param>
    <context-param>
    <param-name>port</param-name>
    <param-value>993</param-value>
    </context-param>
    <context-param>
    <param-name>ip</param-name>
    <param-value>imap.gmail.com</param-value>
    </context-param>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <listener>
    <listener-class>Logger</listener-class>
    </listener>
    <security-constraint>
    <web-resource-collection>
    <url-pattern>/*</url-pattern>
    <http-method>POST</http-method>
    </web-resource-collection>
    <auth-constraint>
    <role-name>administrator</role-name>
    </auth-constraint>
    <user-data-constraint>
    <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    <login-config>
    <auth-method>BASIC</auth-method>
    </login-config>
    <security-role>
    <role-name>administrator</role-name>
    </security-role>
    </web-app>
    tomcat-users.xml :
    <tomcat-users>
    <role rolename="administrator"/>
    <user username="admin" password="system123#" roles="administrator"/>
    </tomcat-users>
    Following tag was added in web.xml in conf of tomcat :
    <-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
    <Connector
    protocol="org.apache.coyote.http11.Http11NioProtocol"
    port="8443" maxThreads="200"
    scheme="https" secure="true" SSLEnabled="true"
    keystoreFile="C:/Users/.keystore" keystorePass="changeit"
    clientAuth="false" sslProtocol="TLS"/>
    Can anybody please help me with my problem. Am I going wrong with configuring SSL?
    Thanks
    Krutika

    I did add these lines:
    <Connector
         protocol="org.apache.coyote.http11.Http11NioProtocol"
         port="8443" maxThreads="200"
         scheme="https" secure="true" SSLEnabled="true"
         keystoreFile="C:/Users/Krutika Ravi/.keystore" keystorePass="changeit"
         clientAuth="false" sslProtocol="TLS"/>
    to the web.xml contained in conf folder of tomcat.
    But didn't fiddle with server.xml -
    After un-commenting
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
    maxThreads="150" scheme="https" secure="true"
    clientAuth="false" sslProtocol="TLS" />
    in server.xml contained in conf folder I get the following exceptions
    Jul 25, 2012 11:11:41 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: Loaded APR based Apache Tomcat Native library 1.1.24 using APR version 1.4
    .6.
    Jul 25, 2012 11:11:41 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], ra
    ndom [true].
    Jul 25, 2012 11:11:43 PM org.apache.catalina.core.AprLifecycleListener initializ
    eSSL
    INFO: OpenSSL successfully initialized (OpenSSL 1.0.1c 10 May 2012)
    Jul 25, 2012 11:11:43 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["http-apr-8080"]
    Jul 25, 2012 11:11:43 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["http-apr-8443"]
    Jul 25, 2012 11:11:43 PM org.apache.coyote.AbstractProtocol init
    SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-ap
    r-8443"]
    java.lang.Exception: Connector attribute SSLCertificateFile must be defined when
    using SSL with APR
    at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:484)
    at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.jav
    a:610)
    at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)
    at org.apache.catalina.connector.Connector.initInternal(Connector.java:9
    81)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.core.StandardService.initInternal(StandardService
    .java:559)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.core.StandardServer.initInternal(StandardServer.j
    ava:814)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:624)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:649)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
    Jul 25, 2012 11:11:43 PM org.apache.catalina.core.StandardService initInternal
    SEVERE: Failed to initialize connector [Connector[HTTP/1.1-8443]]
    org.apache.catalina.LifecycleException: Failed to initialize component [Connecto
    r[HTTP/1.1-8443]]
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
    at org.apache.catalina.core.StandardService.initInternal(StandardService
    .java:559)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.core.StandardServer.initInternal(StandardServer.j
    ava:814)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:624)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:649)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
    Caused by: org.apache.catalina.LifecycleException: Protocol handler initializati
    on failed
    at org.apache.catalina.connector.Connector.initInternal(Connector.java:9
    83)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    ... 12 more
    Caused by: java.lang.Exception: Connector attribute SSLCertificateFile must be d
    efined when using SSL with APR
    at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:484)
    at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.jav
    a:610)
    at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)
    at org.apache.catalina.connector.Connector.initInternal(Connector.java:9
    81)
    ... 13 more
    Jul 25, 2012 11:11:43 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["ajp-apr-8009"]
    Jul 25, 2012 11:11:43 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 2945 ms
    Jul 25, 2012 11:11:43 PM org.apache.catalina.core.StandardService startInternal
    INFO: Starting service Catalina
    Jul 25, 2012 11:11:43 PM org.apache.catalina.core.StandardEngine startInternal
    INFO: Starting Servlet Engine: Apache Tomcat/7.0.29
    Jul 25, 2012 11:11:43 PM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive C:\Junkyard\apache-tomcat-7.0.29\webapps
    \Blah.war
    Jul 25, 2012 11:11:44 PM org.apache.catalina.loader.WebappClassLoader validateJa
    rFile
    INFO: validateJarFile(C:\Junkyard\apache-tomcat-7.0.29\webapps\Blah\WEB-INF\lib\
    javax.servlet-5.1.12.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2.
    Offending class: javax/servlet/Servlet.class
    Logger Contructor
    Servlet Context has been initialized
    Jul 25, 2012 11:11:45 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory C:\Junkyard\apache-tomcat-7.0.29\webap
    ps\docs
    Jul 25, 2012 11:11:45 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory C:\Junkyard\apache-tomcat-7.0.29\webap
    ps\examples
    Jul 25, 2012 11:11:46 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory C:\Junkyard\apache-tomcat-7.0.29\webap
    ps\host-manager
    Jul 25, 2012 11:11:46 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory C:\Junkyard\apache-tomcat-7.0.29\webap
    ps\manager
    Jul 25, 2012 11:11:46 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory C:\Junkyard\apache-tomcat-7.0.29\webap
    ps\ROOT
    Jul 25, 2012 11:11:46 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-apr-8080"]
    Jul 25, 2012 11:11:46 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["ajp-apr-8009"]
    Jul 25, 2012 11:11:46 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 2728 ms
    Edited by: 948555 on Jul 25, 2012 10:42 AM

  • Error in raising ESS requests for an Approver

    Hello Experts,
    We have implemented standard claims workflow WS18900023 and have implemented BADI to get next approver.
    Everything is working fine except one case when an Approver of certain claim type is raising request for himself. Then we are getting error while saving the claim: Approver can not raise claim.
    I checked the documentation of BADI and found that we should return Person No and Group or Group in case we have multiple approvers but if we return null Group or null person no and group badi will go into error.
    Can you please help me with a possible solution to this issue? How can I enable the approver to raise claim for himself??
    Best Regards,
    Deepak

    in that BADI method GET_NEXT_APPROVER.
    Make sure your passing the values for export parameters EFD_APGRP and EFD_APERN based on no.of approval levels.
    For EFD_APGRP, you can pass value 'ADMIN' as default.
    When it's final level don't pass any values to these parameters.

  • Retrieving results for comparison in form based authentication with entitie

    Hi,Im developing an application using EJB3.0 and at the moment im working on a module involving user authentication.I work with the sun java system appserver 9.1 and netbeans 5.5.2 using the default toplink as the persistent provider.I have problems performing user based authentication.where am at is at shown below.I used a SLSB facade design pattern and created an entity from an existing database I built solely for the application (table name user_table). This is the code I have currently:
    Entity
    * UserTable.java
    * Created on 31 March 2008, 16:06
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package Entities;
    import java.io.Serializable;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.Table;
    * Entity class UserTable
    * @author Ayo
    @Entity
    @Table(name = "user_table")
    public class UserTable implements Serializable {
    @Id
    @Column(name = "user_id", nullable = false)
    private Integer userId;
    @Column(name = "username")
    private String username;
    @Column(name = "password")
    private String password;
    @Column(name = "user_type")
    private String userType;
    @Column(name = "access_level")
    private String accessLevel;
    @Column(name = "staff_id")
    private Integer staffId;
    @Column(name = "staff_type", nullable = false)
    private String staffType;
    @Column(name = "time_created")
    private String timeCreated;
    @Column(name = "time_modified")
    private String timeModified;
    @Column(name = "time_logged_in")
    private String timeLoggedIn;
    @Column(name = "time_logged_out")
    private String timeLoggedOut;
    @Column(name = "created_by")
    private String createdBy;
    /** Creates a new instance of UserTable */
    public UserTable() {
    * Creates a new instance of UserTable with the specified values.
    * @param userId the userId of the UserTable
    public UserTable(Integer userId) {
    this.userId = userId;
    * Creates a new instance of UserTable with the specified values.
    * @param userId the userId of the UserTable
    * @param staffType the staffType of the UserTable
    public UserTable(Integer userId, String staffType) {
    this.userId = userId;
    this.staffType = staffType;
    * Gets the userId of this UserTable.
    * @return the userId
    public Integer getUserId() {
    return this.userId;
    * Sets the userId of this UserTable to the specified value.
    * @param userId the new userId
    public void setUserId(Integer userId) {
    this.userId = userId;
    * Gets the username of this UserTable.
    * @return the username
    public String getUsername() {
    return this.username;
    * Sets the username of this UserTable to the specified value.
    * @param username the new username
    public void setUsername(String username) {
    this.username=username;
    * Gets the password of this UserTable.
    * @return the password
    public String getPassword() {
    return this.password;
    * Sets the password of this UserTable to the specified value.
    * @param password the new password
    public void setPassword(String password) {
    this.password=password;
    * Gets the userType of this UserTable.
    * @return the userType
    public String getUserType() {
    return this.userType;
    * Sets the userType of this UserTable to the specified value.
    * @param userType the new userType
    public void setUserType(String userType) {
    this.userType = userType;
    * Gets the accessLevel of this UserTable.
    * @return the accessLevel
    public String getAccessLevel() {
    return this.accessLevel;
    * Sets the accessLevel of this UserTable to the specified value.
    * @param accessLevel the new accessLevel
    public void setAccessLevel(String accessLevel) {
    this.accessLevel = accessLevel;
    * Gets the staffId of this UserTable.
    * @return the staffId
    public Integer getStaffId() {
    return this.staffId;
    * Sets the staffId of this UserTable to the specified value.
    * @param staffId the new staffId
    public void setStaffId(Integer staffId) {
    this.staffId = staffId;
    * Gets the staffType of this UserTable.
    * @return the staffType
    public String getStaffType() {
    return this.staffType;
    * Sets the staffType of this UserTable to the specified value.
    * @param staffType the new staffType
    public void setStaffType(String staffType) {
    this.staffType = staffType;
    * Gets the timeCreated of this UserTable.
    * @return the timeCreated
    public String getTimeCreated() {
    return this.timeCreated;
    * Sets the timeCreated of this UserTable to the specified value.
    * @param timeCreated the new timeCreated
    public void setTimeCreated(String timeCreated) {
    this.timeCreated = timeCreated;
    * Gets the timeModified of this UserTable.
    * @return the timeModified
    public String getTimeModified() {
    return this.timeModified;
    * Sets the timeModified of this UserTable to the specified value.
    * @param timeModified the new timeModified
    public void setTimeModified(String timeModified) {
    this.timeModified = timeModified;
    * Gets the timeLoggedIn of this UserTable.
    * @return the timeLoggedIn
    public String getTimeLoggedIn() {
    return this.timeLoggedIn;
    * Sets the timeLoggedIn of this UserTable to the specified value.
    * @param timeLoggedIn the new timeLoggedIn
    public void setTimeLoggedIn(String timeLoggedIn) {
    this.timeLoggedIn = timeLoggedIn;
    * Gets the timeLoggedOut of this UserTable.
    * @return the timeLoggedOut
    public String getTimeLoggedOut() {
    return this.timeLoggedOut;
    * Sets the timeLoggedOut of this UserTable to the specified value.
    * @param timeLoggedOut the new timeLoggedOut
    public void setTimeLoggedOut(String timeLoggedOut) {
    this.timeLoggedOut = timeLoggedOut;
    * Gets the createdBy of this UserTable.
    * @return the createdBy
    public String getCreatedBy() {
    return this.createdBy;
    * Sets the createdBy of this UserTable to the specified value.
    * @param createdBy the new createdBy
    public void setCreatedBy(String createdBy) {
    this.createdBy = createdBy;
    * Returns a hash code value for the object. This implementation computes
    * a hash code value based on the id fields in this object.
    * @return a hash code value for this object.
    @Override
    public int hashCode() {
    int hash = 0;
    hash += (this.userId != null ? this.userId.hashCode() : 0);
    return hash;
    * Determines whether another object is equal to this UserTable. The result is
    * <code>true</code> if and only if the argument is not null and is a UserTable object that
    * has the same id field values as this object.
    * @param object the reference object with which to compare
    * @return <code>true</code> if this object is the same as the argument;
    * <code>false</code> otherwise.
    @Override
    public boolean equals(Object object) {
    // TODO: Warning - this method won't work in the case the id fields are not set
    if (!(object instanceof UserTable)) {
    return false;
    UserTable other = (UserTable)object;
    if (this.userId != other.userId && (this.userId == null || !this.userId.equals(other.userId))) return false;
    return true;
    * Returns a string representation of the object. This implementation constructs
    * that representation based on the id fields.
    * @return a string representation of the object.
    @Override
    public String toString() {
    return "Entities.UserTable[userId=" + userId + "]";
    SLSB
    * UserTableFacade.java
    * Created on 31 March 2008, 16:07
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package Entities;
    import java.util.*;
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    * @author Ayo
    @Stateless
    public class UserTableFacade implements UserTableFacadeLocal {
    @PersistenceContext
    private EntityManager em;
    /** Creates a new instance of UserTableFacade */
    public UserTableFacade() {
    public void create(UserTable userTable) {
    em.persist(userTable);
    public void edit(UserTable userTable) {
    em.merge(userTable);
    public void destroy(UserTable userTable) {
    em.merge(userTable);
    em.remove(userTable);
    public List findAll() {
    return em.createQuery("select Object(o)from UserTable as o").getResultList();
    local interface
    * UserTableFacadeLocal.java
    * Created on 31 March 2008, 16:07
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package Entities;
    import java.util.*;
    import javax.ejb.Local;
    * @author Ayo
    @Local
    public interface UserTableFacadeLocal {
    void create(UserTable userTable);
    void edit(UserTable userTable);
    void destroy(UserTable userTable);
    List findAll();
    controller servlet
    * userCheck.java
    * Created on 15 March 2008, 22:41
    package servlets;
    import Entities.UserTable;
    import Entities.UserTableFacadeLocal;
    import Entities.userValidationBean;
    import Entities.userValidationRemote;
    import java.io.*;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Collection;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.ejb.*;
    * @author Ayo
    * @version
    public class userCheck extends HttpServlet {
    @EJB
    private UserTableFacadeLocal userTableFacade;
    UserTable u;
    String userFellow;
    String pass;
    String username,password;
    /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
    * @param request servlet request
    * @param response servlet response
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    /*con=null;
    ps=null;
    rs=null;
    s=null;
    */response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    username=request.getParameter("username");
    password=request.getParameter("password");
    if(username==""||password=="")
    showError("<b><font color=\"red\">Please fill in the required blanks.</font></b>",request,response);
    else
    List user=userTableFacade.findAll();
    for(Iterator it=user.iterator();it.hasNext();)
    u=(UserTable)it.next();
    userFellow= u.getUsername();
    pass=u.getPassword();
    //out.println(" <b>"+elem.getTitle()+" </b><br />");
    //out.println(elem.getBody()+"<br /> ");
    //I used the following two lines to determing if im actually accessing the database and retrieving results, and I get all records in the table(usernames and passwords).
    //BUT I NEED A SPECIFIC RECORD TO MATCH THE USERNAME AND PASSWORD FROM THE FORM AND IF IT DOES NOT MATCH,I REDIRECT TO THE ERROR PAGE.THAT'S WHERE IM STUCK.
    out.println(userFellow);
    out.println(pass);
    /* if(username.equals(userFellow)&&password.equals(pass))
    RequestDispatcher d=request.getRequestDispatcher("blah.jsp");
    d.forward(request,response);
    else
    showError("<b><font color=\"red\">Invalid Login details!</font></b>",request,response);
    private void showError(String errorMsg,HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException
    request.setAttribute("error_msg",errorMsg);
    RequestDispatcher dispatcher=request.getRequestDispatcher("admin_error.jsp");
    dispatcher.forward(request,response);
    // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
    /** Handles the HTTP <code>GET</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    /** Handles the HTTP <code>POST</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    /** Returns a short description of the servlet.
    public String getServletInfo() {
    return "Short description";
    // </editor-fold>
    I NEED HELP.ive been on this for 5 days and i cant seem to get a solution. I tried creating a method (private Collection findByUsername()) and(private Collection
    findByPassword()) in the local interface that would supposedly return records based on input from the form but I got a null pointer and an ejb exception saying
    unknown find method or something, as in ,or an error message that said i cant search records by name or something.I dont know. Or is it the query that is not
    specific enough. I didnt seem to get the syntax right when i was trying to search by username and password.Please someone help me.
    Ayo.

    Hey everyone,
    Is the question I posted that hard?
    I even tried to just load a HTML <img src="picture.jpg"/> tag
    on the login.jsp and even this won't show.
    I'm thinking that the container, with the security mechanism, is blocking
    styles and images???
    Anyone...please help.
    -Yuri

Maybe you are looking for