|
public class ConClass
{
public Connection con = null;
public ConClass(DataSource ds){
try{
con = ds.getConnection();
} catch(SqlException ex){
System.out.println(ex.getMessage());
}
}
public Connection getCon(){
return con;
}
}
public class SaveData
{
private Connection con = null;
public void save(ConClass cObj){
if(con == null){
con = cObj.getCon();
}
}
}
|
|
|
|
|
hi
i am doing some file operations using java. i edit my local system files(like txt) by the file operations.
Now i want to edit the same files which is remotely located.
Example scenario:
Suppose the system having the ip:10.187.39.25. the txt file is located in /usr/src/xxx/yyy.txt.
by using the java program from my system i have to edit the yyy.txt file.
is it possible.? please guide me or send some suggestions.
Regards,
cooldharma06
|
|
|
|
|
The file must be shared from the remote system, and your userid needs to have full read/write access to it, in which case you just use the full path name as above.
Veni, vidi, abiit domum
|
|
|
|
|
I think using a socket can meet your demand.
|
|
|
|
|
cooldharma06 wrote: is it possible.?
Basically no.
To do anything on another computer the other computer must be running an application and you must communicate with that application.
For example, per the other response, if you "share" a file\directory then the OS itself (on each machine) is using a mechanism to create the appearance the file is in both places.
Conversely you could log in to another, again via something running on that machine and run an editor on that machine (which how you logged in is a feature that could be provided) and then you could edit it.
|
|
|
|
|
|
|
i googled and i got some library as JSCH library. and i exploring this. anybody have the idea about this one means guide me...
|
|
|
|
|
I have two Radio Buttons >>>Label 'Y' and 'N' the gap between them is what I want to reduce so they are close to each other.
I am using Mig layout.
|
|
|
|
|
|
How to prevent a Java program to be copied, and crack down on software piracy
|
|
|
|
|
Best way is to insure that the service provided by the company associated with the product provides benefits that make copying the program close to worthless.
|
|
|
|
|
Im having trouble aligning label to center top of the panel
Im Using MigLayout and tried following things but didnt worked
lbl is my label which I want to align in center top.
Code1
panel.add(lbl,"wrap,align center");
Code2
lbl.setHorizontalAlignment(JLabel.CENTER);
Thanks in advance.
EDIT:
I think I have found the answer
panel.add(lbl,"wrap,dock north");
modified 29-Aug-13 0:02am.
|
|
|
|
|
Hello there,
I am planning to develop a GUI that will run on Windows, Linux, Android & iOS. If am right, Java apps don't work on iOS. Is that correct?
Is there an alternative to that?
Which other tool works for GUI development on above mentioned 4 platforms?
Please advise.
Thanks in advance.
|
|
|
|
|
Browsers work on all of them. So something that runs in a browser with, with testing, work on all of them.
|
|
|
|
|
|
Hey guys. We've written a java based messaging program, and we'd like to have someone assist us in porting it to Android. We've tried with one developer, and he wasn't quite as great as he said he was, and we never got it working. We've got information about the program on our indiegogo page HERE. Currently, we're too busy to work on both the PC version and the Android version at the same time, as it would hinder our progress. Anyone interested, please let me know, either on here, or (faster) on Skype: methaneboy. Thanks and looking forward to finding someone to work with
|
|
|
|
|
|
Hmm. Seems like a grey area. I'll post there, and if a mod sees it fit to remove this one, so be it. But it would be nice to leave it in case it catches someone's eye.
|
|
|
|
|
|
Nothing grey about it, these forums are for technical programming questions.
Veni, vidi, abiit domum
|
|
|
|
|
I'll remove it then. I've been inactive for a long time. I misread the guidelines earlier today, on one rule. I thought it had said "Can someone write an application for me to do X". Somewhat dyslexic.
Actually. I can't delete it. I don't know what to do. If a mod finds this, can you lock/remove it?
|
|
|
|
|
how to send mail without using asp page and outlook...
Dilip
|
|
|
|
|
|
I am making a desktop application in swing.I want to add multiple tables in a text file or textarea. providing the table format, contents,rendering must be same . I am able to display the contents on text area but failed to keep the same formatting. I have to generate report at last which contains multiple tables of different sizes from different frames. Suggest me the solution or alternatives
|
|
|
|