RequestFocus not working

In a splitpane i'm having a text pane and Jtree. i added mouse listener to both the components and in the mouseclicked method i'm calling this.requestFocus(). First i clicked on the Tree and immediately started typing on the textpane. when again i click on tree, it doesn't receive the focus. The focus still on text pane. can any one help me?

It's not clear what means "this.requestFocus()" and "click on tree and start typing on text pane".
Could you provide some test.

Similar Messages

  • RequestFocus() not working for JTextArea

    requestFocus() is not working for JTextArea.
    A validation message is displayed and when clicked on 'ok', requestFocus() does not work. Cursor is not shown in the text
    area.
    Any suggestions/solutions pls?

    here is the sample code:
    public boolean checkData()
    String comment = commentArea.getText().trim();
    if( comment.length() < MN_COMMENT || comment.length() > MX_COMMENT )
    showError(COMMENT_ALERT);
    commentArea.requestFocus();
    return false;
    return true;
    Focus is lost. TextArea is in scroll pane. Scroll pane is contanined in a container pane and pane is for JDialog.
    RequestFocus() is working for JRE 1.5.0_07. But its not working for JRE 1.5.0_0 and lower versions.

  • Show AppXray dependencies does not work for all projects

    I have three projects. One of them will display the appxray dependncies and the other two will not. When I select show dependencies, nothing happens. There is no logging inside the workshop m7.log.0 but the .log has the following. How do I get this to work?
    Config details follow logging.
    !MESSAGE Warning: Detected recursive attempt by part com.m7.wide.eclipse.jstudio.DocEditor.jsp to create itself (this is probably, but not necessarily, a bug)
    !STACK 1
    org.eclipse.ui.PartInitException: Warning: Detected recursive attempt by part com.m7.wide.eclipse.jstudio.DocEditor.jsp to create itself (this is probably, but not necessarily, a bug)
         at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:543)
         at org.eclipse.ui.internal.WorkbenchPage$6.run(WorkbenchPage.java:1746)
         at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:152)
         at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:28)
         at org.eclipse.swt.widgets.Display.syncExec(Display.java:3413)
         at org.eclipse.ui.internal.WorkbenchPage.getEditors(WorkbenchPage.java:1743)
         at com.m7.wide.eclipse.Util.activateEditor(Unknown Source)
         at com.m7.wide.eclipse.jstudio.A.requestFocus(Unknown Source)
         at com.m7.wide.doceditor.AbstractEditor.requestFocus(Unknown Source)
         at com.m7.wide.doceditor.AbstractPane.requestFocus(Unknown Source)
         at com.m7.wide.doceditor.flow.FlowDesignPane.requestFocus(Unknown Source)
         at com.m7.wide.doceditor.CompoundPane.requestFocus(Unknown Source)
         at com.m7.wide.doceditor.CompoundPane.setHidden(Unknown Source)
         at com.m7.wide.doceditor.MultiPaneEditor.activePaneChanged(Unknown Source)
         at com.m7.wide.eclipse.jstudio.PaneEditorPart.activate(Unknown Source)
         at com.m7.wide.eclipse.jstudio.DynamicMultiPageEditor.A(Unknown Source)
         at com.m7.wide.eclipse.jstudio.DynamicMultiPageEditor.pageChange(Unknown Source)
         at com.m7.wide.eclipse.jstudio.DynamicMultiPageEditor.createPages(Unknown Source)
         at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:241)
         at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:609)
         at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:384)
         at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
         at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:283)
         at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:126)
         at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
         at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
         at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:391)
         at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1102)
         at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1051)
         at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1256)
         at org.eclipse.ui.internal.PartStack.add(PartStack.java:442)
         at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:109)
         at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:60)
         at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:212)
         at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:202)
         at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:758)
         at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:665)
         at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:628)
         at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2360)
         at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2295)
         at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:2287)
         at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2273)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2268)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2249)
         at org.eclipse.ui.ide.IDE.openEditor(IDE.java:753)
         at org.eclipse.ui.ide.IDE.openEditor(IDE.java:697)
         at com.m7.wide.eclipse.Eclipse3WideEnv.openEditor(Unknown Source)
         at com.m7.wide.eclipse.EclipseWideEnv.openEditor(Unknown Source)
         at com.m7.wide.project.artifact.action.OpenAction.run(Unknown Source)
         at com.m7.wide.eclipse.jstudio.appexplorer.AppExplorerTreeViewer.open(Unknown Source)
         at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:741)
         at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
         at org.eclipse.core.runtime.Platform.run(Platform.java:783)
         at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
         at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
         at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:739)
         at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:968)
         at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1067)
         at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:243)
         at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:238)
         at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:277)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
         at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
         at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
         at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
         at org.eclipse.core.launcher.Main.run(Main.java:973)
         at org.eclipse.core.launcher.Main.eclipse_main(Main.java:948)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.m7.installer.util.NitroxMain$1.run(NitroxMain.java:29)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    !SUBENTRY 1 org.eclipse.ui 4 0 2005-12-13 11:58:43.346
    !MESSAGE Warning: Detected recursive attempt by part com.m7.wide.eclipse.jstudio.DocEditor.jsp to create itself (this is probably, but not necessarily, a bug)
    *** Date: Tue Dec 13 12:48:19 PST 2005
    *** Platform Details:
    *** System properties:
    awt.toolkit=sun.awt.windows.WToolkit
    eclipse.application=org.eclipse.ui.ide.workbench
    eclipse.buildId=M20050929-0840
    eclipse.commands=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\packages\Eclipse3.1\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    7b4_30
    -feature
    com.m7.nitrox
    -application
    org.eclipse.ui.ide.workbench
    -vm
    C:\WINDOWS\system32\javaw.exe
    eclipse.product=com.m7.nitrox
    eclipse.startTime=1134504472516
    eclipse.vm=C:\WINDOWS\system32\javaw.exe
    eclipse.vmargs=-Xms128M
    -Xmx512M
    -Dosgi.splashLocation=C:\packages\Workshop_for_Struts_3.0_471\Workshop\splash.bmp
    -jar
    C:\packages\Eclipse3.1\eclipse\startup.jar
    eof=eof
    file.encoding=Cp1252
    file.encoding.pkg=sun.io
    file.separator=\
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob=sun.awt.windows.WPrinterJob
    java.class.path=C:\packages\Eclipse3.1\eclipse\startup.jar
    java.class.version=48.0
    java.endorsed.dirs=C:\Program Files\Java\j2re1.4.2_04\lib\endorsed
    java.ext.dirs=C:\Program Files\Java\j2re1.4.2_04\lib\ext
    java.home=C:\Program Files\Java\j2re1.4.2_04
    java.io.tmpdir=C:\DOCUME~1\charris\LOCALS~1\Temp\
    java.library.path=C:\WINDOWS\system32;.;C:\WINDOWS\System32;C:\WINDOWS;C:\PROGRA~1\PVCS\vm\win32\bin;C:\PROGRA~1\PVCS\vm\common\bin\win32;C:\Program Files\Common Files\Software AG;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\Program Files\Attachmate\E!E2K\;C:\Magicsql\sqlany50\win;C:\Magicsql\netmap;c:\java\bin;c:\java\bin\pstools;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\packages\apache-ant-1.6.2\bin;C:\Program Files\Novell\ZENworks\;C:\packages\jwsdp-1.6\jwsdp-shared\bin;Z:.;Y:.;
    java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
    java.runtime.version=1.4.2_04-b05
    java.specification.name=Java Platform API Specification
    java.specification.vendor=Sun Microsystems Inc.
    java.specification.version=1.4
    java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory
    java.vendor=Sun Microsystems Inc.
    java.vendor.url=http://java.sun.com/
    java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
    java.version=1.4.2_04
    java.vm.info=mixed mode
    java.vm.name=Java HotSpot(TM) Client VM
    java.vm.specification.name=Java Virtual Machine Specification
    java.vm.specification.vendor=Sun Microsystems Inc.
    java.vm.specification.version=1.0
    java.vm.vendor=Sun Microsystems Inc.
    java.vm.version=1.4.2_04-b05
    line.separator=
    m7.launcher=true
    org.eclipse.jdt.debug.ui.scrapbookActive=false
    org.osgi.framework.bootdelegation=*
    org.osgi.framework.executionenvironment=J2SE-1.4
    org.osgi.framework.language=en
    org.osgi.framework.os.name=WindowsXP
    org.osgi.framework.os.version=5.1
    org.osgi.framework.processor=x86
    org.osgi.framework.system.packages=javax.accessibility,javax.crypto,javax.crypto.interfaces,javax.crypto.spec,javax.imageio,javax.imageio.event,javax.imageio.metadata,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.imageio.stream,javax.naming,javax.naming.directory,javax.naming.event,javax.naming.ldap,javax.naming.spi,javax.net,javax.net.ssl,javax.print,javax.print.attribute,javax.print.attribute.standard,javax.print.event,javax.rmi,javax.rmi.CORBA,javax.security.auth,javax.security.auth.callback,javax.security.auth.kerberos,javax.security.auth.login,javax.security.auth.spi,javax.security.auth.x500,javax.security.cert,javax.sound.midi,javax.sound.midi.spi,javax.sound.sampled,javax.sound.sampled.spi,javax.sql,javax.swing,javax.swing.border,javax.swing.colorchooser,javax.swing.event,javax.swing.filechooser,javax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.metal,javax.swing.plaf.multi,javax.swing.table,javax.swing.text,javax.swing.text.html,javax.swing.text.html.parser,javax.swing.text.rtf,javax.swing.tree,javax.swing.undo,javax.transaction,javax.transaction.xa,javax.xml.parsers,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.transform.stream,org.ietf.jgss,org.omg.CORBA,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable,org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPackage,org.omg.CORBA.portable,org.omg.CORBA.TypeCodePackage,org.omg.CosNaming,org.omg.CosNaming.NamingContextExtPackage,org.omg.CosNaming.NamingContextPackage,org.omg.Dynamic,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage,org.omg.DynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.CodecFactoryPackage,org.omg.IOP.CodecPackage,org.omg.Messaging,org.omg.PortableInterceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org.omg.PortableServer,org.omg.PortableServer.CurrentPackage,org.omg.PortableServer.POAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.PortableServer.portable,org.omg.PortableServer.ServantLocatorPackage,org.omg.SendingContext,org.omg.stub.java.rmi,org.w3c.dom,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers
    org.osgi.framework.vendor=Eclipse
    org.osgi.framework.version=1.3.0
    org.osgi.supports.framework.extension=true
    org.w3c.css.sac.parser=com.steadystate.css.parser.SACParser
    org.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl
    os.arch=x86
    os.name=Windows XP
    os.version=5.1
    osgi.arch=x86
    osgi.bundles=org.eclipse.core.runtime@2:start, org.eclipse.update.configurator@3:start
    osgi.bundlestore=c:\packages\Eclipse3.1\eclipse\configuration\org.eclipse.osgi\bundles
    osgi.configuration.area=file:/c:/packages/Eclipse3.1/eclipse/configuration/
    osgi.framework=file:/c:/packages/Eclipse3.1/eclipse/plugins/org.eclipse.osgi_3.1.1.jar
    osgi.framework.beginningstartlevel=1
    osgi.framework.shape=jar
    osgi.framework.version=3.1.1
    osgi.install.area=file:/c:/packages/Eclipse3.1/eclipse/
    osgi.instance.area=file:/C:/packages/Eclipse3.1/eclipse/workspace/
    osgi.instance.area.default=file:/C:/Documents and Settings/charris/workspace/
    osgi.logfile=C:\packages\Eclipse3.1\eclipse\workspace\.metadata\.log
    osgi.manifest.cache=c:\packages\Eclipse3.1\eclipse\configuration\org.eclipse.osgi\manifests
    osgi.nl=en_US
    osgi.os=win32
    osgi.splashLocation=C:\packages\Workshop_for_Struts_3.0_471\Workshop\splash.bmp
    osgi.splashPath=platform:/base/plugins/org.eclipse.platform
    osgi.syspath=c:\packages\Eclipse3.1\eclipse\plugins
    osgi.ws=win32
    path.separator=;
    sun.arch.data.model=32
    sun.boot.class.path=C:\Program Files\Java\j2re1.4.2_04\lib\rt.jar;C:\Program Files\Java\j2re1.4.2_04\lib\i18n.jar;C:\Program Files\Java\j2re1.4.2_04\lib\sunrsasign.jar;C:\Program Files\Java\j2re1.4.2_04\lib\jsse.jar;C:\Program Files\Java\j2re1.4.2_04\lib\jce.jar;C:\Program Files\Java\j2re1.4.2_04\lib\charsets.jar;C:\Program Files\Java\j2re1.4.2_04\classes
    sun.boot.library.path=C:\Program Files\Java\j2re1.4.2_04\bin
    sun.cpu.endian=little
    sun.cpu.isalist=pentium i486 i386
    sun.io.unicode.encoding=UnicodeLittle
    sun.java2d.fontpath=
    sun.os.patch.level=Service Pack 1
    user.country=US
    user.dir=C:\packages\Eclipse3.1\eclipse
    user.home=C:\Documents and Settings\charris
    user.language=en
    user.name=CHarris
    user.timezone=America/Los_Angeles
    user.variant=
    vendor=Apache Software Foundation
    vendor-url=http://xml.apache.org/xalan-j
    version=2.4.1
    *** Features:
    com.m7.nitrox (3.0.0) "Workshop"
    org.eclipse.emf (2.1.1) "Eclipse Modeling Framework (EMF)"
    org.eclipse.emf.doc (2.1.1) "Eclipse Modeling Framework (EMF) Programmers Guide"
    org.eclipse.emf.ecore.sdo (2.1.1) "EMF Service Data Objects (SDO)"
    org.eclipse.emf.ecore.sdo.doc (2.1.1) "EMF Service Data Objects (SDO) Programmers Guide"
    org.eclipse.emf.ecore.sdo.source (2.1.1) "EMF Service Data Objects (SDO) Source"
    org.eclipse.emf.examples (2.1.0) "Eclipse Modeling Framework (EMF) Examples"
    org.eclipse.emf.source (2.1.1) "Eclipse Modeling Framework (EMF) Source"
    org.eclipse.gef (3.1.1) "Graphical Editing Framework"
    org.eclipse.gef.examples (3.1.1) "GEF Examples"
    org.eclipse.gef.sdk (3.1.1) "Graphical Editing Framework Developer Resources"
    org.eclipse.gef.source (3.1.1) "Graphical Editing Framework Developer Resources"
    org.eclipse.jdt (3.1.1) "Eclipse Java Development Tools"
    org.eclipse.jdt.source (3.1.1) "Eclipse Java Development Tools SDK"
    org.eclipse.jem (1.1.0.1) "Java EMF Model"
    org.eclipse.jem.sdk (1.1.0.1) "Java EMF Model SDK"
    org.eclipse.jem.source (1.1.0.1) "Java EMF Model Source"
    org.eclipse.jst (0.7.1) "J2EE Standard Tools"
    org.eclipse.jst.sdk (0.7.1) "J2EE Standard Tools SDK"
    org.eclipse.pde (3.1.1) "Eclipse Plug-in Development Environment"
    org.eclipse.pde.source (3.1.1) "Eclipse Plug-in Development Environment Developer Resources"
    org.eclipse.platform (3.1.1) "Eclipse Platform"
    org.eclipse.platform.source (3.1.1) "Eclipse Platform Plug-in Developer Resources"
    org.eclipse.rcp (3.1.1) "Eclipse RCP"
    org.eclipse.rcp.source (3.1.1) "Eclipse RCP Plug-in Developer Resources"
    org.eclipse.sdk (3.1.1) "Eclipse Project SDK"
    org.eclipse.sdk.examples (3.0.1) "Eclipse SDK Examples"
    org.eclipse.team.extras (3.0.0) "Eclipse FTP and WebDAV Support"
    org.eclipse.ve (1.1.0.1) "Visual Editor"
    org.eclipse.ve.sdk (1.1.0.1) "Visual Editor SDK"
    org.eclipse.ve.source (1.1.0.1) "Visual Editor Source"
    org.eclipse.wst (0.7.1) "Web Standard Tools"
    org.eclipse.wst.sdk (0.7.1) "Web Standard Tools SDK"
    org.eclipse.xsd (2.1.1) "XML Schema Infoset Model (XSD)"
    org.eclipse.xsd.doc (2.1.1) "XML Schema Infoset Model (XSD) Programmers Guide"
    org.eclipse.xsd.source (2.1.1) "XML Schema Infoset Model (XSD) Source"
    *** Plug-in Registry:
    com.ibm.etools.emf.event (3.0.0.1) "Event Model" [Resolved]
    com.m7.nitrox (3.0.0) "Workshop" [Active]
    com.m7.nitrox.database (3.0.0) "Workshop Database" [Resolved]
    com.m7.nitrox.debugger (3.0.0) "Workshop JSP Debugger" [Resolved]
    com.m7.nitrox.eclipse3.0 (3.0.0) "Workshop Eclipse 3.0" [Resolved]
    com.m7.nitrox.ejb3 (3.0.0) "Workshop EJB3 Persistence" [Resolved]
    com.m7.nitrox.hibernate (3.0.0) "Workshop Hibernate" [Resolved]
    com.m7.nitrox.jsf (3.0.0) "Workshop JSF" [Resolved]
    com.m7.nitrox.jsp (3.0.0) "Workshop JSP" [Resolved]
    com.m7.nitrox.jstl (3.0.0) "Workshop JSTL" [Resolved]
    com.m7.nitrox.jwebapp (3.0.0) "Workshop Java Web Application" [Resolved]
    com.m7.nitrox.orm (3.0.0) "Workshop ORM" [Resolved]
    com.m7.nitrox.struts (3.0.0) "Workshop Struts" [Resolved]
    org.apache.ant (1.6.5) "Apache Ant" [Active]
    org.apache.axis (1.2.1) "Axis121 Plug-in" [Resolved]
    org.apache.lucene (1.4.3) "Apache Lucene" [Resolved]
    org.apache.wsil4j (1.0.0) "Apache WSIL4J 1.0" [Resolved]
    org.apache.xerces (2.7.0) "Xerces 2.7.0" [Resolved]
    org.eclipse.ant.core (3.1.1) "Ant Build Tool Core" [Resolved]
    org.eclipse.ant.ui (3.1.1) "Ant UI" [Active]
    org.eclipse.compare (3.1.1) "Compare Support" [Resolved]
    org.eclipse.compare.examples (3.0.0) "Compare Example" [Resolved]
    org.eclipse.compare.examples.xml (3.0.0) "XML Compare Support" [Resolved]
    org.eclipse.core.boot (3.1.0) "Core Boot" [Resolved]
    org.eclipse.core.commands (3.1.0) "Commands" [Active]
    org.eclipse.core.expressions (3.1.0) "Expression Language" [Active]
    org.eclipse.core.filebuffers (3.1.0) "File Buffers" [Active]
    org.eclipse.core.resources (3.1.0) "Core Resource Management" [Active]
    org.eclipse.core.resources.compatibility (3.1.0) "Core Resource Management Compatibility Fragment" [Resolved]
    org.eclipse.core.resources.win32 (3.1.0) "Core Resource Management Win32 Fragment" [Resolved]
    org.eclipse.core.runtime (3.1.1) "Core Runtime" [Active]
    org.eclipse.core.runtime.compatibility (3.1.0) "Core Runtime Plug-in Compatibility" [Active]
    org.eclipse.core.variables (3.1.0) "Core Variables" [Resolved]
    org.eclipse.debug.core (3.1.0) "Debug Core" [Active]
    org.eclipse.debug.ui (3.1.1) "Debug UI" [Active]
    org.eclipse.draw2d (3.1.1) "Draw2d" [Resolved]
    org.eclipse.draw2d.doc.isv (3.1.1) "Draw2D Documentation" [Resolved]
    org.eclipse.emf (2.1.1) "Eclipse Modeling Framework (EMF)" [Resolved]
    org.eclipse.emf.activities (2.1.0) "EMF Activities" [Resolved]
    org.eclipse.emf.ant (2.1.0) "EMF Ant Tasks" [Resolved]
    org.eclipse.emf.codegen (2.1.0) "EMF Template Code Generator" [Resolved]
    org.eclipse.emf.codegen.ecore (2.1.0) "EMF Ecore Code Generation" [Resolved]
    org.eclipse.emf.codegen.ecore.ui (2.1.0) "EMF Ecore Code Generation UI" [Resolved]
    org.eclipse.emf.codegen.ui (2.1.0) "EMF Template Code Generator UI" [Resolved]
    org.eclipse.emf.common (2.1.0) "EMF Common" [Active]
    org.eclipse.emf.common.ui (2.1.0) "EMF Common UI" [Resolved]
    org.eclipse.emf.commonj.sdo (2.1.0) "CommonJ SDO" [Resolved]
    org.eclipse.emf.doc (2.1.1) "Eclipse Modeling Framework (EMF) Programmers Guide" [Resolved]
    org.eclipse.emf.ecore (2.1.0) "EMF Ecore" [Active]
    org.eclipse.emf.ecore.change (2.1.0) "EMF Ecore Change Model" [Resolved]
    org.eclipse.emf.ecore.change.edit (2.1.0) "EMF Ecore Change Edit Support" [Resolved]
    org.eclipse.emf.ecore.edit (2.1.1) "EMF Ecore Edit Support" [Resolved]
    org.eclipse.emf.ecore.editor (2.1.0) "Sample Ecore Editor" [Resolved]
    org.eclipse.emf.ecore.sdo (2.1.1) "EMF Service Data Objects (SDO)" [Resolved]
    org.eclipse.emf.ecore.sdo.doc (2.1.1) "EMF Service Data Objects (SDO) Programmers Guide" [Resolved]
    org.eclipse.emf.ecore.sdo.edit (2.1.0) "EMF Service Data Objects (SDO) Edit Support" [Resolved]
    org.eclipse.emf.ecore.sdo.editor (2.1.0) "EMF Service Data Objects (SDO) Editor" [Resolved]
    org.eclipse.emf.ecore.sdo.source (2.1.1) "EMF Service Data Objects (SDO) Source" [Resolved]
    org.eclipse.emf.ecore.xmi (2.1.0) "EMF XMI" [Active]
    org.eclipse.emf.edit (2.1.1) "EMF Edit" [Resolved]
    org.eclipse.emf.edit.ui (2.1.0) "EMF Edit UI" [Resolved]
    org.eclipse.emf.examples (2.1.0) "Eclipse Modeling Framework (EMF) Examples" [Resolved]
    org.eclipse.emf.importer (2.1.0) "EMF Model Import Support" [Resolved]
    org.eclipse.emf.importer.ecore (2.1.0) "EMF Ecore Importer" [Resolved]
    org.eclipse.emf.importer.java (2.1.1) "EMF Annotated Java Importer" [Resolved]
    org.eclipse.emf.importer.rose (2.1.1) "EMF Rose Importer" [Resolved]
    org.eclipse.emf.java (2.1.0) "EMF Java" [Resolved]
    org.eclipse.emf.java.edit (2.1.0) "EMF Java Edit" [Resolved]
    org.eclipse.emf.java.editor (2.1.0) "EMF Java Editor" [Resolved]
    org.eclipse.emf.mapping (2.1.0) "EMF Mapping" [Resolved]
    org.eclipse.emf.mapping.ecore2ecore (2.1.0) "Ecore to Ecore Mapping" [Resolved]
    org.eclipse.emf.mapping.ecore2ecore.editor (2.1.0) "Ecore to Ecore Mapping Editor" [Resolved]
    org.eclipse.emf.mapping.ecore2xml (2.1.0) "Ecore to XML Mapping" [Resolved]
    org.eclipse.emf.mapping.ecore2xml.ui (2.1.1) "Ecore to XML Mapping UI" [Resolved]
    org.eclipse.emf.mapping.ui (2.1.0) "EMF Mapping UI" [Resolved]
    org.eclipse.emf.mapping.xsd2ecore (2.1.0) "XSD to Ecore Mapping" [Resolved]
    org.eclipse.emf.mapping.xsd2ecore.editor (2.1.0) "XSD to Ecore Mapping Editor" [Resolved]
    org.eclipse.emf.source (2.1.1) "Eclipse Modeling Framework (EMF) Source" [Resolved]
    org.eclipse.gef (3.1.1) "Graphical Editing Framework" [Resolved]
    org.eclipse.gef.doc.isv (3.1.1) "Graphical Editing Framework Documentation" [Resolved]
    org.eclipse.gef.examples.flow (3.1.1) "GEF Flow Editor Example" [Resolved]
    org.eclipse.gef.examples.logic (3.1.1) "GEF Logic Editor Example" [Resolved]
    org.eclipse.gef.examples.shapes (3.1.1) "GEF Shape Editor Example" [Resolved]
    org.eclipse.gef.examples.source (3.1.1) "GEF Examples" [Resolved]
    org.eclipse.gef.examples.text (3.1.1) "GEF Text Editor Example" [Resolved]
    org.eclipse.gef.source (3.1.1) "Graphical Editing Framework Developer Resources" [Resolved]
    org.eclipse.help (3.1.0) "Help System Core" [Active]
    org.eclipse.help.appserver (3.1.0) "Help Application Server" [Resolved]
    org.eclipse.help.base (3.1.0) "Help System Base" [Resolved]
    org.eclipse.help.examples.ex1 (3.0.0) "Online Help Sample" [Resolved]
    org.eclipse.help.ui (3.1.1) "Help System UI" [Resolved]
    org.eclipse.help.webapp (3.1.0) "Help System Webapp" [Resolved]
    org.eclipse.jdt (3.1.0) "Eclipse Java Development Tools" [Resolved]
    org.eclipse.jdt.core (3.1.1) "Java Development Tools Core" [Active]
    org.eclipse.jdt.debug (3.1.1) "JDI Debug Model" [Active]
    org.eclipse.jdt.debug.ui (3.1.1) "JDI Debug UI" [Active]
    org.eclipse.jdt.doc.isv (3.1.1) "Eclipse JDT Plug-in Developer Guide" [Resolved]
    org.eclipse.jdt.doc.user (3.1.1) "Eclipse Java Development User Guide" [Resolved]
    org.eclipse.jdt.junit (3.1.1) "Java Development Tools JUnit support" [Resolved]
    org.eclipse.jdt.junit.runtime (3.1.0) "Java Development Tools JUnit runtime support" [Resolved]
    org.eclipse.jdt.launching (3.1.0) "Java Development Tools Launching Support" [Active]
    org.eclipse.jdt.source (3.1.1) "Eclipse Java Development Tools SDK" [Resolved]
    org.eclipse.jdt.ui (3.1.1) "Java Development Tools UI" [Active]
    org.eclipse.jdt.ui.examples.projects (3.0.1) "Java Development Tools Example Projects" [Resolved]
    org.eclipse.jem (1.1.0.1) "Java EMF Model" [Resolved]
    org.eclipse.jem.beaninfo (1.1.0.1) "Java EMF Model BeanInfo (Introspection) Support" [Resolved]
    org.eclipse.jem.proxy (1.1.0.1) "Java EMF Model Proxy Support" [Resolved]
    org.eclipse.jem.sdk (1.1.0) "Java EMF Model SDK" [Resolved]
    org.eclipse.jem.source (1.1.0.1) "Java EMF Model Source" [Resolved]
    org.eclipse.jem.ui (1.1.0.1) "Java EMF Model UI" [Resolved]
    org.eclipse.jem.util (1.1.0) "Java EMF Model Utilities" [Installed]
    org.eclipse.jem.util (1.1.0.1) "Java EMF Model Utilities" [Active]
    org.eclipse.jem.workbench (1.1.0.1) "Java EMF Model Workbench Support" [Resolved]
    org.eclipse.jface (3.1.1) "JFace" [Active]
    org.eclipse.jface.text (3.1.1) "JFace Text" [Active]
    org.eclipse.jst (0.7.0) "J2EE Standard Tools" [Resolved]
    org.eclipse.jst.common.annotations.controller (0.7.1) "Annotation Controller Plug-in" [Resolved]
    org.eclipse.jst.common.annotations.core (0.7.0) "Annotation Core Plug-in" [Resolved]
    org.eclipse.jst.common.annotations.ui (0.7.0) "Ui Plug-in" [Resolved]
    org.eclipse.jst.common.frameworks (0.7.0) "Integration Plug-in" [Resolved]
    org.eclipse.jst.common.navigator.java (0.7.1) "Navigator Plug-in" [Resolved]
    org.eclipse.jst.ejb.ui (0.7.0) "WTP EJB UI Plug-in" [Resolved]
    org.eclipse.jst.j2ee (0.7.1) "J2EE Component" [Resolved]
    org.eclipse.jst.j2ee.core (0.7.1) "J2EE Core Component" [Resolved]
    org.eclipse.jst.j2ee.ejb (0.7.0) "EJB component Plug-in" [Resolved]
    org.eclipse.jst.j2ee.ejb.annotation.model (0.7.0) "EJB Annotation Model Plug-in" [Resolved]
    org.eclipse.jst.j2ee.ejb.annotations.emitter (0.7.0) "EJB Emitter Plug-in" [Resolved]
    org.eclipse.jst.j2ee.ejb.annotations.ui (0.7.1) "EJB Annotations Ui Plug-in" [Resolved]
    org.eclipse.jst.j2ee.ejb.annotations.xdoclet (0.7.1) "Xdoclet Annotations Plug-in" [Resolved]
    org.eclipse.jst.j2ee.jca (0.7.0) "JCA Plug-in" [Resolved]
    org.eclipse.jst.j2ee.jca.ui (0.7.0) "WTP JCA UI Plug-in" [Resolved]
    org.eclipse.jst.j2ee.navigator.ui (0.7.0) "J2EE Extensions to Common Navigator" [Resolved]
    org.eclipse.jst.j2ee.ui (0.7.1) "WTP J2EE UI Plug-in" [Resolved]
    org.eclipse.jst.j2ee.web (0.7.1) "Web Plug-in" [Resolved]
    org.eclipse.jst.j2ee.webservice (0.7.0) "Web Service Plug-in" [Resolved]
    org.eclipse.jst.j2ee.webservices.ui (0.7.0) "WTP Webservice UI Plug-in" [Resolved]
    org.eclipse.jst.jsp.core (0.7.0) "Structured Source JSP Model" [Installed]
    org.eclipse.jst.jsp.core (0.7.1) "Structured Source JSP Model" [Active]
    org.eclipse.jst.jsp.ui (0.7.0) "SSE JSP Source Editor" [Installed]
    org.eclipse.jst.jsp.ui (0.7.1) "SSE JSP Source Editor" [Active]
    org.eclipse.jst.server.core (0.7.0) "Java Server Support" [Resolved]
    org.eclipse.jst.server.generic.core (0.7.0) "Generic Server Plugin" [Resolved]
    org.eclipse.jst.server.generic.serverdefinitions (0.7.0) "Generic server example definitions" [Resolved]
    org.eclipse.jst.server.generic.ui (0.7.0) "Generic Server Plugin UI" [Resolved]
    org.eclipse.jst.server.geronimo.core (0.7.0) "Geronimo server support" [Resolved]
    org.eclipse.jst.server.geronimo.ui (0.7.0) "Geronimo server UI support" [Resolved]
    org.eclipse.jst.server.tomcat.core (0.7.0) "Apache Tomcat Support" [Resolved]
    org.eclipse.jst.server.tomcat.ui (0.7.0) "Apache Tomcat UI Support" [Resolved]
    org.eclipse.jst.server.ui (0.7.0) "Java Server UI Support" [Resolved]
    org.eclipse.jst.server.websphere.core (0.7.0) "WebSphere Generic Server Definition Core Plug-in" [Resolved]
    org.eclipse.jst.servlet.ui (0.7.1) "WTP Servlet UI Plug-in" [Resolved]
    org.eclipse.jst.source (0.7.1) "J2EE Standard Tools SDK" [Resolved]
    org.eclipse.jst.ws (0.7.1) "Web Services" [Resolved]
    org.eclipse.jst.ws.axis.consumption.core (0.7.0) "Web service Axis Consumption Core" [Resolved]
    org.eclipse.jst.ws.axis.consumption.ui (0.7.1) "Webservice Axis Consumption UI" [Resolved]
    org.eclipse.jst.ws.axis.creation.ui (0.7.0) "Webservice Axis Creation UI" [Resolved]
    org.eclipse.jst.ws.consumption (0.7.0) "Web Services Consumption" [Resolved]
    org.eclipse.jst.ws.consumption.ui (0.7.1) "Web Services Consumption Graphical User Interface" [Resolved]
    org.eclipse.jst.ws.creation.ejb.ui (0.7.0) "Web Services Creation EJB Graphical User Interface" [Resolved]
    org.eclipse.jst.ws.creation.ui (0.7.1) "Web Services Creation Graphical User Interface" [Resolved]
    org.eclipse.jst.ws.uddiregistry (0.7.0) "Web Services Universal Description Discovery and Integration Registry" [Resolved]
    org.eclipse.jst.ws.ui (0.7.1) "Web Services Graphical User Interface" [Resolved]
    org.eclipse.ltk.core.refactoring (3.1.0) "Refactoring Core" [Active]
    org.eclipse.ltk.ui.refactoring (3.1.1) "Refactoring UI" [Active]
    org.eclipse.osgi.services (3.1.1) "OSGi Release 3 Services" [Resolved]
    org.eclipse.osgi.util (3.1.1) "OSGi R3 Utility Classes" [Resolved]
    org.eclipse.pde (3.1.0) "Eclipse Plug-in Development Environment" [Resolved]
    org.eclipse.pde.build (3.1.0) "Plug-in Development Environment Build Support" [Resolved]
    org.eclipse.pde.core (3.1.1) "Plug-in Development Core" [Resolved]
    org.eclipse.pde.doc.user (3.1.1) "Eclipse Plug-in Development User Guide" [Resolved]
    org.eclipse.pde.junit.runtime (3.1.0) "PDE JUnit Plug-in Test" [Resolved]
    org.eclipse.pde.runtime (3.1.1) "Plug-in Development Environment Runtime" [Resolved]
    org.eclipse.pde.source (3.1.1) "Eclipse Plug-in Development Environment Developer Resources" [Resolved]
    org.eclipse.pde.ui (3.1.1) "Plug-in Development UI" [Resolved]
    org.eclipse.platform (3.1.1) "Eclipse Platform" [Resolved]
    org.eclipse.platform.doc.isv (3.1.1) "Eclipse Platform Plug-in Developer Guide" [Resolved]
    org.eclipse.platform.doc.user (3.1.1) "Eclipse Workbench User Guide" [Resolved]
    org.eclipse.platform.source (3.1.1) "Eclipse Platform Plug-in Developer Resources" [Resolved]
    org.eclipse.platform.so

    What kind of projects are they (Struts/JSF/Hibernate)? Does the working project differ in any way with other two apps?
    What exactly is not working? Are they recognized by workshop as Struts/JSF/Hibernate app?
    Please send the .log to [email protected]

  • EditCellAt() with mouseclick is not working for first row of the jtable

    Hi All,
    I have extended JTable.changeSelection() & editCellAt() methods to force the text to select when focus is brought to the cell.
    I have a page which has both editable and non-editable columns. when I do a mouse click on FIRST ROW of the editable cell and type the value, The value is not displayed in the cell. when I click on any other editable field in the page, The typed value is displayed in the cell. In the first row of the cell, only the first attempt is not working. When I remove the editCellAt() call in changeSelection(), it works as expected.
    But, If I reach the FIRST ROW editable cell using TAB key instead of Mouse click and type the value, its working fine.
    Kindly suggest me what could be the problem in my code. I think something wrong in editcellat() or mouseclicked/released or focusgained in our versions of JTable or jtextfield.
    Kindly let me know if you need any more functions of my version of implementation.
    Thanks In advance.
    My JTable Version of editCellAt:
         public boolean editCellAt(int row, int column, EventObject e) {
              try {
                   if (getCellEditor() != null && !getCellEditor().stopCellEditing()) {
                        return false;
                   if (!isCellEditable(row, column)) {
                        return false;
                   if (isShowStarRow() /*&& !starRowAdded*/) {
                        VSDataControl ds = getDataSource();
                        if (ds != null) {
                             VSResultSet rs = ds.getResultSet();
                             if (rs != null) {
                                  if (row == rs.getRowCount()) { // This is the star row
                                       // Go to the last record
                                       if (row > 0) {
                                            try {
                                                 rs.getRowAt(row + 1, true);
                                                 rs.last();
                                            } catch (Exception ex) {
                                                 return false;
                                       if (ds.insert() == null) {
                                            return false;
                                       currentRow = row + 1;
                                       starRowAdded = true;
                   TableCellEditor editor = getCellEditor(row, column);
                   if (editor != null && editor.isCellEditable(e)) {
                        editorComp = prepareEditor(editor, row, column);
                        if ( editorComp instanceof VSGridChoice && lastKeyEvent != null ) {
                             VSGridChoice choice = (VSGridChoice) editorComp;
                             choice.handleMissingCharEvent( lastKeyEvent );
                        if (editorComp instanceof VSChoiceBase && lastKeyEvent != null ) {
                             VSChoiceBase hack = (VSChoiceBase)editorComp;
                             hack.addMissingChar(lastKeyEvent);
                        lastKeyEvent = null;
                        if (editorComp == null) {
                             removeEditor();
                             return false;
                        editorComp.setBounds(getCellRect(row, column, false));
                        add(editorComp);
                        editorComp.validate();
                        editorComp.requestFocus();
                        setCellEditor(editor);
                        setEditingRow(row);
                        setEditingColumn(column);
                        editor.addCellEditorListener(this);
                        return true;
                   return false;
              } catch (Exception ex) {
                   showValidationError(e, ex);
                   return false;
         public void changeSelection(int rowIndex, int columnIndex, boolean toggle, boolean extend)
              super.changeSelection(rowIndex, columnIndex, toggle, extend);
                    editCellAt(rowIndex, columnIndex);
                           if (getEditorComponent() != null)
                   if (getEditorComponent() instanceof CustomJTextField)
                        ((CustomJTextField)getEditorComponent()).selectAll();
          }

    i will suggest you to override your requetFocus()
    like.
    public void requestFocus()
            super.requestFocus(); // may be panel or container.
            textPane.setSelectionStart(0); // textpane is the editor for the cell.
            textPane.setSelectionEnd(textPane.getText().length());
        } Gud luck.

  • KeyListener on combobox calander not working?

    Am trying to add keylistener on this combobox calander, but somehow its not working right. The calendar is added to a JTable and the keyListener on it works, when i gets focus, but when the popup is visible it looses the keylistener? Can someone help me with this?
    import com.sun.java.swing.plaf.motif.*;
    import com.sun.java.swing.plaf.windows.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.text.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.event.*;
    import javax.swing.plaf.*;
    import javax.swing.plaf.basic.*;
    import javax.swing.plaf.metal.*;
    import javax.swing.table.*;
    public class DateComboBox extends JComboBox
        public DateComboBox()
        public DateComboBox(int raekke,DefaultTableModel model,JTable tabel)
            this.raekke=raekke;
            this.model=model;
            this.tabel=tabel;
        public void setDateFormat(SimpleDateFormat dateFormat)
            this.dateFormat = dateFormat;
        public void setSelectedItem(Object item)
            // Could put extra logic here or in renderer when item is instanceof Date, Calendar, or String
            // Dont keep a list ... just the currently selected item
            removeAllItems(); // hides the popup if visible
            addItem(item);
            super.setSelectedItem(item);
        public void setText(String texte)
            setSelectedItem(texte);
        public String getText()
            return (String)this.getSelectedItem();
        public void setRaekke(int raekke)
            this.raekke=raekke;
        public void updateUI()
            ComboBoxUI cui = (ComboBoxUI) UIManager.getUI(this);
            if (cui instanceof MetalComboBoxUI)
                cui = new MetalDateComboBoxUI();
            } else if (cui instanceof MotifComboBoxUI)
                cui = new MotifDateComboBoxUI();
            } else if (cui instanceof WindowsComboBoxUI)
                cui = new WindowsDateComboBoxUI();
            setUI(cui);
        // Inner classes are used purely to keep DateComboBox component in one file
        // UI Inner classes -- one for each supported Look and Feel
        class MetalDateComboBoxUI extends MetalComboBoxUI
            protected ComboPopup createPopup()
                return new DatePopup( comboBox );
        class WindowsDateComboBoxUI extends WindowsComboBoxUI
            protected ComboPopup createPopup()
                return new DatePopup( comboBox );
        class MotifDateComboBoxUI extends MotifComboBoxUI
            protected ComboPopup createPopup()
                return new DatePopup( comboBox );
        // DatePopup inner class
        class DatePopup implements
        ComboPopup,
        MouseMotionListener,
        MouseListener,
        KeyListener,
        PopupMenuListener
            public DatePopup(JComboBox comboBox)
                this.comboBox = comboBox;
                setFocusable(true);
                addKeyListener(this);
                calendar = Calendar.getInstance();
                // check Look and Feel
                background = UIManager.getColor("ComboBox.background");
                foreground = UIManager.getColor("ComboBox.foreground");
                selectedBackground = UIManager.getColor("ComboBox.selectionBackground");
                selectedForeground = UIManager.getColor("ComboBox.selectionForeground");
                initializePopup();
            //========================================
            // begin ComboPopup method implementations
            public void show()
                try
                    // if setSelectedItem() was called with a valid date, adjust the calendar
                    calendar.setTime( dateFormat.parse( comboBox.getSelectedItem().toString() ) );
                } catch (Exception e)
                {e.printStackTrace();}
                updatePopup();
                popup.show(comboBox, 0, comboBox.getHeight());
            public void hide()
                popup.setVisible(false);
            protected JList list = new JList();
            public JList getList()
                return list;
            public MouseListener getMouseListener()
                return this;
            public MouseMotionListener getMouseMotionListener()
                return this;
            public KeyListener getKeyListener()
                return null;
            public boolean isVisible()
                return popup.isVisible();
            public void uninstallingUI()
                popup.removePopupMenuListener(this);
            // end ComboPopup method implementations
            //======================================
            //===================================================================
            // begin Event Listeners
            // MouseListener
            public void mousePressed( MouseEvent e )
            // something else registered for MousePressed
            public void mouseClicked(MouseEvent e)
            public void mouseReleased( MouseEvent e )
                if (!SwingUtilities.isLeftMouseButton(e))
                    return;
                if (!comboBox.isEnabled())
                    return;
                if (comboBox.isEditable())
                    comboBox.getEditor().getEditorComponent().requestFocus();
                else
                    comboBox.requestFocus();
                togglePopup();
            protected boolean mouseInside = false;
            public void mouseEntered(MouseEvent e)
                mouseInside = true;
            public void mouseExited(MouseEvent e)
                mouseInside = false;
            // MouseMotionListener
            public void mouseDragged(MouseEvent e)
            public void mouseMoved(MouseEvent e)
            public void keyPressed(KeyEvent e)
                if(e.getSource()==this)
                    if(e.getKeyCode()==KeyEvent.VK_CONTROL)
                        System.out.println("keytyped1");
            public void keyTyped(KeyEvent e)
            public void keyReleased( KeyEvent e )
                if(e.getKeyCode()==KeyEvent.VK_CONTROL)
                    System.out.println("keytyped2");
                if ( e.getKeyCode() == KeyEvent.VK_SPACE || e.getKeyCode() == KeyEvent.VK_ENTER )
                    togglePopup();
             * Variables hideNext and mouseInside are used to
             * hide the popupMenu by clicking the mouse in the JComboBox
            public void popupMenuCanceled(PopupMenuEvent e)
            protected boolean hideNext = false;
            public void popupMenuWillBecomeInvisible(PopupMenuEvent e)
                hideNext = mouseInside;
            public void popupMenuWillBecomeVisible(PopupMenuEvent e)
            // end Event Listeners
            //=================================================================
            //===================================================================
            // begin Utility methods
            protected void togglePopup()
                if( isVisible() || hideNext)
                    hide();
                else
                    show();
                hideNext = false;
            // end Utility methods
            //=================================================================
            // Note *** did not use JButton because Popup closes when pressed
            protected JLabel createUpdateButton(final int field, final int amount)
                final JLabel label = new JLabel();
                final Border selectedBorder = new EtchedBorder();
                final Border unselectedBorder = new EmptyBorder(selectedBorder.getBorderInsets(new JLabel()));
                label.setBorder(unselectedBorder);
                label.setForeground(foreground);
                label.addMouseListener(new MouseAdapter()
                    public void mouseReleased(MouseEvent e)
                        calendar.add(field, amount);
                        updatePopup();
                    public void mouseEntered(MouseEvent e)
                        label.setBorder(selectedBorder);
                    public void mouseExited(MouseEvent e)
                        label.setBorder(unselectedBorder);
                return label;
            protected void initializePopup()
                JPanel header = new JPanel();
                header.setLayout(new BoxLayout(header, BoxLayout.X_AXIS));
                header.setBackground(background);
                header.setOpaque(true);
                JLabel label;
                label = createUpdateButton(Calendar.YEAR, -1);
                label.setText("<<");
                label.setToolTipText("Sidste �r");
                header.add(Box.createHorizontalStrut(12));
                header.add(label);
                header.add(Box.createHorizontalStrut(12));
                label = createUpdateButton(Calendar.MONTH, -1);
                label.setText("< ");
                label.setToolTipText("Sidste m�ned");
                header.add(label);
                monthLabel = new JLabel("", JLabel.CENTER);
                monthLabel.setForeground(foreground);
                header.add(Box.createHorizontalGlue());
                header.add(monthLabel);
                header.add(Box.createHorizontalGlue());
                label = createUpdateButton(Calendar.MONTH, 1);
                label.setText(" >");
                label.setToolTipText("N�ste m�ned");
                header.add(label);
                label = createUpdateButton(Calendar.YEAR, 1);
                label.setText(">>");
                label.setToolTipText("N�ste �r");
                header.add(Box.createHorizontalStrut(12));
                header.add(label);
                header.add(Box.createHorizontalStrut(12));
                popup = new JPopupMenu();
                popup.setBorder(BorderFactory.createLineBorder(Color.black));
                popup.setLayout(new BorderLayout());
                popup.setBackground(background);
                popup.addPopupMenuListener(this);
                popup.add(BorderLayout.NORTH, header);
                popup.getAccessibleContext().setAccessibleParent(comboBox);
            // update the Popup when either the month or the year of the calendar has been changed
            protected void updatePopup()
                monthLabel.setText( monthFormat.format(calendar.getTime()) );
                if (days != null)
                    popup.remove(days);
                days = new JPanel(new GridLayout(0, 7));
                days.setBackground(background);
                days.setOpaque(true);
                Calendar setupCalendar = (Calendar) calendar.clone();
                setupCalendar.set(Calendar.DAY_OF_WEEK, setupCalendar.getFirstDayOfWeek());
                for (int i = 0; i < 7; i++)
                    int dayInt = setupCalendar.get(Calendar.DAY_OF_WEEK);
                    JLabel label = new JLabel();
                    label.setHorizontalAlignment(JLabel.CENTER);
                    label.setForeground(foreground);
                    if (dayInt == Calendar.SUNDAY)
                        label.setText("s�n");
                    else if (dayInt == Calendar.MONDAY)
                        label.setText("man");
                    else if (dayInt == Calendar.TUESDAY)
                        label.setText("tir");
                    else if (dayInt == Calendar.WEDNESDAY)
                        label.setText("ons");
                    else if (dayInt == Calendar.THURSDAY)
                        label.setText("tor");
                    else if (dayInt == Calendar.FRIDAY)
                        label.setText("fre");
                    else if (dayInt == Calendar.SATURDAY)
                        label.setText("l�r");
                    //                days.add(label);
                    setupCalendar.roll(Calendar.DAY_OF_WEEK, true);
                setupCalendar = (Calendar) calendar.clone();
                setupCalendar.set(Calendar.DAY_OF_MONTH, 1);
                int first = setupCalendar.get(Calendar.DAY_OF_WEEK);
                for (int i = 0; i < (first-2) ; i++)
                    days.add(new JLabel(""));
                for (int i = 1; i <= setupCalendar.getActualMaximum(Calendar.DAY_OF_MONTH); i++)
                    final int day = i;
                    final JLabel label = new JLabel(String.valueOf(day));
                    label.setHorizontalAlignment(JLabel.CENTER);
                    label.setForeground(foreground);
                    label.addMouseListener(new MouseAdapter()
                        public void mouseReleased(MouseEvent e)
                            label.setOpaque(false);
                            label.setBackground(background);
                            label.setForeground(foreground);
                            calendar.set(Calendar.DAY_OF_MONTH, day);
                            hide();
                            comboBox.requestFocus();
                            if (tabel.isEditing())
                                tabel.getCellEditor(tabel.getEditingRow(),
                                tabel.getEditingColumn()).stopCellEditing();
                            model.setValueAt(dateFormat.format(calendar.getTime()),raekke,1);
                            tabel.requestFocus();
                        public void mouseEntered(MouseEvent e)
                            label.setOpaque(true);
                            label.setBackground(selectedBackground);
                            label.setForeground(selectedForeground);
                        public void mouseExited(MouseEvent e)
                            label.setOpaque(false);
                            label.setBackground(background);
                            label.setForeground(foreground);
                    days.add(label);
                popup.add(BorderLayout.CENTER, days);
                popup.pack();
            private JComboBox comboBox;
            private Calendar calendar;
            private JPopupMenu popup;
            private JLabel monthLabel;
            private JPanel days = null;
            private SimpleDateFormat monthFormat = new SimpleDateFormat("MMM yyyy");
            //        private int antaldage=1;
            private Color selectedBackground;
            private Color selectedForeground;
            private Color background;
            private Color foreground;
        private SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy");
        private int raekke=-1;
        private DefaultTableModel model;
        private JTable tabel;
    }

    come on help plz....

  • JTextField.select(int, int) not working in modal JDialog

    Hi
    I have discovered something peculiar. When I have a JDialog, and it is modal, then the select method of any JTextfield will surely fail. (Only tested on win32)
    What the owner is does not matter (even null will give the same result). I made a JFrame for your convenience.
    import javax.swing.*;
    public class MyDialog extends JDialog
         private JTextField     tf     = new JTextField("not selected >selected< not selected");
         public static void main(String[] args)
              JFrame f = new JFrame("Some parent frame");
              f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              f.setVisible(true);
              new MyDialog(f);
         public MyDialog(JFrame parent)
              super(parent, "Child dialog", /*Selecct modality*/ true);
              // super();
              super.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
              super.add(this.tf);
              super.pack();
              super.setLocation(0, 50);
              super.setVisible(true);
              // Selection does not work when dialog is modal.
              this.tf.select(14, 22);
              this.tf.requestFocus();
    }I did not find a bug in the database concerning this.
    Did I do something wrong, or should I post this as a bug?

    1) Please do not dredge posts that are months or years old. If you have something important to say, create your own thread.
    2) If you have the same problem, then use the same solution.
    3) If this doesn't work, then show your problem: show your code. We don't want to see all of it, but rather you should condense your code into the smallest bit that still compiles, has no extra code that's not relevant to your problem, but still demonstrates your problem, in other words, an SSCCE (Short, Self Contained, Correct (Compilable), Example). For more info on SSCCEs please look here:
    http://homepage1.nifty.com/algafield/sscce.html
    Also, when posting your code, please use code tags so that your code will be well-formatted and readable. To do this, either use the "code" button at the top of the forum Message editor or place the tag &#91;code&#93; at the top of your block of code and the tag &#91;/code&#93; at the bottom, like so:
    &#91;code&#93;
      // your code block goes here.
    &#91;/code&#93;

  • Not work tablet UI on Prestigio 5080 PRO tablet

    I read that browser.ui.layout.tablet = "1" can fix this problem. But it not works. I can work only in pnone interface that is not good for my 8'' tablet.

    Would it be possible for you to share the problematic pdf and OS information  with us at [email protected] so that we may investigate?
    Thanks,
    Adobe Reader Team

  • Why self-defined access sequences of free goods can not work?

    Hi gurus,
    I have maintained access sequences of free goods self-defined.but when i creat the SO it does not work!
    when i used the standard access sequences ,it is OK .
    Can anybody tell me why?
    thanks in advance

    Dear Sandy,
    Go to V/N1 transaction select your self defined access sequence then go in to the accesses and fields and check all fields are activated.
    Make sure that these fields are flowing in your sales order.
    I hope this will help you,
    Regards,
    Murali.

  • Adobe bridge raw not working with windows vista in photoshop cc, why?

    adobe bridge raw not working in photoshop cc, is there a fix?

    Your sure your using photoshop cc on windows vista?
    I was under the impression that photoshop cc would not even install on windows vista.
    What version of camera raw do you have?
    In photoshop under Help>About Plugin does it list Camera Raw and if so which version is it?
    (click on the words Camera Raw to see the version)
    Camera raw doesn't work if it's a camera raw file or some other file type such as jpeg or tif?
    What camera are the camera raw files from?
    Officially camera raw 8.3 is the latest version of camera raw that will work on windows vista.

  • Adobe Bridge CS5 in windows 7 not working?

    Adobe Bridge CS5 in windows 7 not working. I was using bridge perfectly for last 2 years. It stops working since 3 days. I tried to install updates. Showing some error to install.
    Tried to install creative cloud..again some error. Error code : 82
    Could you please advice how I can fix my adobe bridge.

    https://www.youtube.com/watch?v=xDYpTOoV81Q&feature=youtu.be
    please check this video I uploaded..this is what happens when I click adobe bridge.. just blinks and go off. bridge not working on task manager

  • ADOBE CLOUD ON MY DESKTOP WILL NOT WORK. IT LOADS UP BUT NOTHING FILLS THE WINDOW

    ADOBE CLOUD ON MY DESKTOP WILL NOT WORK. IT LOADS UP BUT NOTHING FILLS THE WINDOW

    BLANK Cloud Screen http://forums.adobe.com/message/5484303 may help
    -and step by step http://forums.adobe.com/thread/1440508?tstart=0
    -and http://helpx.adobe.com/creative-cloud/kb/blank-white-screen-ccp.html

  • Partner application logoff not working

    We have a partner application registered with sso with custom login screen. The login works fine. We use the following code to logoff the partner application in logoff.jsp
    response.setHeader("Osso-Return-Url", "http://my.oracle.com" );
    response.sendError(470, "Oracle SSO");
    session.invalidate();
    but the logoff is not working properly. It is not invalidating the session and the logout http request is not going from the application server to the sso server.
    Are there any additional configurations for SSO logoff.Any help is appreciated.
    Thanks

    Hi
    The WF should also trigger if i add the Partner function in UI.If i change any Attribute the WF triggers but i dont want to change the attribute when i add the partner function.
    If i have only one event for WF that is Partner Change the WF will not trigger it for the 1st time when i save the UI. But next i come to the same saved doc and add a partner function then the Wf triggers.
    So this means that Partner change is active.
    the issue here is i need to trigger the WF on , the 1st time i save the UI, for which i wil be using Attribute Change and next time when i come back to saved doc the and add only the partner function and no changes are made to attributes the WF should again trigger.
    Thanks
    Tarmeem

  • IPhone 4 Voice Memos not working/saving

    Hi there,
    I'm having trouble with my voice memos too. Up until yesterday they were working fine and now, even though the record button works, the stop button does not and I can only pause them. Worse again is that the button to go into the menu to view all voice memos is not working so I can't play them from my iPhone and nothing new is saving to my iTunes. Please help!

    I've always had the "Include Voice Memos" option selected. I think that only pertains to syncing voice memos from iTunes to the iPhone after it has been copied to iTunes. It has to be the new OS/iTunes not communicating that new memos have been recorded. For some reason they won't sync when I want them to, and then a few syncs later they magically appear.
    By the way, I'm VERY comfortable with the iTunes and iPhone systems. I've been using iTunes for 5 years, and I've been recording class lectures with the iPhone voice memo app (and another app) for a couple years. It's not an error of not seeing that the memos were added; they don't exist in my library or music folders.
    JUST OUT OF CURIOSITY, POST WHICH FIRMWARE YOU ARE RUNNING EXACTLY!!!
    I'm on an iPhone 4, running firmware 4.0.1

  • Installed Premiere Pro CS4 but video display does not work?

    I just got my copy of CS$. After installing Premiere I found two things that seem very wrong:
    1) video display does not work, not even the little playback viewer next to improted film clips located on the project / sequence window. Audio works fine.
    2) the UI is way too slow for my big beefy system.
    My pc is a dual boot Vista-32 and XP system with 4GB of memory installed and nvidia geforce 280 graphics board with plenty of GPU power. The CS4 is installed on the Vista-32 partition. My windows XP partition on the same PC with Premiere CS2 works great and real fast.
    Any ideas how to solve this CS4 install issue?
    Ron

    I would like to thank Dan, Hunt, and Haram:
    The problem is now very clear to me. The problem only shows up with video footage imported into PP CS4 encoded with "MS Video 1" codec. So this seems to be a bug. The codec is very clearly called out and supported within various menues but video with this codec just will not play in any monitor or preview window. In addition the entire product looks horrible with respect to performance while PP CS4 trys its best to play the video. Audio will start playing after about 30 seconds. And once in awhile part of video shows up at the wrong magnification before blanking out again.
    My suggestion to the Adobe team: fix the bug and add some sample footage to the next release so new installations can test their systems with known footage.
    My PC is brand new with the following "beefy" components:
    Motherboard
    nForce 790i SLI FTW
    Features:
    3x PCI Express x16 graphics support
    PCI Express 2.0
    NVIDIA SLI-Ready (requires multiple NVIDIA GeForce GPUs)
    DDR3-2000 SLI-Ready memory w/ ERP 2.0 (requires select third party system memory)
    Overclocking tools
    NVIDIA MediaSheild w/ 9 SATA 3 Gb/sec ports
    ESA Certified
    NVIDIA DualNet and FirstPacket Ethernet technology
    Registered
    CPU: Intel Core 2 Quad Q9550
    S-Spec: SLAWQ
    Ver: E36105-001
    Product Code: BX80569Q9550
    Made in Malaysia
    Pack Date: 09/04/08
    Features:
    Freq.: 2.83 GHz
    L2 Cache: 12 MHz Cache
    FSB: 1333 MHz (MT/s)
    Core: 45nm
    Code named: Yorkfield
    Power:95W
    Socket: LGA775
    Cooling: Liquid Cooled
    NVIDIAGeForce GTX 280 SC graphics card
    Features:
    1 GB of onboard memory
    Full Microsoft DirectX 10
    NVIDIA 2-way and 3-way SLI Ready
    NVIDIA PureVideo HD technology
    NVIDIA PhysX Ready
    NVIDI CUDA technology
    PCI Express 2.0 support
    Dual-link HDCP
    OpenGL 2.1 Capaple
    Output: DVI (2 dual-link), HDTV
    Western Digital
    2 WD VelociRaptor 300 GB SATA Hard Drives configured as Raid 0
    Features:
    10,000 RPM, 3 Gb/sec transfer rate
    RAM Memory , Corsair 4 GB (2 x 2 GB) 1333 MHz DDR3
    p/n: TW3X4G1333C9DHX G
    product: CM3X2048-1333C9DHX
    Features:
    XMS3 DHX Dual-Path 'heat xchange'
    2048 x 2 MB
    1333 MHz
    Latency 9-9-9-24-2T
    1.6V ver3.2

  • Ideapad A1-07 tablet wifi-bluet​ooth does not work!

    Hello everyone. As you can see from the title on my tablet is not working wifi and bluetooth. When turning wifi tablet is reset and continues to be off and on until it forcibly turns off, and when you turn it on again, and do not touch wifi everything is normal and there are no problems with resetting. Can someone help me and give suggestion to solve this stupid problem.  I'm from Croatia and I'm bad with the English writing.

    Hi
    Welcome To Lenovo Community
    Please perform a  factory reset 
    Please ensure you have backed any important data before doing factory reset
    Hold the volume down and the power till Lenovo logo appears .
    System will boot into recover mode. Follow the instructions
    Hope This Helps
    Cheers!!!
    Important Note: If you need help, post your question in the forum, and include your system type, model number and OS. Do not post your serial number.
    Did someone help you today? Press the star on the left to thank them with Kudos!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!  This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

Maybe you are looking for

  • Satellite P300 with screen turning pink

    Hi My Satellite P300 is model PSPCCA-OC6O1Y. The problem I have is a lot of pink on the screen. This has been reoccuring over the last week with this morning the worst. Presently I have two distinct pink pencil lines running down the screen just righ

  • Cx_document_bcs exception in add_attachment method of class cl_document_bcs

    hi All, I am getting an exception  while i am trying to create a  pdf attachment.  I m not getting any error text but error type is showing as  "XERR_BCS".  The code in which the exception is coming is as below. TRY.     lo_document->add_attachment(

  • Terminination Page Hangs and cpu spikes when hit submit

    Hi ,     Could you please help me trouble shooting on the below issues.               Req :                     Convert "Termination Reason"(message Choice to Message LOV) on TerminiationPG so that Additional Description can be show to the manager be

  • Imovie9, 13"macbook aluminum and USB external drive

    I know firewire is better, but is it totally impossible to use USB. Others have said its ok. Tom Wolsky on the FCE forum said that many people are returning the macbooks without firewire. I did a search on other discussions and some say its ok, while

  • Quality issues with slideshows

    Hi, I'm a long term user of PE v9 (basic editing & burning of home vids & slideshows), but I've just bought a new computer & upgraded to Photoshop & PE v11. The first slideshow I created (created in Photoshop & exported to PE for adding music, titles