Focus on to a checkbox which has no label
I have a screen which has few checkboxes with out labels.. and when I tab through them I dont know which has the focus(visually). This problem is because the focus is painted to the label of the checkbox not the checkbox!!
Can anyone give me a wayout ASAP!!
Thanks in advance...
Sounds like you might need to create a custom UI for JCheckBox that has different focus behavior. The UI delegate for JCheckBox extends BasicRadioButtonUI, which has a method:
protected void paintFocus(Graphics g,
Rectangle textRect, Dimension size){
}This method is overridden in the various PLAFs to paint focus as the LAF defines. Since caption-less check boxes are not the norm, the
rectangle that is being painted will be empty. When you override the
paintFocus() method you may want to recalculate what the
focus rectangle is so it is more appropriate.
Replace the UI delegate for a checkbox using the setUI() method and that ought to do it.
Mitch
Similar Messages
-
Jdev11g: Possibility to determine component which has the focus ?
Hi,
we have a customer request to display (internal) informations about the field and the corresponding VO which has the cursor focus at the moment (for problem analysis purpose)
If the mouse cursor is in an input field and the user press a button or select a context menu he want to see this information e.g. in a popup.
Is it possible to determine the component ID of the field which has the focus? (hopefully the input field does not loos the focus if user opens e.g. the context menue)
If yes, whats the best way to find from the component ID to the corresponding VO?
11g, ADF BC
regards
PeterPeter, sorry for the mix up.
getContextComponent(..) is one of my private helper methods for a special case. I think you don't need it in your case. Check the UIComponent you get back from actionEvent.getSource() if it's the input field you are looking for, if not check its parent.
In my method I walk down the component tree to get a special component I'm interested in.
Heres the code: private UIComponent getContextComponent(UIComponent aUI)
try
UIComponent ui3 = aUI.getParent().getParent();
Map<String, Object> attr = ui3.getAttributes();
String obj2 = (String) attr.get("_launchId");
UIComponent uiXXXX = JSFUtils.findComponentInRoot((String) obj2);
if (uiXXXX.getChildCount() > 0)
UIComponent uiC = uiXXXX.getChildren().get(0);
return uiC;
else
return uiXXXX;
catch (Exception e)
return null;
}Timo -
I am trying to download photos from my iPod to either an external hard drive or my computer, which has a Windows operating system. The iPod should function like an external hard drive, right? My photo files/computer/hard drive were damaged. Can I put my photos on the iCloud, and then save on external drive? Not sure how to o this either. I lost a few years of baby photos. Thanks for any help!
iTunes syncing to iPods (that are not iPod touch) mostly goes one way, from computer to iPod. For photos, at the time you synced the photos to the iPod, there is a setting that you needed to have enabled in iTunes if you later want to recover them from the iPod. This setting is on the iPod's Photos tab in iTunes (where you set up photo syncing). There is a checkbox for Include full-resolution photos.
IF that checkbox was checked, you can Enable disk use on the iPod's Summary tab, and find the full-res photo files in the Photos folder on the iPod. Otherwise (if setting not checked), when iTunes syncs the photos to the iPod, iTunes converts the images to a very low-resolution version that is optimized to fit the small iPod screen and stores the image data in a single database file (to save storage space). There may be third-party software that can extract separate photos from that database file, but the resulting photos will look bad blown up to computer screen size. -
my old pc was running low in memory and i don't have enough space to back up in order to instal iOS5. so i got a new pc, installed itunes on it but when i tried to sync my iphone on the new pc, it said it'll erase all contents on my iphone and sync with the new pc which has no contents. it says iphone can only sync with one machine.
can you pls helpSyncing to a new iTunes library or computer will erase your phone. Only if you back up your phone manually before syncing, you can restore your device from that backup again. A manual backup does not include the sync process.
Do this:
Disable autosync in iTunes, connect your phone to your new computer and right click on it in the device list and choose backup. iTunes will backup your device without syncing.
Transfer your purchases the same way, choosing "transfer purchases" this time.
When you connect your phone for the first time, all media content will be erased. But you can restore your settings and app data from your manual backup afterwards.
Don't forget to set up at least one contact and event on your new computer to be able to merge calendars and contacts when you sync the iPhone for the first time.
Music is one way only, from the computer to your device, unless you bought the songs in iTunes and transferred your purchases.
There is 3rd party software out there, but not supported by Apple, see this thread: http://discussions.apple.com/thread.jspa?threadID=2013615&tstart=0
About backups and what's saved:iTunes: About iOS backups
How to back up and restore:http://support.apple.com/kb/HT1414
How to download apps for free again:http://support.apple.com/kb/HT2519
Saving other data is also described here. How to back up your data and set up as a new device
You can also back up iTunes and restore it on your new computer How to back up your media in iTunes , but the iPhone will be erased anyway during the first sync. -
I recently connected my new ipad to my itunes, but now itunes will not recognise my ipod classic, and 50gig of music has gone. ipad connects ok but no longer ipod which has been there for two years! help!!!
What happens when the iPod is plugged in? anything? any errors?
Why is 50GB of music gone? All music should exist on the computer. Only a fool would rely on a single device which could easily be lost or stolen to store their content on. -
I am trying to get space on an external hard drive which has some old time machine back up files that I do not need but can not eliminate, even by going into the time machine, clicking on the backup file to be eliminated and using the drop down menu with the gear box symbol to eliminate
I cannot find this 300GB "Backup" in the Finder, only in the Storage info when I check "About This Mac".
You are probably using Time Machine to backup your MacBook Pro, right? Then the additional 300 GB could be local Time Machine snapshots. Time Machine will write the hourly backups to the free space on your hard disk, if the backup drive is temporarily not connected. You do not see these local backups in the Finder, and MacOS will delete them, when you make a regular backup to Time Machine, or when you need the space for other data.
See Pondini's page for more explanation: What are Local Snapshots? http://pondini.org/TM/FAQ.html
I have restarted my computer, but the information remains the same. How do I reclaim the use of the 300GB? Why is it showing up as "Backups" when it used to indicate "Photos"? Are my photos safe on the external drive?
You have tested the library on the external drive, and so your photos are save there.
The local TimeMachine snapshot probably now contains a backup of the moved library. Try, if connecting your Time Machine drive will reduce the size of your local Time Machine snapshots. -
HI Team, Recently One week back I bought a new iphone 5 from India. They have given me a used mobile which has a different IMEI number when compared to the IMEI number present on the box. Please let me know how to proceed further
When you went back to the place where you purchased this phone, & asked them, what did they say?
No one here can help you with this, nor can/will Apple. You need to take this up with whoever you purchased this phone from. -
Problem while inserting into a table which has ManyToOne relation
Problem while inserting into a table *(Files)* which has ManyToOne relation with another table *(Folder)* involving a attribute both in primary key as well as in foreign key in JPA 1.0.
Relevent Code
Entities:
public class Files implements Serializable {
@EmbeddedId
protected FilesPK filesPK;
private String filename;
@JoinColumns({
@JoinColumn(name = "folder_id", referencedColumnName = "folder_id"),
@JoinColumn(name = "uid", referencedColumnName = "uid", insertable = false, updatable = false)})
@ManyToOne(optional = false)
private Folders folders;
public class FilesPK implements Serializable {
private int fileId;
private int uid;
public class Folders implements Serializable {
@EmbeddedId
protected FoldersPK foldersPK;
private String folderName;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "folders")
private Collection<Files> filesCollection;
@JoinColumn(name = "uid", referencedColumnName = "uid", insertable = false, updatable = false)
@ManyToOne(optional = false)
private Users users;
public class FoldersPK implements Serializable {
private int folderId;
private int uid;
public class Users implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer uid;
private String username;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "users")
private Collection<Folders> foldersCollection;
I left out @Basic & @Column annotations for sake of less code.
EJB method
public void insertFile(String fileName, int folderID, int uid){
FilesPK pk = new FilesPK();
pk.setUid(uid);
Files file = new Files();
file.setFilename(fileName);
file.setFilesPK(pk);
FoldersPK folderPk = new FoldersPK(folderID, uid);
// My understanding that it should automatically handle folderId in files table,
// but it is not…
file.setFolders(em.find(Folders.class, folderPk));
em.persist(file);
It is giving error:
Internal Exception: java.sql.SQLException: Field 'folderid' doesn't have a default value_
Error Code: 1364
Call: INSERT INTO files (filename, uid, fileid) VALUES (?, ?, ?)_
_ bind => [hello.txt, 1, 0]_
It is not even considering folderId while inserting into db.
However it works fine when I add folderId variable in Files entity and changed insertFile like this:
public void insertFile(String fileName, int folderID, int uid){
FilesPK pk = new FilesPK();
pk.setUid(uid);
Files file = new Files();
file.setFilename(fileName);
file.setFilesPK(pk);
file.setFolderId(folderId) // added line
FoldersPK folderPk = new FoldersPK(folderID, uid);
file.setFolders(em.find(Folders.class, folderPk));
em.persist(file);
My question is that is this behavior expected or it is a bug.
Is it required to add "column_name" variable separately even when an entity has reference to ManyToOne mapping foreign Entity ?
I used Mysql 5.1 for database, then generate entities using toplink, JPA 1.0, glassfish v2.1.
I've also tested this using eclipselink and got same error.
Please provide some pointers.
ThanksHello,
What version of EclipseLink did you try? This looks like bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=280436 that was fixed in EclipseLink 2.0, so please try a later version.
You can also try working around the problem by making both fields writable through the reference mapping.
Best Regards,
Chris -
I just updated my pages and now it won't load. This is on my iPad. The first version which has the latest version it can have 5.1 or something like that. I am trying to open a document and am worried that if I uninstall and reinstall I will lose all my documents
I just uninstalled it and am waiting for it to reinstall. I sincerely hope that I have not lost everything that I worked on so hard. Now that mobile me is gone, I have not been able to go between devices to transfer things. I was merely trying to take a document I had worked on and open it in pages, but it said my version was too old. When I updated, it wouldn't load. Now I cannot do anything. I hope that the reinstall fixes it without losing everything. Please advise!!! Yes, I am in panic mode.
-
Until recently I have owed 2 iPod Classics - 2007 80gb and 2009 160gb (which has since been returned as it had a very noisy hard drive).
How do I transfer the library from the 160gb to the 80gb in iTunes using Windows Vista.
Nothing seems to help on the Apple support pages, so any help would be appreciated
ThanksThanks for the reply, but not actually sure how to sync a second iPod with the library of the first, as I thought it would not recognise a new iPod for copyright reasons.
Also, the files are in a location on the pc but I had to do lots of formatting amendments in iTunes as most of the stuff was on mp3 files and the formatting was all over the place. I did not want to loose any of the work by simply asking the new iPod to look at the original file and would rather copy en masse from one device to another.
Any help or pointers greatly appreciated
Thanks -
I cannot add a Wi-Fi guest network. Gone to Utilities>Airport Utilities and all I get is an image/browser of my Airport Extreme. Looking for the browser window which has the title Wireless but cannot find anywhere. What am I doing wrong?
Open AirPort Utility. The first screen looks something like this:
Click on the AirPort Extreme and another screen will appear. Click Edit, then the window with the Wireless tab will appear.
If you do not see these screens, you will need to start over and configure your AirPort again. -
Hi,
I need some help!!
In my actual proyect, we are using DS "0FI_GL_10", which has a AIED delta process. Someone knows, if this configuration could carry on any type of extraction problem, such as a duplication of data in BI? This is what it is happening in my proyect. In the inic of "0FI_GL_10", I extract "one" record, and after a few days when I run a delta extraction, I have a new same record in the PSA, (with the same key fileds and attributes than the other). Also, in my tranformation rule, that link my PSA with a DSO, the key figure 0SALE is parameterized as summation in the aggregation, this is wrong and or i have to use a overwrite aggregation? or my problem is in the type on process delta that has the extractor "0FI_GL_10"?
Thanks in advance for any kind of help.
Regards,
Juan ManuelHi
There are chances that this datasource might send in the same records when run in delta mode and that is the reason a DSO is needed with overwrite mode in between.
Also there are a couple of notes stating problems related to this datasource.
Note 1002272,1153944, 1127034
Refer this if you are having specific issues with this datasource
Hope this helps
Gaurav -
I have an early 2011 MacBook Pro which has been running slow for a while. After looking at responses to similar problems I have downloaded and run EtreCheck. Please can someone help me with what it all means.
Thanks in advance.
EtreCheck version: 1.9.15 (52)
Report generated 19 September 2014 08:07:14 GMT+8
Hardware Information: ?
MacBook Pro (13-inch, Early 2011) (Verified)
MacBook Pro - model: MacBookPro8,1
1 2.3 GHz Intel Core i5 CPU: 2 cores
4 GB RAM
Video Information: ?
Intel HD Graphics 3000 - VRAM: 384 MB
Color LCD 1280 x 800
System Software: ?
OS X 10.9.4 (13E28) - Uptime: 0 days 0:4:29
Disk Information: ?
Hitachi HTS545032B9A302 disk0 : (320.07 GB)
S.M.A.R.T. Status: Verified
EFI (disk0s1) <not mounted>: 209.7 MB
Macintosh HD (disk0s2) / [Startup]: 319.21 GB (147 GB free)
Recovery HD (disk0s3) <not mounted>: 650 MB
MATSHITADVD-R UJ-898
USB Information: ?
Apple Inc. FaceTime HD Camera (Built-in)
Apple Inc. BRCM2070 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Inc. Apple Internal Keyboard / Trackpad
Apple Computer, Inc. IR Receiver
Thunderbolt Information: ?
Apple Inc. thunderbolt_bus
Gatekeeper: ?
Mac App Store and identified developers
Kernel Extensions: ?
[not loaded] com.seagate.driver.PowSecDriverCore (5.2.4 - SDK 10.4) Support
[not loaded] com.seagate.driver.PowSecLeafDriver_10_4 (5.2.4 - SDK 10.4) Support
[not loaded] com.seagate.driver.PowSecLeafDriver_10_5 (5.2.4 - SDK 10.5) Support
[not loaded] com.seagate.driver.SeagateDriveIcons (5.2.4 - SDK 10.4) Support
[loaded] com.sophos.kext.sav (9.1.55 - SDK 10.7) Support
[loaded] com.sophos.nke.swi (9.1.50 - SDK 10.8) Support
Launch Daemons: ?
[loaded] com.adobe.fpsaud.plist Support
[loaded] com.microsoft.office.licensing.helper.plist Support
[running] com.sophos.autoupdate.plist Support
[running] com.sophos.configuration.plist Support
[running] com.sophos.intercheck.plist Support
[running] com.sophos.notification.plist Support
[running] com.sophos.scan.plist Support
[running] com.sophos.sxld.plist Support
[running] com.sophos.webd.plist Support
[running] com.trusteer.rooks.rooksd.plist Support
Launch Agents: ?
[loaded] com.divx.dms.agent.plist Support
[loaded] com.divx.update.agent.plist Support
[running] com.sophos.uiserver.plist Support
[running] com.trusteer.rapport.rapportd.plist Support
User Launch Agents: ?
[loaded] com.adobe.ARM.[...].plist Support
[running] com.amazon.music.plist Support
[loaded] com.google.keystone.agent.plist Support
[not loaded] jp.co.canon.Inkjet_Extended_Survey_Agent.plist Support
User Login Items: ?
iTunesHelper
TomTomHOMERunner
AdobeResourceSynchronizer
Dropbox
Internet Plug-ins: ?
FlashPlayer-10.6: Version: 15.0.0.152 - SDK 10.6 Support
DivX Web Player: Version: 3.2.1.977 - SDK 10.6 Support
AdobePDFViewerNPAPI: Version: 11.0.09 - SDK 10.6 Support
AdobePDFViewer: Version: 11.0.09 - SDK 10.6 Support
Flash Player: Version: 15.0.0.152 - SDK 10.6 Support
EPPEX Plugin: Version: 10.0 Support
Default Browser: Version: 537 - SDK 10.9
OVSHelper: Version: 1.1 Support
QuickTime Plugin: Version: 7.7.3
SharePointBrowserPlugin: Version: 14.4.4 - SDK 10.6 Support
iPhotoPhotocast: Version: 7.0 - SDK 10.7
Safari Extensions: ?
Ultimate
Audio Plug-ins: ?
BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
AirPlay: Version: 2.0 - SDK 10.9
AppleAVBAudio: Version: 203.2 - SDK 10.9
iSightAudio: Version: 7.7.3 - SDK 10.9
iTunes Plug-ins: ?
Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
3rd Party Preference Panes: ?
Flash Player Support
Perian Support
Trusteer Endpoint Protection Support
Time Machine: ?
Skip System Files: NO
Auto backup: YES
Volumes being backed up:
Macintosh HD: Disk size: 297.29 GB Disk used: 160.38 GB
Destinations:
Data [Network] (Last used)
Total size: 2 TB
Total number of backups: 99
Oldest backup: 2012-04-20 17:05:32 +0000
Last backup: 2014-09-18 23:49:25 +0000
Size of backup disk: Excellent
Backup size 2 TB > (Disk size 297.29 GB X 3)
Time Machine details may not be accurate.
All volumes being backed up may not be listed.
Top Processes by CPU: ?
6% InterCheck
5% iCalExternalSync
3% WindowServer
2% CalendarAgent
2% SystemUIServer
Top Processes by Memory: ?
152 MB SophosScanD
147 MB InterCheck
106 MB SophosAntiVirus
66 MB Dropbox
57 MB com.apple.iTunesLibraryService
Virtual Memory Information: ?
161 MB Free RAM
1.55 GB Active RAM
1.41 GB Inactive RAM
902 MB Wired RAM
611 MB Page-ins
0 B Page-outsUninstall Trusteer software
http://www.trusteer.com/support/uninstalling-rapport-mac-os-x
Remove Sophos
https://discussions.apple.com/message/21069437#21069437 -
How do I connect my iMac to an LG TV which has an HDMI, USB, and RGB IN port ?
I am trying to screen share between my iMac and an LG television which has USB, HDMI, and RGB IN ports; is there a cable which will enable me to do this ?
Depending on what you mean by "sharing" you also may be a good candidate for an AppleTV. Connecting content stored on your Mac is pretty easy with one, you can display photo's, movies & music through it. In addition you can use your LG as a simple external display using Airplay assuming your iMac has Airplay capabilities. If any of that interests you then look at Apple's web site on AppleTV, you can buy them refurbished from Apple's online store for $75.00.
https://www.apple.com/appletv/
http://store.apple.com/us/browse/home/specialdeals/appletv -
I have similar problem, my apple tv which has always worked properly with my Samsung tv will no longer play any audio after the latest 5.1 upgrade. Very frustrating as it was working perfectly before. I am starting to not trust apple upgrades until proven for example ios6 on iPhone with that stupid map app instead of google maps.
I just want to buy and hear my iTunes music and videos on my apple tv, could before cant now. Thank you apple. Time to pack up the apple tv and start torrenting without the ios-bs.
Disheartened apple fan.Welcome to the discussion forums.
Try going to synching in the sources menu on your tv and selecting 'change itunes library', when it gives you the passcode check itunes to see if the tv is showing up as a new device, if so try entering the pass code. It may be that your tv is seeing itunes as a different library because of a recent upgrade.
Maybe you are looking for
-
Cannot send some pictures from IPhoto '08 using ichat
For some reason I cannot send some pictures in my library over ichat or yahoo messenger? any ideas what happen? never had this problem before
-
With this code, I create a textbox with search option. But how to do this for all the lines of a column of the Matrix? I want to be able to do this research study in each row of the matrix, Naque column. SAPbouiCOM.EditText oEdit = null;
-
SSIS Package opened in Design mode instantly going to MODIFIED
Hi, I've got a really strange error - I've searched around and can't find anything relevent for it. When I open a particular SSIS package in BIDS It loads and instantly goes to a modified state (asterisk next to file name). Nothing has changed in t
-
How do I change my security questions without having to answer my security questions??
Here's the deal. I'm a little drunk, just tryin to buy a good song I heard on The Voice (yeah whatever) and I can't remember my password, my email info, or my security questions. Ten minutes later and I remember my itunes password. Great right? Well,
-
How can I search my library for duplicates?
Is it possible for iPhoto to search the entire library for duplicate photos?