|
This is a Java forum, not a JavaScript forum.
Try posting your question on the Web Development forum[^] instead. You are more likely to get an answer there.
|
|
|
|
|
how to print using LPD protocol from command prompt or in java???????
|
|
|
|
|
hi every1,
can sumbody help me by sending some code for my project "loadbalancing in p2p network" in any programming language.
i need this at urgent.
thnx in advance.
|
|
|
|
|
Oo oo! Can I do your homework for you?
Marking backwards - i.e. you loose a mark for each mistake:
Capital for Hi as it starts a sentence -1
everyone -1
Capital for Can; see above -1
somebody -1
'load balancing' is two words -1
Capital for I; see above -1
not 'at urgent' but 'urgently' -1
thanks -1
2/10 is under 40% so:
YOU FAIL!
And I didn't even consider the content.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
I want to built a simple search engine. For do that i want to ignore adverbs, proposition, conjunction from User entered search term. To do that i follow the following steps.
1. Have the list of words you need to remove from search term store in a text file.
2. Get the user input string of words(search term).
3. Then Split and Put it into a string array.
4. Iterate the string array and see if each string is equal to any of the words in the file.(Traverse through the file and match words)
5. If they are not put the words into another string array.
i have done only step 1,2,3. I don't know how to traverse through the file and match words in file and step 5.
please help me.
dharshani
..........
|
|
|
|
|
Hello Friends,
Can i embbed a password protected Excel file which is to uploaded to the wep.Any solution related .jar file .I'm new comer for jsp. Thanks in advance.
With Regards,
MAHESH.K
|
|
|
|
|
Hi,
I am trying to pass a vector of integers through JNI TO VC dll.How will i access the elements in that vector from my Visual C program?
Any help on this is really appreciated.
-Indhu
|
|
|
|
|
I am going to start this project soon so i need different ideas to design my project flow i mean like how would u like this management system to be? so that i can shape my project well
|
|
|
|
|
This reads so much like a homework question / school project. Am I right or just bang on the button?
[BTW, have you visited Hawaii?]
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
hi,
m trying to redirect the output of the binary log file of mysql into some other text file.
the code i've written is ..
Process runtimeProcess = Runtime.getRuntime().exec("cmd /C mysqlbinlog " + fileName + " > c:\\ logDump");
int processComplete = runtimeProcess.waitFor();
this redirects the output, but the "logDump" file formed does not contain the queries, only the general things which are in the binary log file.
if i do the process manually on the command prompt, it works fine.
wots the problem ??? somebody help !!!
|
|
|
|
|
Try changing /C to /K ...
It's not enough to be the best, when you have capability to be great....
|
|
|
|
|
it din't work ...
anybody has any solution ?
|
|
|
|
|
Your code works fine for me as is.
The only thing I can imagine is that perhaps you have spaces in the file name and Window's command processor is not dealing with them appropriately.
Note that the output of mysqlbinlog is a fairly complicated format that includes much more than just the queries run, but you should be able to find them in the output.
Cheers,
-- Scott
|
|
|
|
|
Hi guys,
I have a service that runs and a taskbar icon that allows user to interface with the service. But the taskbar icon is only displayed for the user it was installed for. The service runs for everyone. By everyone i mean all users that log on to that machine even users that remote desktop on the machine but the taskbar icon does not. Is there anyway i can do this?
SystemTray.getDefaultSystemTray().addTrayIcon(disconnectIcon);
Phoenix
|
|
|
|
|
Does anyone know the percentage of computers that can run Java applets?
The only stats I found are from Sun (2008)[^] and are not very detailed or up to date.
Of all forms of sexual aberration, the most unnatural is abstinence.
|
|
|
|
|
Java has become an integral part of our daily lives...
20 million Java powered TV devices
800M+ Java desktop computers, 91% of worldwide desktops
2.1B Java enabled mobile devices
3.5B Java cards
6B total Java devices
7M+ Project GlassFish downloads
Not much detail there.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Hello,
I have a textbox that hold a social security number. I'm using javascript and the onkeypress event to auto format the text as the user types, i.e. they type 123 and then a dash is automatically inserted as the 4th character. The problem is that there is a one character lag so that the user doesn't know the dash has been appended until they enter their next character. What I'd like to know is if there is a way to refresh the textbox immediately after the dash is entered so that the user sees it on screen before they type again. The working code snippet is below.
Thank you in advance.
s1 = new String(Form1.f4.value)
if(s1.length == 3 || s1.length == 6)
{
s1 += "-";
Form1.f4.value = s1
}
|
|
|
|
|
Javascript != Java, this is more appropriate for the Web Development Forum[^].
Anyway, to answer your question, use the onkeyup event.
If at first you don't succeed, you're not Chuck Norris.
|
|
|
|
|
I think AJAX may deal with your problem,but i am poor at AJAX.
Study Hard!
|
|
|
|
|
Hello,
i've made a program that runs fine when i run it with netbeans (F6), but when i build the project and launch the application, one of the two main frames doesn't appear! Heres my Main code:
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Menu().setVisible(true);
}
});
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new ToolBar().setVisible(true);
}
});
}
When I run the program with netbeans, both the toolbar and menu (who both extend from JFrame) appear, but when i build the .jar and launch it, only the toolbar appears. Any idea why this might happen???
thanks
Dave
PS.: if im not in the right forum, what forum should this go in?
edit: Im loading a dll from the jar, and it launches fine when i double-click on it, but when i launch from the console, an error says it cant find the dll and the program exits
|
|
|
|
|
problem "solved"
for some reason the executable didn't like the absolute layout, so i changed it for a freeDesign... still no clue why, since it runs fine within netbeans:P
|
|
|
|
|
If you choose "Absolute Layout" in NetBeans Matisse (the GUI designer) it uses a layout manager called org.netbeans.lib.awtextra.AbsoluteLayout which is not part of the standard Swing toolkit. If you choose "Free Design" it uses javax.swing.GroupLayout which (as you might guess from the name) is a standard Swing class. My guess is that AbsoluteLayout has some sort of dependency on other NetBeans classes which is going a bit wrong when you deploy it.
Generally speaking, Java Swing applications tend not to use absolute layouts (there are always exceptions, of course) and I would say that if you are happy to do all your visual design through the NetBeans GUI, you can stick to Group Layout ("free design") as it will do 99% of what you will ever want, and works very well with Matisse (they were designed in tandem, as far as I am aware).
If you find yourself hitting that 1% or wanting to roll your sleeves up and do some coding, there are plenty of other layout managers, of which I would recommend either JGoodies Forms or MiG Layout. Both excellent, both free.
|
|
|
|
|
thanks for the info, i didn't know that. Ill stick to the free design, its fine for what i need
|
|
|
|
|
Hello everyone, I'm trying to find the Java source code of the simple Client/Server program to transfer files using UDP protocol! Anyone help me!? Thanks
|
|
|
|
|
Hope you know UDP is not reliable, in the sense that packets can (and will, even on a lan) be lost...
Rozis
|
|
|
|