I dont have any idea help
heloo
this is code for My jframe
i put filemenue but there is problem when i click on menue drop menu is not visible but menue item do work (if u now where the items are )
if you have no idea then is it possible to create 3 different menue and ask action performed to look at their event instead of Jmenue item.
because if i cant find solution then thats my only way
but how should i ask for actionPerforme to listen to them.
class ChessMa extends JFrame implements ActionListener {
JMenuItem item;
JMenu m;
JMenuBar bar;
public ChessMa()
{ setTitle("CHESS PLAYER GAME" );
setSize(400,490);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent e) {
System.exit(0);
JMenu m= new JMenu ( "File");
m.addActionListener(this);
m.setPopupMenuVisible(true);
item =new JMenuItem("Save");
item.addActionListener(this);
m.add(item);
repaint();
item=new JMenuItem("Load");
item.addActionListener(this);
m.add(item);
JMenuBar bar = new JMenuBar () ;
bar.add(m) ;
setJMenuBar(bar);
} public void actionPerformed(ActionEvent e)
//if (e .getSource() instanceof item)
String arg= e.getActionCommand();
if (arg.equals("Save"))
{ System.out.println("save");}
else if (arg.equals("Load"))
{System.out.println("load");}
else if (arg.equals("File"))
{System.out.println("���22222222���!!");}
}public class ChessMan{
public static void main(String[] args) {
JFrame frame = new ChessMa();
ImageIcon customImageIcon = new ImageIcon("ac516.gif");
Image customImage = customImageIcon.getImage();
frame.setIconImage(customImage);
// Japplet Class
ChessPlayer javaAppletication = new ChessPlayer();
javaAppletication.init();
javaAppletication.start();
Container content = frame.getContentPane();
content.add(javaAppletication, BorderLayout.CENTER);
javaAppletication.setBackground (Color.black);
frame.setVisible(true);
frame.show();
frame.pack(); // invokes getPreferredSize()
// invokes paint();
i cant see any thing when i press on menu
menue items do work but they are invisible
|_______________________________
|File|
|-------------------------------
now when i press file i cant see any menu item
they do work but not viewable.
tanx
dont look at this question i found my error
i put answer for the people who have same problem
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
Similar Messages
-
Is there any way of exporting a clip (example 1 hour) into 4 seperate 15 min clips at the same time? Or does anyone have any ideas along the same lines to save time? Add my skype baconhousevidz if you can help or are unsure of what im asking
thanks everyoneBaconHouseVidz wrote:
… at the same time…
in hope to speed things up?
no, no effect. -
I've tried to d/l itunes 3 times and every time I get this message: .....Downloads\iTunesSetup.exe.part could not be saved, because the source file could not be read. I have no idea what I'm doing. Does anyone have any ideas to help? Cheers.
I've tried to d/l itunes 3 times and every time I get this message: .....Downloads\iTunesSetup.exe.part could not be saved, because the source file could not be read. I have no idea what I'm doing. Does anyone have any ideas to help? Cheers.
-
Hi, I need help my computer is not starting up at all, nothing happening when I press the button on/off. The battery charger is working as using it for another laptop. Not sure what to do. Anyone have any idea? many thanks
You could try a SMC reset:
http://support.apple.com/kb/HT3964
If no change, do what Allan advises.
Caio. -
I dont have any volume, I dont have any volume on an ipad 4 can you help me
I dont have any volume on an ipad 4
Hi Jlucseg,
If you are having audio issues with your iPad, you may find the following article helpful (it is aimed at the iPhone, but the steps should be similar with the iPad):
iPhone: No sound or distorted sound from speaker
http://support.apple.com/kb/ts5180
Regards,
- Brenden -
i have ipod 4th gen, just updated ios 6, after all... i lost all of my photos, and i don't have any idea what to do to get my photos back, i have thousands photos at my ipod, pleeeaasseee... help me....
I updated to ios 6 on my iPod touch earlier and had the same issue. I think iCloud has been backing mine up though. I freaked out because all 500 of my photos were gone and my stupid self didnt do a back up... But then they all reappeared :..) Maybe i just got lucky? Good luck though..
-
how would my iPhone4s help a stranger/Police/Medic to know my identiy. The iphone4s is locked and the app for I.C.E. cannot be opened. I am now considered Jane Doe cause I dont have any ID on me.
If you're concerned, you could always create wallpaper with some sort of ID/contact information and place it on the lock screen. I wouldn't suggest using any direct contact for you, of course, for privacy reasons, but perhaps some sort of "neutral" emergency contact such as a relative's cell phone.
Or just carry some sort of ID; depending on a cell phone for identification probably isn't reliable regardless of the phone used. A MedicAlert bracelet or something similar might be your best option since that would allow emergency responders to get your information while still protecting your privacy.
Regards. -
Cannot activate "find me" on my macbook air its says update recovery systeme. But I checked and i dont have any update. Help please!
Same problem here! MacBookPro with SSD. 10.7.2
Disk Utility didn't find any problems. -
I've just installed Mavericks on my Macbook Pro, which took forever to install, and everything appears to be fine except for iPhoto. When I try and open iPhoto I get a popup saying its not supported by this OS. Anyone have any ideas??? Help please.
Click App Store from your Apple menu drop down menu then select Updates from the App Store menu bar.
-
I Have Purchase ipod touch with ios5 . while create apple id the none option in Payment Method dose not Apper . I dont have any visa or mastercard . plese help ?
How Shold I ProceedHello JadeGirl13,
Thanks for using Apple Support Communities.
Please see the support article below that explains why you may not be able to select none as a payment type.
Why can’t I select None when I edit my Apple ID payment information?
http://support.apple.com/kb/TS5366
Take care,
Alex H. -
I have just created an Apple Id for itunes, it is allowing me to get to the debit card stage but they no longer accept Visa Debit, there is no other option for me as i dont have any other cards and there isnt a 'none' option! HELP!!
How did you create the account ? Unless you followed the instructions on the page that you post from exactly then you won't get the 'none' option and you will need to enter payment details - those instructions won't work on existing accounts.
I tried those instructions a week ago in response to another thread and I got the 'none' option on it e.g. on my computer's iTunes I logged out of my existing account, found a free app in the store, clicked on its 'free' price, clicked on 'create Apple id' on the popup, and after agreeing to the terms and filling in my details I was able to select 'none' as my payment option and download a free app with it. -
When I updated my ipods touch os version it wiped out all my software I had paid for, my pictures, music, videos, contacts everything. What a rip off. I would just go back to my last version, but I'm sure that wouldn't help. What a racket, make people buy software then put out a new version and wipe there system so they have to buy the software again. Anyone have any idea's?
You can redownload iTunes pruchases by:
iTunes Store: Transferring purchases from your iOS device or iPod to a computer
The iPod backup that iTunes makes during every sync and and as the a early step of an USB update does not contain synced media like apps and music. It has aloways been that way. If rhe synced media is not in your iTunes library when you do the restore it can't be synced to the iPod during a latter part of the update. See:
iTunes: About iOS backups
iOS 5: Updating your device to iOS 5 -
i have lost my iphone4 and i guess the theft have already clear up the data include my mails and so on. what can i do? i use the iphone only 2months and i dont have any icloud or mobileme acc. how apple can help me?
Apple can't/won't help you:
Reporting a lost or stolen Apple product - http://support.apple.com/kb/ht2526 - "... Apple does not have a process to track or flag lost or stolen product..."
Texas Mac Man links on lost/stolen i-devices - https://discussions.apple.com/message/18781718
Contact the police about the theft. Change passwords on any accounts used with the device. Contact the carrier about discontinuing service and possibly blocking future contracts with the phone. Shop for a new phone. -
How do I find apple id based on serial number, I dont have any other option as of now. any help on this is great.
This is for id with @me.com Thanks.You cannot find out an apple ID from a devices Serial #. It sounds as though you are encountering IOS 7's Activation lock, If that is the case, please see http://support.apple.com/kb/ht5818 which describes this feature, and what needs to be done to make the phone usable is described in http://support.apple.com/kb/TS4515
-
i have no messages in my phone but my storage is 90% full and in my usage it says i have 12MG in messages (saved) but i dont have any messages in my phone - where are they saved ? how can i delete them? please help
pamalushka54,
We want to make sure that we get your phone up and running. Can you look to see where you have the most stuff stored at. Settings>General>Usage>Storage.
This will tell you what exactly is using everything. Then you can delete things from there.
RobinD_VZWSupport
Follow us on twitter @VZWSupport
Maybe you are looking for
-
Migrated from 2007 to 2013 - Sharing Calendars broken?
Issue: User Test1 cannot create calendar items for user Test2 and vice versa, regardless of permisions. No amount of security permissions allow a user to create items on another user's calendar. We've done it the powershell way ((Get-Mailbox) | Forea
-
Page will not load... java was updated and all...
I need to do an online training course. I was told that my java needed to be updated and it was. When I go to the sight, it opens a new window and shows an icon that the page is loading, but it never does.
-
I just bought the new iMac 3 weeks ago with the magic mouse which I LOVE. But in the past week I have lost the right click function 3 times now. It acts like the right click option is turned off, which I verified and tried to reset and set back which
-
Anyone know how to set file associations for QT in Inno Setup?
I am working on an app that requires QT to play .smi files and can't seem to get it to work. I was using this code in the Inno Setup file: Root: HKCR; Subkey: ".smi"; ValueType: string; ValueName: ""; ValueData: "QuickTime.smi"; Flags: uninsdeleteval
-
Cannot establish a working VPN connection...period
I am going nuts. I have been trying to get a vpn connection established for two weeks. I am using a Linksys BEFVP41 router and have tried to connect with Snow Leopard's built-in Cisco ipsec vpn, IPSecuritas, and VPN Tracker. No luck. I'm willing to r