Hello. I've got 2 questions.
I am running the Windows tasklist command like so:
tasklist /fi "STATUS eq running" /fi "Imagename eq notepad.exe" /nh
This returns all the processes of notepad.exe running.
But it gives all the detail (name/PID/memory usage/etc.) My first question is it...
By the way here is a link to an article that also includes free source code to interface twain and Java. I found it quite helpful. The commercial applications does seem to be more polished and feature complete, but I will investigate to see if they are really necessary for my needs...
Hello
I just want to know if anyone here has had any experience regarding interfacing a Java application with a scanner?
Basically what I want to do is have a user click a button on a Java app that will let it automatically scan a document that is in the scanner. Then it must take the picture...
I am having a problem with my xpath queries in C#.
I have the following xml file:
<?xml version="1.0" encoding="utf-8" ?>
<config>
<data_module>
<table_name>users</table_name>
<fields>
<field>
<name>name</name>
<type>string</type>
</field>
</fields>...
Hello.
I am a Java programmer just getting into ASP.NET with C#.
I have started writing an xml schema that will be used to the pages so that it can be created dynamically from the xml.
I just need some input from people with experience in this type of thing to make sure I am on the right path...
Hello
Let me explain the problem I am having:
I have two tables, data_t and a_data_t
a_data_t is the archive table of data_t
The two tables are exactly the same.
In the table values are stored:
Value (A numeric value)
Code (A text code to identify a report with data)
Line (The line number)...
You can use the isDirectory() or isFile() methods to check for file or folder.
Actually listFiles() will work better than list() because it will return an array of File, which you can then use.
You can use File class to do this.
Quick and dirty and not checked (should work somewhat like this):
File file = new File(YOUR_PATH);
String[] list = file.list(); // Returns list of files as string array
Check File in die API
Hi
I need to change the size of fonts at different places in a jlabel, thus I want to use html in the text of the jlabelto change it.
Is this possible? Because normal <font>-tag doesn't seem to work.
I'm using 1.4.2
Thank you for your time.
Hello
I am trying to use JTree to represent a file structure. It reads the files in a folder and put it in the tree. The Problem is if a folder is empty is not displayed correctly in the JTree (It gets displayed as a leaf).
Is there some way to force a node not be displayed as a leaf?
Here is...
Thanks for replying.
I am not using JFileChooser because there is a list on the left with links to desktop/recent documents that i do not want. The file name at the bottom I also don't want, in fact a way to limit which folders the user can browse will also be nice.
Hello.
Do anyone know if there is a way to create a folder explorer?
What I mean by that: The user should see a list of directories and then click on a specific directory and then the files in the directory will be shown beneath it. If they double click a file it should be saved or opened. Or...
That is correct, you just update the web.xml.
Here is an example of what you add:
<error-page>
<error-code>404</error-code>
<location>/web/404.jsp</location>
</error-page>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.