Focus problem in 1.4_2 after JPopupMenu show
Hi, there:
I have an application, with a JTextField when that textfield gained focus, a popup menu is shown, and when it lost focus, the popup menu is hidden.
My focus listener class is listed below, where popup is JPopupMenu, and function displayPopup() is just to call show() in JPopupMenu:
class MyFocusListener extends FocusAdapter {
public void focusGained(FocusEvent e) {
System.out.println("focus gained.............");
displayPopup();
public void focusLost(FocusEvent e) {
System.out.println("focus lost ..............");
popup.setVisible(false);
}Everything works fine in jdk 1.3 version. In jdk1.4_2 version, I met following issues:
1. whenever the text field gained the focus, the application keeps calling "focusGained()", and "focusLost()" functions endlessly (it seems the system keeps sending those focus events endlessly);
2. if I removed that "popup.setVisible(false)" in focusLost, then, it seems no other component can gain the focus anylonger.
So, very appreciated if anyone can give me some help, is that a bug in 1.4.2 or is there any way to work around?
Thanks a lot
David
The reason is that in 1.4.2 each time you show a popup over a text field, it trades focus back and fourth with the text field a few times (2-3 times) before it is fully shown.
That means you gain focus... diaplay a popup -> which fires 2-3 more gain/lost focus -> and on each of those, you show a popup -> infinite loop.
Here is the overall tip: Don't try to show/hide popups based on foucs events. Make them controlled by something else, like clicking events.
If you must do this, you can use a timer to avoid the issue. Just make sure you are using showPopup(Component,x,y) in your displayPopup() method!
class MyFocusListener extends FocusAdapter {
long lastTimeGainedFocus = -1L;
public void focusGained(FocusEvent e) {
long currentTime = System.getCurrentTimeMilliseconds();
if(lastTimeGainedFocus == -1L || currentTime - lastTimeGainedFocus > 100) {
displayPopup();
lastTimeGainedFocus = currentTime;
public void focusLost(FocusEvent e) {
// do nothing here... popup should hide itself
}
Similar Messages
-
Got a strange problem, Can sync but after sync shows there is a problem and uninstalling
Ok I have the latest generation Nano, Windows 7 (64bit)
- All windows updates
- Correct and update Asus motherboard drivers
- Latest iTunes 10.6 install (64 bit) also have uninstalled and reinstalled
- Already restored iPod through iTunes
The Problem:
I connect the USB cable, the iPod connects and syncs correctly
Windows Devices and Printers shows the iPod in there no problem
IMMEDIATLY after sync the Devices and Printers shows the ipod with a yellow bang (exclamation mark) go to properties "error 21 uninstalling"
(go to more information says "usb Mass storage device is not working properly" "problem with PnP device")
Other USB Mass storage devices work fine (Thumb drives, hard drives, camera, webcam) - though I did take them off for troubleshooting sake.
I'm completly stumped, this is a pretty fresh reinstall of the OS, really not wanting to have to install it again, but if I have to I have to I guess. I've uninstalled iTunes, Apple Mobile driver, and reinstalled at least twice now. I have the correct and latest drivers from Intel, everything is up to date.
Also I've already gone into 'Disk Management' I made sure there where no conflicting drive letters.
Any other ideas?I don't think it is caused by a hardware problem on the iPod, and any software problem on the iPod would be fixed with a Restore (which you said you did already). But can't rule out some odd hardware issue.
Try the "test" this way... Connect the iPod with iTunes running (disk mode enabled). In Windows, it should appear as a removable storage device. Eject the iPod's disk using Windows. I don't know exactly how you do it in Windows 7, but it would be the same thing you do to eject a USB flash drive or external drive, before disconnecting it.
So, with iTunes running, if you use Windows to eject the iPod (instead of iTunes), does that error come up?
ever time I connect the iPod get a pop up in the sys tray showing it's installing mass storage
That "pop up in the sys tray" does not happen every time you connect another type of "mass storage" device, like a USB external drive or flash drive, correct? It only happens with this iPod? -
Focus problem when JPopupMenu is shown
I have compiled and ran the following 'JPopupTest.java' in JDK 1.4.1 on Windows. Kindly conduct the two tests as given below
First Test :
============
The class shows an editable JComboBox and a JButton when visible. Now click the down-arrow button of the JComboBox and make the drop-down popup visible. Then click on the "OK" button while the popup is visible. The popup gets hidden and a dialog is displayed as it should be.
Second Test :
=============
Run the appilcation again. This time type something in the editable textfield of the JComboBox. A custom JPopupMenu with the text "Hello World" would be visible. Then click on the "OK" button while the popup is visible. The expected dialog is not shown. The custom JPopupMenu gets hidden. Now click on "OK" button again. The dialog is visible now.
My Desire :
===========
When I click on the "OK" button in the "Second Test" the JPopupMenu should get hidden and the dialog gets displayed (as it happens for the "First Test") in one click.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.text.*;
import javax.swing.event.*;
import javax.swing.plaf.basic.*;
import java.util.*;
public class JPopupTest extends JPanel implements DocumentListener, ActionListener
JButton button;
Vector vec;
JComboBox jcombobox;
JPopupMenu jpopupmenu;
BasicComboBoxEditor _bcbe;
JTextField jtextfield;
public JPopupTest()
vec = new Vector();
vec.addElement("One");
vec.addElement("Two");
vec.addElement("Three");
vec.addElement("Four");
vec.addElement("Five");
vec.addElement("Six");
vec.addElement("Seven");
vec.addElement("Eight");
vec.addElement("Nine");
vec.addElement("Ten");
jcombobox = new JComboBox(vec);
jcombobox.setEditable(true);
_bcbe = ((BasicComboBoxEditor) jcombobox.getEditor());
jtextfield = ((JTextField) _bcbe.getEditorComponent());
jtextfield.getDocument().addDocumentListener(this);
add(jcombobox);
button = new JButton("OK");
button.addActionListener(this);
add(button);
jpopupmenu = new JPopupMenu();
jpopupmenu.add("Hello World");
public void insertUpdate(DocumentEvent e) {changedUpdate(e);}
public void removeUpdate(DocumentEvent e) {changedUpdate(e);}
public void changedUpdate(DocumentEvent e)
if(!jpopupmenu.isVisible())
jpopupmenu.show(jcombobox, 0, jcombobox.getHeight());
jtextfield.requestFocus();
public void actionPerformed(ActionEvent e)
JOptionPane.showMessageDialog(this, "OK button was pressed");
public static void main(String[] args)
JPopupTest test = new JPopupTest();
JFrame jframe = new JFrame();
jframe.getContentPane().add(test);
jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
jframe.setSize(200,100);
jframe.setVisible(true);See the code below with auto complete of text. When button is pressed, still TF gets focus after JOptionPane dialog is closed.
-Pratap
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.plaf.basic.*;
public class JPopupTest extends JPanel implements ActionListener {
JButton button;
Vector vec;
JComboBox jcombobox;
BasicComboBoxEditor _bcbe;
JTextField jtextfield;
MyComboUI comboUi = new MyComboUI();
public JPopupTest() {
vec = new Vector();
vec.addElement("One");
vec.addElement("Two");
vec.addElement("Three");
vec.addElement("Four");
vec.addElement("Five");
vec.addElement("Six");
vec.addElement("Seven");
vec.addElement("Eight");
vec.addElement("Nine");
vec.addElement("Ten");
jcombobox = new JComboBox(vec);
jcombobox.setEditable(true);
jcombobox.setUI(comboUi);
add(jcombobox);
button = new JButton("OK");
button.addActionListener(this);
add(button);
_bcbe = ((BasicComboBoxEditor) jcombobox.getEditor());
jtextfield = ((JTextField) _bcbe.getEditorComponent());
jtextfield.addCaretListener(new CaretListener() {
public void caretUpdate(CaretEvent e) {
if (!jcombobox.isPopupVisible() && jtextfield.isShowing() &&
jtextfield.hasFocus()) {
jcombobox.showPopup();
String text = jtextfield.getText().toLowerCase();
int index = -1;
for (int i = 0; i < jcombobox.getItemCount(); i++) {
String item = ((String) jcombobox.getItemAt(i)).toLowerCase();
if (item.startsWith(text)) {
index = i;
break;
if (index != -1) {
comboUi.getList().setSelectedIndex(index);
} else {
comboUi.getList().clearSelection();
jtextfield.addKeyListener(new KeyAdapter() {
public void keyPressed(KeyEvent e) {
if (e.getKeyCode() == e.VK_ENTER) {
Object value = comboUi.getList().getSelectedValue();
jcombobox.setSelectedItem(value);
jcombobox.hidePopup();
public void actionPerformed(ActionEvent e) {
JOptionPane.showMessageDialog(this,"OK button was pressed");
jtextfield.requestFocus();
public static void main(String[] args) {
JPopupTest test = new JPopupTest();
JFrame jframe = new JFrame();
jframe.getContentPane().add(test);
jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
jframe.setSize(200,100);
jframe.setVisible(true);
public class MyComboUI extends BasicComboBoxUI {
public JList getList() {
return listBox; -
Dear Support,
I have facing a problem in Linksys e900 Ap firmware 1.0.05,
I have total 95 AP in hotel wi-fi setup
many access point stop working and client not able to connect wi-fi network after phisically reboot AP its work normally
Client showing connecting..... & after that showing authuntication failed.
and I have trying to access remotaly but not able to access after physically reboot access point work normally but after few days same problem occuring again
please provide any solution
Thanks
Ashokonly 110 Static ip used no DHCP configured and only 4 mbps internet line used no havy traffic
-
My ipad 2 suddenly show red screen during start up and on ordinary screen show red colure fill the screen , I think it is hardware problem mostly screen. This problem didn't happen after fall or only accident ,what shall I do ?
You could try a reset and see if that fixes it : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
If it doesn't then you could try restoring to your last backup and/or resetting back to factory defaults. But if it's a hardware issue then you will need to contact Apple. -
i tried to restore my iphone but when it was restoring it said a problem occurred and now it just shows the itunes symbole and its telling me to connect to it but when i try to it doesnt show up on my computer
Hi there starbaeza,
You may find the information in the article below helpful.
iOS: Forgotten passcode or device disabled after entering wrong passcode
http://support.apple.com/kb/ht1212
-Griff W. -
Reception / Battery problems with iPhone 3GS after upgrading to iOS 4.2.1
There are major reception and battery problems with iPhone 3GS after upgrading to iOS 4.2.1.
I can not believe that Apple did not test this for major bugs like this one is.
I am a business user and can not effort to have bad reception. Apple wants to gain in the business clients... I never had this with my former BlackBerrys!
I need a reliable phone not a play thing like this is right now, it just needs it to work propely. And if a major bug like this comes along, fix it immediately. After the iPhone4 story, now this...incredible! Going back to my reliable BlackBerry! It just ain't reliable and takes forever to fix a problem.I have the same issue after iOS 4.2.1 update. I am using iPhone 3GS officially unlocked by Apple. I tried using different SIM cards and both carriers show same problem when using phone in 3G mode. Phone falls back to EDGE mode showing 'E' from '3G' at start. I have reset the phone and rebooted several times and moved to different cell areas in the city just to verify the problem.
I had no such issues earlier. I also have Nokia E71 which shows full signal and has no such issues.
I have posted the bug on apple iphone feedback page. I hope they Apple will fix the problem and test the release properly on all models before releasing to public. -
Problem with iWeb 09, after the publication in a local file.
*Subject: problem with iWeb 09, after the publication in a local file, i can't see my blog, nor my photos, but before that all was working fine.*
After the publication in the local file, I see all my pages, but there is a mistake on the page "Blog" where I just can see the top of my page, it's cut and I can't see it entirely, so I can't see the inputs while I should see 3 news or 3 inputs. And it's the same for the "Photos" page where the page is cut, I can't see the photos, and it's just written : "Put the slide show and subscribe".To finish, when I want to activate the comments, it doesn't work neither.
Please help me.I want to activate the comments, it doesn't work neither.
The comments feature is only available when you publish to the MobileMe server, so I don't think you can use it when you publish to a local file. -
Problem in NODE 1 after reboot
Hi,
Oracle Version:11gR2
Operating System:Cent Os
Hi we have some problem in node 1 after sudden reboot of both the nodes when the servers are up the database in node 2 started automatically but in node 1 we started manually.
But inthe CRSCTL command it is showing that node 1 database is down as show below.
[root@rac1 bin]# ./crsctl stat res -t
NAME TARGET STATE SERVER STATE_DETAILS
Local Resources
ora.ASM_DATA.dg
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.ASM_FRA.dg
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.LISTENER.lsnr
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.OCR_VOTE.dg
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.asm
ONLINE ONLINE rac1 Started
ONLINE ONLINE rac2 Started
ora.eons
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.gsd
OFFLINE OFFLINE rac1
OFFLINE OFFLINE rac2
ora.net1.network
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.ons
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.registry.acfs
ONLINE ONLINE rac1
ONLINE ONLINE rac2
Cluster Resources
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE rac2
ora.LISTENER_SCAN2.lsnr
1 ONLINE ONLINE rac1
ora.LISTENER_SCAN3.lsnr
1 ONLINE ONLINE rac1
ora.oc4j
1 OFFLINE OFFLINE
ora.qfundrac.db
1 OFFLINE OFFLINE
2 ONLINE ONLINE rac2 Open
ora.rac1.vip
1 ONLINE ONLINE rac1
ora.rac2.vip
1 ONLINE ONLINE rac2
ora.scan1.vip
1 ONLINE ONLINE rac2
ora.scan2.vip
1 ONLINE ONLINE rac1
ora.scan3.vip
1 ONLINE ONLINE rac1but for the below command it is showing both the nodes are up
SQL> select inst_id,status,instance_role,active_state from gv$instance;
INST_ID STATUS INSTANCE_ROLE ACTIVE_ST
1 OPEN PRIMARY_INSTANCE NORMAL
2 OPEN PRIMARY_INSTANCE NORMALhere is the output for cluvfy .
[grid@rac1 bin]$ ./cluvfy stage -post crsinst -n rac1,rac2 -verbose
Performing post-checks for cluster services setup
Checking node reachability...
Check: Node reachability from node "rac1"
Destination Node Reachable?
rac2 yes
rac1 yes
Result: Node reachability check passed from node "rac1"
Checking user equivalence...
Check: User equivalence for user "grid"
Node Name Comment
rac2 passed
rac1 passed
Result: User equivalence check passed for user "grid"
Checking time zone consistency...
Time zone consistency check passed.
Checking Cluster manager integrity...
Checking CSS daemon...
Node Name Status
rac2 running
rac1 running
Oracle Cluster Synchronization Services appear to be online.
Cluster manager integrity check passed
UDev attributes check for OCR locations started...
Result: UDev attributes check passed for OCR locations
UDev attributes check for Voting Disk locations started...
Result: UDev attributes check passed for Voting Disk locations
Check default user file creation mask
Node Name Available Required Comment
rac2 0022 0022 passed
rac1 0022 0022 passed
Result: Default user file creation mask check passed
Checking cluster integrity...
Node Name
rac1
rac2
Cluster integrity check passed
Checking OCR integrity...
Checking the absence of a non-clustered configuration...
All nodes free of non-clustered, local-only configurations
ASM Running check passed. ASM is running on all cluster nodes
Checking OCR config file "/etc/oracle/ocr.loc"...
OCR config file "/etc/oracle/ocr.loc" check successful
Disk group for ocr location "+OCR_VOTE" available on all the nodes
Checking size of the OCR location "+OCR_VOTE" ...
Size check for OCR location "+OCR_VOTE" successful...
Size check for OCR location "+OCR_VOTE" successful...
WARNING:
This check does not verify the integrity of the OCR contents. Execute 'ocrcheck' as a privileged user to verify the contents of OCR.
OCR integrity check passed
Checking CRS integrity...
The Oracle clusterware is healthy on node "rac2"
The Oracle clusterware is healthy on node "rac1"
CRS integrity check passed
Checking node application existence...
Checking existence of VIP node application
Node Name Required Status Comment
rac2 yes online passed
rac1 yes online passed
Result: Check passed.
Checking existence of ONS node application
Node Name Required Status Comment
rac2 no online passed
rac1 no online passed
Result: Check passed.
Checking existence of GSD node application
Node Name Required Status Comment
rac2 no does not exist ignored
rac1 no does not exist ignored
Result: Check ignored.
Checking existence of EONS node application
Node Name Required Status Comment
rac2 no online passed
rac1 no online passed
Result: Check passed.
Checking existence of NETWORK node application
Node Name Required Status Comment
rac2 no online passed
rac1 no online passed
Result: Check passed.
Checking Single Client Access Name (SCAN)...
SCAN VIP name Node Running? ListenerName Port Running?
qfund-rac.qfund.net rac2 true LISTENER 1521 true
Checking name resolution setup for "qfund-rac.qfund.net"...
SCAN Name IP Address Status Comment
qfund-rac.qfund.net 192.168.8.118 passed
qfund-rac.qfund.net 192.168.8.119 passed
qfund-rac.qfund.net 192.168.8.117 passed
Verification of SCAN VIP and Listener setup passed
OCR detected on ASM. Running ACFS Integrity checks...
Starting check to see if ASM is running on all cluster nodes...
ASM Running check passed. ASM is running on all cluster nodes
Starting Disk Groups check to see if at least one Disk Group configured...
Disk Group Check passed. At least one Disk Group configured
Task ACFS Integrity check passed
Checking Oracle Cluster Voting Disk configuration...
Oracle Cluster Voting Disk configuration check passed
Checking to make sure user "grid" is not in "root" group
Node Name Status Comment
rac2 does not exist passed
rac1 does not exist passed
Result: User "grid" is not part of "root" group. Check passed
Checking if Clusterware is installed on all nodes...
Check of Clusterware install passed
Checking if CTSS Resource is running on all nodes...
Check: CTSS Resource running on all nodes
Node Name Status
rac2 passed
rac1 passed
Result: CTSS resource check passed
Querying CTSS for time offset on all nodes...
Result: Query of CTSS for time offset passed
Check CTSS state started...
Check: CTSS state
Node Name State
rac2 Observer
rac1 Observer
CTSS is in Observer state. Switching over to clock synchronization checks using NTP
Starting Clock synchronization checks using Network Time Protocol(NTP)...
NTP Configuration file check started...
The NTP configuration file "/etc/ntp.conf" is available on all nodes
NTP Configuration file check passed
Checking daemon liveness...
Check: Liveness for "ntpd"
Node Name Running?
rac2 yes
rac1 yes
Result: Liveness check passed for "ntpd"
Checking NTP daemon command line for slewing option "-x"
Check: NTP daemon command line
Node Name Slewing Option Set?
rac2 yes
rac1 yes
Result:
NTP daemon slewing option check passed
Checking NTP daemon's boot time configuration, in file "/etc/sysconfig/ntpd", for slewing option "-x"
Check: NTP daemon's boot time configuration
Node Name Slewing Option Set?
rac2 yes
rac1 yes
Result:
NTP daemon's boot time configuration check for slewing option passed
NTP common Time Server Check started...
NTP Time Server ".INIT." is common to all nodes on which the NTP daemon is running
NTP Time Server ".LOCL." is common to all nodes on which the NTP daemon is running
Check of common NTP Time Server passed
Clock time offset check from NTP Time Server started...
Checking on nodes "[rac2, rac1]"...
Check: Clock time offset from NTP Time Server
Time Server: .INIT.
Time Offset Limit: 1000.0 msecs
Node Name Time Offset Status
rac2 0.0 passed
rac1 0.0 passed
Time Server ".INIT." has time offsets that are within permissible limits for nodes "[rac2, rac1]".
Time Server: .LOCL.
Time Offset Limit: 1000.0 msecs
Node Name Time Offset Status
rac2 -29.328 passed
rac1 -84.385 passed
Time Server ".LOCL." has time offsets that are within permissible limits for nodes "[rac2, rac1]".
Clock time offset check passed
Result: Clock synchronization check using Network Time Protocol(NTP) passed
Oracle Cluster Time Synchronization Services check passed
Post-check for cluster services setup was successful.
[grid@rac1 bin]$Please help me how to solve this problem.
Thanks & regards
Poorna Prasad.SHi All,
Now again i reboothed the database again manually and the database is no up on both the node.
Here is the output for few commands
[grid@rac1 bin]$ ./crs_stat -t
Name Type Target State Host
ora....DATA.dg ora....up.type OFFLINE OFFLINE
ora.ASM_FRA.dg ora....up.type OFFLINE OFFLINE
ora....ER.lsnr ora....er.type ONLINE ONLINE rac1
ora....N1.lsnr ora....er.type ONLINE ONLINE rac1
ora....N2.lsnr ora....er.type ONLINE ONLINE rac2
ora....N3.lsnr ora....er.type ONLINE ONLINE rac2
ora....VOTE.dg ora....up.type ONLINE ONLINE rac1
ora.asm ora.asm.type ONLINE ONLINE rac1
ora.eons ora.eons.type ONLINE ONLINE rac1
ora.gsd ora.gsd.type OFFLINE OFFLINE
ora....network ora....rk.type ONLINE ONLINE rac1
ora.oc4j ora.oc4j.type OFFLINE OFFLINE
ora.ons ora.ons.type ONLINE ONLINE rac1
ora....drac.db ora....se.type OFFLINE OFFLINE
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application OFFLINE OFFLINE
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip ora....t1.type ONLINE ONLINE rac1
ora....SM2.asm application ONLINE ONLINE rac2
ora....C2.lsnr application ONLINE ONLINE rac2
ora.rac2.gsd application OFFLINE OFFLINE
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip ora....t1.type ONLINE ONLINE rac2
ora....ry.acfs ora....fs.type ONLINE ONLINE rac1
ora.scan1.vip ora....ip.type ONLINE ONLINE rac1
ora.scan2.vip ora....ip.type ONLINE ONLINE rac2
ora.scan3.vip ora....ip.type ONLINE ONLINE rac2
[grid@rac1 bin]$ srvctl status nodeapps -n rac1,rac2
-bash: srvctl: command not found
[grid@rac1 bin]$ ./srvctl status nodeapps -n rac1,rac2
PRKO-2003 : Invalid command line option value: rac1,rac2
[grid@rac1 bin]$ ./srvctl status nodeapps -n rac1
-n <node_name> option has been deprecated.
VIP rac1-vip is enabled
VIP rac1-vip is running on node: rac1
Network is enabled
Network is running on node: rac1
GSD is disabled
GSD is not running on node: rac1
ONS is enabled
ONS daemon is running on node: rac1
eONS is enabled
eONS daemon is running on node: rac1
[grid@rac1 bin]$ ./srvctl status nodeapps -n rac2
-n <node_name> option has been deprecated.
VIP rac2-vip is enabled
VIP rac2-vip is running on node: rac2
Network is enabled
Network is running on node: rac2
GSD is disabled
GSD is not running on node: rac2
ONS is enabled
ONS daemon is running on node: rac2
eONS is enabled
eONS daemon is running on node: rac2Here is the output for crsctl stat res -t
[grid@rac1 bin]$ ./crsctl stat res -t
NAME TARGET STATE SERVER STATE_DETAILS
Local Resources
ora.ASM_DATA.dg
OFFLINE OFFLINE rac1
OFFLINE OFFLINE rac2
ora.ASM_FRA.dg
OFFLINE OFFLINE rac1
OFFLINE OFFLINE rac2
ora.LISTENER.lsnr
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.OCR_VOTE.dg
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.asm
ONLINE ONLINE rac1 Started
ONLINE ONLINE rac2 Started
ora.eons
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.gsd
OFFLINE OFFLINE rac1
OFFLINE OFFLINE rac2
ora.net1.network
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.ons
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.registry.acfs
ONLINE ONLINE rac1
ONLINE ONLINE rac2
Cluster Resources
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE rac1
ora.LISTENER_SCAN2.lsnr
1 ONLINE ONLINE rac2
ora.LISTENER_SCAN3.lsnr
1 ONLINE ONLINE rac2
ora.oc4j
1 OFFLINE OFFLINE
ora.qfundrac.db
1 OFFLINE OFFLINE
2 OFFLINE OFFLINE
ora.rac1.vip
1 ONLINE ONLINE rac1
ora.rac2.vip
1 ONLINE ONLINE rac2
ora.scan1.vip
1 ONLINE ONLINE rac1
ora.scan2.vip
1 ONLINE ONLINE rac2
ora.scan3.vip
1 ONLINE ONLINE rac2What is going wrong here .
Thanks & Regards,
Poorna Prasad.S
Edited by: SIDDABATHUNI on Apr 30, 2011 2:06 PM
Edited by: SIDDABATHUNI on Apr 30, 2011 2:10 PM -
Problems with Airport setup after buying Version 7 models, (older ones will not upgrade)
I re set up my Airport network , having had 4 expresses for years doing a good job. I bought another and an express, but then a time capsule after my external drive died. .Problems with Airport setup after buying Version 7 models, (older ones will not upgrade)
I moved house and have fibre network so 38mb/s - they all look ok on the utility, but its not till I saw the App version that they are not compatible as mac will not upgrade the version 6 ones, leaving me with 2 disjointed networks and 7 appliances, 4 of the old , 3 of the new.
my new house is expansive so i wanted the extended range and airplay in each room.
This is not told to customers, and utility doesnt show any issues.
I do not seem to get any range from either network now, - and I'm quite experienced with airport (6 yrs of setting up & using & extending)
Any advice ?
LJx
Message was edited by: LJLDN
Message was edited by: LJLDNSorry couldn't change the detonations to Airport and am new so cant delete!
-
My t3i is having focusing problems. What can be the cause? Can I fine to the focus like on the fullframe cameras?
Solved!
Go to Solution.Kolourl3lind wrote:
OK I will but I just relized maybe it's because I am zooming after focusing and recomposing?
Yep - most lenses are "varifocal" -- meaning that if you carefully focus on a subject at some specific focal length in the zoom range... then zoom to a new focal length, then your subject will no longer be accurately focus. You must re-focus the lens.
There are a few lenses which are "parfocal" -- mean that if you zoom the focal length after focusing, your subject will still be accurately focused. However... VERY FEW lenses are technically "parfocal" (though some are close).
The lenses that I'm aware of which are "parfocal" are:
EF 16-135mm f/2.8L USM
EF 17-40mm f/4L USM
EF 70-200mm f/2.8L USM (only the non-IS version)
That's it. If you use any other lens, you have to re-focus the lens after zooming.
But I also notice you were shooting at 1/15th sec. That's a bit slow but you were at 18mm (which helps.) Here's the guideline on that.
In the 35mm days, there used to be a general guideline that if the shutter speed is equal to or faster than 1/focal-length (e.g. if shooting at 50mm the you'd want to be at least 1/50th sec.... at 70mm you'd want to be at least 1/70th or faster, etc.) would be adequate. This number doesn't apply to your T3i, but I'll get to that in a moment.
But there are a few caveats with that...
First, It assumes you are actually using very good camera-holding technique and you are actually TRYING to be steady. Good camera-holding technique means you are supporting the camera from below -- typically your left is palm-up supporting the bottom of the camera and lens and your elbow is in toward your chest/stomach. Your body weight is centered between your legs and you have a wide stance. This means you are not leaning so your muscles don't have to work hard to keep you upright and your arms work like a brace to support the camera to your body and of course your body is nicely balanced and stable.
Second, It's just a "guideline" -- not a rule. Some people are noticeably able to be more steady than others (and if caffiene makes you jittery and you just drank a coffee... and all that sort of thing.) And sometimes it takes a bit of practice to learn good technique.
Third, It's also not the same for APS-C size sensor cameras (like your T3i). For that camera, you'd have to multiple the minimum speed by the crop factor of the camera. For a Canon APS-C camera it's 1.6 (but if you wanted to use 1.5 that'd be pretty close.) That means at 50mm instead of using 1/50th you'd actually have to use 1/75th (technically 1/80th if we use the 1.6 factor). e.g. 50 x 1.6 = 80 so for 50mm we'd use 1/80th.
If you have a lens that includes image stabilization, then you may be able to shoot a bit slower.
Most image stabilization claims to improve lens stability by 2 to 4 "stops". What that means it that you can reduce the speed of the shutter... two to four times slower than you'd normally need because the lens is stabilizing for you. But more caveats apply because it's not as simple as "you get 4 stops". The stabilization isn't a guarantee... it's just a liklihood. If it has to be less ambitious to stabilize your shot it will be far more likely to succeed. If it has to be more ambitious to stabilize your shot then it'll do it's best... but there's no guarantee that it will work.
You were shooting at 18mm. So if you are using excellent posture and camera-holding technique but don't have image stabilization and you're the "average" person trying to hold the camera steady, then we multiply 18 x 1.6 and get 28.8. There is no 1/28.8th shuter speed so we'll round that to 1/30th (because there is a 1/30th.
1 stop slower than 1/30th is 1/15th.. and the image stabilization probably is adequate to get you 1 stop slower successfully.
2 stops slower is 1/8th. Image stabilization that claims "4 stops" will usually do well at 2 stops. So this is less of a sure-fire thing, but it does tilt the odds in your favor.
3 stops slower is 1/4 sec. At this point you're pushing the image stabilization system... you'll notice that if you shoot a lot of frames, that the "keeper" rate (good shots you like) will be lower, but you'll see that you are getting some.
4 stops slower is 1/2 sec (based on the base of 1/30th for an 18mm focal length on an APS-C size sensor camera). If you push any image stabilized lens to 4 stops, do not expect to get a very high keeper rate. It'll sometimes help you, but you have to accept that you're really being ambitious in your expectations.
That's image stabilization by the numbers... take the focal length, multiply it by your crop factor (which is always 1.6 but if you want to use 1.5 because it's a bit easier to do that math in our head it's close enough), round up to the nearest shutter speed available. If you have image stabilization you can speed up the shutter speed by 1, 2, 3, or 4 times faster... but each time you get more ambitious your odds of getting "keepers" go down (but it's still better than no image stabilization at all.)
The summary is that your minimum shutter speed (assuming good holding technique and that you are steady, etc. etc.) with image stabilization OFF the 1/30th would be your minimum speed. At 1/15h sec you were relying on 1 stop of image stabilization help. The image stabilization technology in the lens is good enought that "most of the time" it probably will be able to do this (not guaranteed... just likely.) If you were NOT using good posture and holding technique... you may be challenging your image stabilization system to try to keep up.
Tim Campbell
5D II, 5D III, 60Da -
Am running Firefox 3.6.10. Am having problems with Firefox crashing after upgrading to Kaspersky Internet Security 2011. Anyone else having same problem. Oh, BTW am still using Windows XP operating system.
The latest flash player release is 11,0,1,152.
Can you upgrade to this version and see whether the crash stil exists?
Go to get.adobe.com/flashplayer to download and install flash player.
In case you need direct link to installer/uninstaller, please go to http://forums.adobe.com/message/3952360#3952360 to find them.
saranlee wrote:
My computer crashes repeatedly and I get the message pages are not responding do you want to stop, and/or shockwave is not responding do you want to stop. I have Windows XP Service Pack 3, I am having the same issues whether I use Internet Explorer, Google Chrome, or Mozilla Firefox. My HP Pavilion Desktop has 504 MB of Ram and I am using high speed internet connection. Because it was crashing so much, I used the uninstall program for Flash player to uninstall Flash, I checked my registry and removed anything I saw that was Flash. I then uninstalled Google Chrome and Mozilla Firefox, then I reinstalled the most recent versions from their websites. I did the same for FlashPlayer and Shockwave Flash. I went to the Adobe website and had them check to see if it was working and it shows I have FlashPlayer 10.3.181.36. The page that shows which version of flash player goes with Windows XP states that I should have 10.3.181.34 (This is what I thought I had before I updated, I was having the same problems). When I went into my computer to see what version I have, it shows 11.5.9.620 Activex and both Flash Player and Flash Player Object is listed as 10.3.181.34. My firewall for Windows is set to medium. I also am running Norton Internet Security. It takes anywhere from 3-6minutes for some of my games to load, and I have to refresh at least 3-4 times in order to play. When I do start to play it freezes frequently and I use escape to free it up. This has been going on for a month. I have no idea what to do. I am not very computer savy and I have been learning as I go. -
Weird focus problems (& 1 workaround)
I am building a wizard with an extension of JDialog. Based on earlier input, I create the JDialog with a bunch of JPanels each with a combobox and a textfield. I have a next, cancel, and back button at the bottom on its own panel. I also have a "Finish" button when I reach the last panel. So I have to change the buttonPanel by putting the finish button on at the end and I put the next button back on when coming back from the last panel.
The problems I have been running into involve getting focus to one of the JTextfields mentioned above. I had a problem when I built my JDialog after clicking the next button. I removed everything from my ContentPane (cp) using cp.removeAll(). After building my JDialog, my code trys to give focus to the first text field. It wouldn't. I tested the text field and it is indeed focusable, visible, and displayable.
The fix was removing each individual component from the content pane instead of doing the removeAll(). Then, after adding everything to the content pane, my textfield could grab the focus.
The only problem that remains is with the back button. When I move back from the final panel the following code is executed:
buttonPanel.removeAll();
//buttonPanel.remove(backButton);
//buttonPanel.remove(finalButton);
//buttonPanel.remove(cancelButton);
buttonPanel.add(backButton);
buttonPanel.add(nextButton);
buttonPanel.add(cancelButton);
Then, as in other cases, the buttonPanel object is added to the content pane. This causes the textfield to be unable to grab focus. I commented out the code and the focus worked fine (but of course my buttonPanel was not correct).
This is happening with 1.4.1 on windows 2000. I don't have another computer to test this one.
Am I doing something inherently wrong or is this a bug?
I've looked around and there are a lot of problems reported with focus and swing, but I wasn't sure if this was a symptom of those problems or if this is something different.
I appreciate any help you can give.
thanks,
GeoffI won't throw everything at you but this should be plenty. If anyone needs any explanations I am not going anywhere. I'm trying to figure out if the problem is a bug or not.
The workaround is mentioned in a comment for the action listener of nextButton. The problem piece of code that is mentioned at the top of this thread is also commented and it is part of the action listener for backButton.
There are some declarations I have left out and I've left out some helper functions and some private classes, but I looked at it closely. There shouldn't be anything that is a mystery here. But, again, if anything is unclear just give a shout.
thanks in advance,
Geoff
public InfoDialog(JFrame owner, int[] results)
super(owner, "Wizard", true);
cp = getContentPane();
this.owner = owner;
answers = results;
lastPanel = answers.length-1;
//figure out number of panels and last one greater than 0
for(int i =0; i<answers.length; i++)
numPanels++;
if(answers>0)
lastPanel = i;
if(numPanels==0)
return;
nameVectors = new Vector[answers.length];
typeVectors = new Vector[answers.length];
while(answers[currentPanel]<=0 && currentPanel<answers.length)
currentPanel++;
firstPanel = currentPanel;
inputLabel = new JLabel();
inputLabel.setAlignmentX(Component.CENTER_ALIGNMENT);
inputLabel.setText(getInputLabelText(currentPanel));
panelArray = new JPanel[answers[currentPanel]];
nameVectors[currentPanel] = new Vector();
typeVectors[currentPanel] = new Vector();
comboArray = new ClassComboBox[answers[currentPanel]];
textArray = new StringTextField[answers[currentPanel]];
for(int i=0; i<panelArray.length; i++)
panelArray[i] = new JPanel();
panelArray[i].setLayout(new BoxLayout(panelArray[i], BoxLayout.X_AXIS));
comboArray[i] = new ClassComboBox();
panelArray[i].add(comboArray[i]);
textArray[i] = new StringTextField(new String(""));
panelArray[i].add(textArray[i]);
cp.setLayout(new BoxLayout(cp, BoxLayout.Y_AXIS));
//cp.add(infoPanel);
cp.add(inputLabel);
for(int i=0; i<panelArray.length; i++)
cp.add(panelArray[i]);
//infoPanel = new JPanel();
//infoPanel.setLayout(new BoxLayout(infoPanel, BoxLayout.X_AXIS));
//infoPanel.add(new ClassComboBox());
//infoPanel.add(new StringTextField(new String("")));
//cp.add(infoPanel);
backButton = new JButton("Back");
backButton.setEnabled(false);
backButton.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent ae){
//save values of previous panel into vector
typeVectors[currentPanel] = null;
nameVectors[currentPanel] = null;
typeVectors[currentPanel] = new Vector();
nameVectors[currentPanel] = new Vector();
for(int i=0; i<panelArray.length; i++)
typeVectors[currentPanel].add((String)comboArray[i].getSelectedItem());
nameVectors[currentPanel].add(textArray[i].getText());
//remove everything from JDialog
//cp.removeAll();
cp.remove(inputLabel);
for(int i=0; i<panelArray.length; i++)
cp.remove(panelArray[i]);
cp.remove(buttonPanel);
//store last panel, figure out what the new currentPanel val is
int previousPanel = currentPanel;
currentPanel--;
while(answers[currentPanel]<=0 && currentPanel >= firstPanel)
currentPanel--;
//go through panelArray getting rid of its subcomponents
for(int i=0; i<panelArray.length; i++)
panelArray[i].removeAll();
panelArray = null;
comboArray = null;
textArray = null;
//arrays will be initialized to the appropriate length for the currentPanel
panelArray = new JPanel[answers[currentPanel]];
comboArray = new ClassComboBox[answers[currentPanel]];
textArray = new StringTextField[answers[currentPanel]];
//inputLabel.setText(pinTypes[currentPanel]);
inputLabel.setText(getInputLabelText(currentPanel));
cp.add(inputLabel);
for(int i=0; i<panelArray.length; i++)
panelArray[i] = new JPanel();
panelArray[i].setLayout(new BoxLayout(panelArray[i], BoxLayout.X_AXIS));
comboArray[i] = new ClassComboBox();
comboArray[i].setSelectedItem(typeVectors[currentPanel].get(i));
panelArray[i].add(comboArray[i]);
//textArray[i] = new StringTextField(new String(""));
textArray[i] = new StringTextField((String)nameVectors[currentPanel].get(i));
panelArray[i].add(textArray[i]);
cp.add(panelArray[i]);
//focus problem is caused by this block of code
//moving back from last panel
if((currentPanel == lastPanel-1) && previousPanel==lastPanel)
buttonPanel.removeAll();
//the following code did not fix the problem
//buttonPanel.remove(backButton);
//buttonPanel.remove(finalButton);
//buttonPanel.remove(cancelButton);
buttonPanel.add(backButton);
buttonPanel.add(nextButton);
buttonPanel.add(cancelButton);
if(currentPanel==firstPanel)
backButton.setEnabled(false);
cp.add(buttonPanel);
//System.out.println();
//System.out.println("textArray[0].isVisibile: " + textArray[0].isVisible());
//System.out.println("textArray[0].isDisplayable: " + textArray[0].isDisplayable());
//System.out.println("textArray[0].isFocusable: " + textArray[0].isFocusable());
//textArray[0].grabFocus();
pack();
//repaint();
System.out.println();
System.out.println("textArray[0].isVisibile: " + textArray[0].isVisible());
System.out.println("textArray[0].isDisplayable: " + textArray[0].isDisplayable());
System.out.println("textArray[0].isFocusable: " + textArray[0].isFocusable());
textArray[0].grabFocus();
nextButton = new JButton("Next");
nextButton.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent ae){
//logic to grab information from JComboBox and JTextField
typeVectors[currentPanel] = null;
nameVectors[currentPanel] = null;
typeVectors[currentPanel] = new Vector();
nameVectors[currentPanel] = new Vector();
for(int i=0; i<panelArray.length; i++)
typeVectors[currentPanel].add((String)comboArray[i].getSelectedItem());
nameVectors[currentPanel].add(textArray[i].getText());
//here is the code that didn't work and the subsequent code
//that fixed the problem
//cp.removeAll();
cp.remove(inputLabel);
for(int i=0; i<panelArray.length; i++)
cp.remove(panelArray[i]);
cp.remove(buttonPanel);
currentPanel++;
//System.out.println("currentPanel prior to processing: " + currentPanel);
if(currentPanel<(answers.length-1))
while(answers[currentPanel]<=0 && currentPanel<lastPanel)
currentPanel++;
for(int i=0; i<panelArray.length; i++)
panelArray[i].removeAll();
//comboArray[i].removeAll();
//textArray[i].removeAll();
panelArray = null;
comboArray = null;
textArray = null;
panelArray = new JPanel[answers[currentPanel]];
inputLabel.setText(getInputLabelText(currentPanel));
cp.add(inputLabel);
//test to see if this is the first time reaching this point
//if you haven't reached this point before, vector will be null
boolean firstTime = false;
if(nameVectors[currentPanel]==null)
firstTime = true;
if(firstTime)
nameVectors[currentPanel] = new Vector();
typeVectors[currentPanel] = new Vector();
comboArray = new ClassComboBox[answers[currentPanel]];
textArray = new StringTextField[answers[currentPanel]];
//establish the proper # of combo boxes & text fields
int len = panelArray.length;
for(int i=0; i<len; i++)
panelArray[i] = new JPanel();
panelArray[i].setLayout(new BoxLayout(panelArray[i], BoxLayout.X_AXIS));
comboArray[i] = new ClassComboBox();
if(!firstTime)
comboArray[i].setSelectedItem(typeVectors[currentPanel].get(i));
panelArray[i].add(comboArray[i]);
textArray[i] = new StringTextField();
if(!firstTime)
textArray[i].setText((String)nameVectors[currentPanel].get(i));
panelArray[i].add(textArray[i]);
cp.add(panelArray[i]);
if(currentPanel==lastPanel)
buttonPanel.removeAll();
buttonPanel.add(backButton);
buttonPanel.add(finalButton);
buttonPanel.add(cancelButton);
backButton.setEnabled(true);
cp.add(buttonPanel);
//textArray[0].requestFocus();
//System.out.println();
//System.out.println("textArray[0].isVisibile: " + textArray[0].isVisible());
//System.out.println("textArray[0].isDisplayable: " + textArray[0].isDisplayable());
//System.out.println("textArray[0].isFocusable: " + textArray[0].isFocusable());
//textArray[0].grabFocus();
pack();
//System.out.println();
//System.out.println("textArray[0].isVisibile: " + textArray[0].isVisible());
//System.out.println("textArray[0].isDisplayable: " + textArray[0].isDisplayable());
//System.out.println("textArray[0].isFocusable: " + textArray[0].isFocusable());
textArray[0].grabFocus();
setLocationRelativeTo(owner);
setVisible(true); -
Camera (focus) problem - help?
Duplicate post, please see: Camera (focus) problem - help?
Message was edited by: Admin ModeratorWarranty is valid only in country of original purchase. You have to return
the iPhone to the US for evaluation. Either you return it personally or send
it to a friend/relative/co-worker in the US to take into Apple. Apple will not
accept international shipments for evaluation nor will Apple ship out of the
country after repair/replacement.
Have you tried the standard trouble shooting steps: restart, restore, restore
as new iPhone? -
MSI StarCam Clip II focus problem
Hello,
I just received MSI StarCam Clip II and after installation there is a problem with autofocus.
After even tiny movement of object in focus the camera is trying to auto focus again, but it takes few seconds.
Problem is that the movement can be very very small almost like eye blink, but the camera is trying to focus like it was turned from shortest focus to infinite then it stays there for a second and after another small movement of the object it focuses again to correct focus.
Object is face or person.
Should I go to vendor for replacement or can I change some settings?
Thank you
Regards
PetrIt's probably having trouble focusing because of insufficient light. Try to increase the amount of light in the area, especially light falling directly on your face.
Maybe you are looking for
-
I can't submit (button is gray)
Everything is all right, (I think) Settings destination, targets, ... But I simply can not submit.
-
Both me and my wife have ipad minis and iphone 5. I want to use one itunes account for both of us. Is that possible.
-
Hi All, My client has typical requirement where they want free form text from Portofolio Item to be printable or exportable documents.For which I think only option is to design Crystal Report on SAP PPM Portfolio Item Notes(Portfolio Item Details>Ove
-
Status of Procedures running in parallele
Hi All, I want to know how to get status of a procedure running in parallel . Package is as follows :- Package P DECLARE l_jobno NUMBER ; l_jobno2 NUMBER ; l_jobno3 NUMBER ; Procedure X dbms_job.submit( l_jobno, 'U;' ); dbms_job.submit( l_job
-
I have developed local entity bean in weblogic 8.1 but i wouldnt able to get the Initial Context of the Bean. It throws javax.naming.NoInitialContextException But in jndi tree it shows the bean.. the problem is only for Local Bean Remote Beans are wo