How can I associate file with my swing aplication
I dont know if this section is correct, bud I couldnt find more suitable section for my problem.
I have a swing aplication, and I have some saved serializabled objects (strings etc), what i need to do, to associate my files with system, so I can (after double-clicking on this file) open my application and load variables what are stored in it.
thanks for replies
for instance: I have program which has some variable...for example String s = "hello"then there is method save(File file)
which has code:
FileOutputStream fos = new FileOutputStream(file);
ObjectOutputStream oos = new ObjectOutputStream(fos);
try {
oos.writeObject(s);
oos.close();
} catch (Exception e){
// handle
}I want that file (after double-click on it) to start my aplication, an initialize String s from this file.
Like you can double-click on your favourite mp3 file, and it will automaticly open your winamp and initialize a playlist with this song
I dont know if it is possible to do this via serialization. That why Im asking here.
thanks for another replies :)
Similar Messages
-
how can I cancel an order made as apple guest? or how can i associate it with an account?
You should still have an order number
call 1-800-MY-APPLE -
How can I see file with chinese name in Sunray USB storage?
hi, All
I installed Sunray4u3 on Solaris0805. the application server is win2003EE.
I accessed usb storage from win2003, but I can only see files with English name , and could not see files with chinese name. Why? who can help?
best regards
xiong weiYou might want to make sure your credit card is listed in the billing information associated with your Apple ID (see http://support.apple.com/kb/ht1918).
Also, to change the From name that appears when you address emails on and iOS device, go to Settings>Mail,Contacts,Calendars...tap your iCloud email account, tap you iCloud account at the top, tap Mail at the bottom, then enter the name you want to use in the Name field at the top.
To change the From name on your Mac Mail, go to icloud.com, sign into your account, open Mail, click the gear shaped icon on the bottom left and choose Preferences, go to the Accounts tab and enter the name you want to use in the Full Name field and click Done. Then quit Mail on your Mac and re-open it. Your new From name should now appear in the drop-down list when you compose a new email. -
How can I associate file types with Dreamweaver so they open automatically?
I've just installed Dreamweaver CS4 under Windows XP
Professional but I've an issue with which files types are
associated with Dreamweaver.
When I first ran DW CS4 the application invited me to select
which type of files to associate with Dreamweaver: .css, .js,
.xslt, php, etc. I deselected a few as I was using another editor
for those at the time. However, I would now like to associate PHP
files with Dreamweaver CS4, so that when I double-click a PHP file
in Windows Explorer it opens in Dreamweaver CS4.
How can I do this?
Is there a way to run the initial dialog box again that
invited me to select which files to associate with Dreamweaver?
Thanks in advance
GarethHowever, I would
> now like to associate PHP files with Dreamweaver CS4, so
that when I
> double-click a PHP file in Windows Explorer it opens in
Dreamweaver CS4.
Browse to any PHP file with Windows Explorer, right click
then select Open
With..., Choose Program and select DW CS4 (and tick the
"Always..." box to
make this the default file association)
Regards
John Waller -
How can I encrypt files with java ?
I don't want others to see the content of my file.so,i try to encrypt the file.
but i don't know how to do .i think there may be two ways to do that .one is coding the file with some encrpytion tachniques .Another is try to add a locker to the file ,when someone try to read it ,the trigger is touched off.This trigger need you to input the password.
These are my granted think .but i don't how to do.if you know,can you please to share with me? Thank you!The JCE is a cryptogrpahic framework for Java. There are numerous tutorials available on the web and a guide is avaiable at http://java.sun.com/j2se/1.4.2/docs/guide/security/jce/JCERefGuide.html .
-
How can ipad share files with windows pc?
Can the iPad be connected to a Windows 7 PC and used to share files between Word and Pages?
Word files can be opened and edited in Pages on the iPad and you can send the files to the iPad via email, by using a service like DropBox or by using iOS file sharing. This will explain how to use file sharing.
http://support.apple.com/kb/HT4094
You might want to be aware of the fact that some editing features will be lost from the Word files when you open them Pages - fonts will be limited - some formatting issues may arise - Pages on the iPad just doesn't work like Word on a computer. -
Lion - how can I share files with another account on same computer
Lion has dropped public files and airdrop only works over wifi. How do I share files between two accounts on same computer?
I found and turned on "system preferences / file sharing" but also had to go to Finder preferences and select show "Hard Disks" to be able to see other users public folder.
-
Wanted to buy ipod nano, but got a problems with payment information. And now can't cancel an order.
Where did you try and order it? From Apple's website? Perhaps this page can help.
Viewing & Changing Orders
B-rock -
How should i share file with other devices such as nokia,blackberry and etc using bluetooth
I want to share files between other deivce such as nokia but couldnt, could u help me tell how can i share files with other devices???
@AKRBTN: Thanks for the reply and info.
That is a solution, but it really isn't viable.
It is sad that apple refuses to support this.
A simple example: Sitting somewhere with no signal and you want to share a file (photo) with your colleague or friend, who happens to be right next to you.
Or even if there is signal and you don't want to be paying fees or data charges.
Or you may be in a rehearsal studio and need to share that very important file and have no time to go outside and get signal and try to send the file, which then everyone else has to go outside and catch the signal and pay fees.
Anyway, I see that this is a dead end with apple, so I guess I will be back to carrying 2 phones around again.
Peace,
SB -
How can I associat ".swf" files with flashlite 2.1
How can I associate ".swf" files with flashlite 2.1? When I
install flash lite 2.0,it can do ---- click .swf files system can
autoly use flashlite to play.But now I install flashlite 2.1,it
lost this ability return as "unknow files formate".
Now,how can I reassociate ".swf" with flashlite 2.1?
first: I must use flashlite 2.1.
second:I must click .swf file directly.
I know another way to open :open the player and then find the
.swf,and open it. But ,unfortunately,I can not use this way to
open.Now I will be looking for another way.unfortunately, the 2.1 developer edition you have installed
has not overwritten the original version integrated into the
symbian OS by the manufacturer. This means that the only way to
open the 2.1 files is to open the 2.1 player from your apps menuu,
and click on the swf file. You will only get direct access if the
updated player is in a firmware update for you handset.
Matt
http://www.outside-media.co.uk/blog -
How can i associate a template with my message,
hi,
how can i associate a template with my message only.
where is the location of templage file?
thanks in advance.
zam_orahi,
i found out system Mailer item type and messages.
so i hople , i could take a copy of the template message and modify and associate with my notification , right?
but how i know , which template my notification is currently using.?
we are using Outlook as email client.
thanks.
zam_ora -
How can I associate 2 appleids with one account or use a different Appleid for imessage as described in another post?
I have rejoined the iPhone community, not with one iPhone but with two. My wife agreed to move from the unenlightened!
I have set up both under my apple account and want to keep it that way. But I do not want iMessages going to both phones. I would like separate message queues but share all apps and other purches from the store.
I have created a separate AppleID for her but under Settings>Message>Receive At (it currently says 2 addresses) > ... will not allow me to change the current eMail address and when I add hers (her appleid) it errors out. The only thing I can do in the Apple ID field is to manage my account and not change it to hers.
How can I have 2 iPhones (and my iPad) on the same account but have separate identies?
Thanks,
LpGrumpy1. Yes. Restart with the Option key held down as needed.
2. No, it won't be a problem.
(83373) -
How can i copy files from one external hard disk to another using macbook pro with retina display
How can i copy files from one external hard drive to another using macbook pro with retina display?
That's odd - if you open Disk Utility (Applications->Utilities) and select the disk(s), how are they formatted? If you're only going to be used with your Mac, they should be formatted as "Mac OS Extended (Journaled)".
Clinton -
I need to change a photo into a video file in order to post in youtube. How can I do this with my mac mini?
When I go to import, the choices are :
movies
camera archive
imovie for IOS
imovie for HD
It refuses to import a photo with any of these choices, which is located on the desktop or in a folder. It's a regular .jpg
There are instructions to drag it. I put it there, and it bounces right back. The photo will not stay.
I just need this one picture to go on so I can post a meditation on youtube. It doesn't come from a camera. -
How I can combine pdf file with other pdf file
How I can combine pdf file with other pdf file ?
Or from Adobe Reader via https://createpdf.acrobat.com/
Maybe you are looking for
-
VHD Size is Maximum Size Allowed Without Using All Space in OS
Hello - I have a Hyper-V VM whose maximum size allowed is 700GB. Currently, the VHD file size is 700GB yet the OS is only using ~400GB (300GB free). Shouldn't the VHD size be about 400GB instead of 700? Every other VM I have checked matches the size
-
Why do LabVIEW 2009 binaries startup so slowly?
I've built a couple of small display front panel applications using the latest LabVIEW [9.0 AKA 2009]. Startup on the development PC is painfully slow as in over a minute to diplay on the screen. The machine is a Pentium 4 class machine with 1GB of m
-
XL Reporter error on report composor - wont launch
When trying to compose a report get the following error. Unable to create component - Report COmposor.ixreportcomposer class not registered looking ofr object with CLSID:{35F4532F-F492-47C1-9203-361B0ESA8E22} Anyone got any ideas.
-
DBF(FPT)- ODBC- Oracle: ORA-28500
How to transfer data from .DBF-tables with MEMO (.FPT-file) to Oracle ? Server=Oracle 9.0.1.1.1 on Win2000Server SP2 client=ODBC-application (Visual Foxpro 6.0 SP5) ODBC driver 9.00.12.00 (31.10.2001) I use Oracle heterogeneous service. In SQL*Plus W
-
Lingering socket connections?
Hi, my setup is WLS 8.1, MQ 5.2, J2SE 1.4.2 on Solaris 8. During tests to shutdown and restart the MQ, we saw many connections in "idle" status. The number corresponds well to the number of MDBs we have in the system.