35,618 Topics
![]() | |
Hi all I want a help for changing this program to a linux program . Can anyone help me? wether is it in c++ or Java. [code=java] import javax.swing.*; import java.awt.*; import java.awt.event.*; class fcfs extends JFrame implements ActionListener { JButton jb[] = new JButton[3]; JTextField jt1[],jt2[]; JLabel jl[],jl1,jl2,jl3; JPanel … | |
Hi everybody; is there a way to find system info (current time, date, processor speed, processor's RPM, Fan1's RPM, Fan2's RPM, etc)? I am making a program that gives you information about your computer. Thanx in advanced, C++ | |
can anyone help me in creating gadgets ...I need to know how to make a gadget ... also wat languages are used for making a gadget... i ve googled a lot bt cant find any solutions .... so help me ... | |
Hi to ALL I tried to upload file using JSP and Oracle. The first page is page.jsp which the user choose the file /////////////// [code=jsp]<%@ page language="java" %> <%@ page session="true" %> <HTml> <HEAD><TITLE>Display file upload form to the user</TITLE></HEAD> <BODY> <%=session.getAttribute("Name")%> <FORM ENCTYPE="multipart/form-data" ACTION= "upload_page.jsp" METHOD=POST> <br><br><br> <center> <table … | |
hello all i am now about ready to pull my hair out and/or possibly worse! i have to read a .csv file, split the 3 elements into variables and then put two of the variables into a map. i can read the file fine, i can display the variables in … | |
Hi guys I want to take an image and cut it into blocks, then store each block in an array of bufferedimages. I have tried many things [CODE]public void splitImage(int cols, int rows) { int w = thePic.getWidth()/cols; int h = thePic.getHeight()/rows; int num = 0; tileset = new BufferedImage[w*h]; … | |
hii ppl... i want to open an excel file stored in c:\ drive. i have a link in JSP file. i want to open the excel file when a user clicks on link. the problem is while running the application on server, i m not able to open the any … | |
Dear All, Passing condition as string to XSLT using Javascript as a parameter is not giving any results. Below is the code snippet:- [ICODE]script: var processor = new XSLTProcessor(); processor.importStylesheet(xslt); processor.setParameter(null, "query","not($projectId = 9820) and not($projectId = 9164)"); xsl code: <xsl:if test="$query"> I verified by priting xsl:value-of and string is … | |
Hello All, I really hope that you can help me. I am working on a program that will read a randomaccess file's contents and store the contents into an array. It will then update the array and write it back into the randomaccess file. I have the following two methods … | |
hey all i need someones help. I know im asking for alot here but does someone have a jave a code for the game " the price is right" if so could you please post it through thanks for you help! | |
i know i'm now loosing the plot over this so any rapid help will be appreciated! i have to write a method which calculates the average from numbers contained in a list, when i try and run the code i get the error message: Semantic error: Cannot reach instance method: … | |
Hai Friends. I want to download jar file from IIS serve(.Net) from to mobile device. in apache tomcat server i used mime as AddType text/vnd.sun.j2me.app-descriptor jad AddType application/java-archive jar in wordpad, with jar and jad. its working fine. i doknow how to use this mime in IIS, please help me … | |
i want java code which find a day of a given date...eg......13 feb 1984(given date).........answer is monday... | |
Hai Friends, Iam using socketconnection in my project for server communications, its working fine in emulator , other nokia mobiles, but it does not working in Nokia 6600 mobile. but Datagram and httpconnection is working fine. | |
How would I make a program that can insert text into a text field in another program? Or click a button in another program? | |
Hi, i am developing the JSP/Servlet system now. Let we discuss database pooling, how you normally do that? My developing application is open/close database object every single class instance. My design is every time, we need access database then we invoked a database class object, execute SQL and close it. … | |
Hello, I am trying to do something very simple but my dial up connection is making it hard to research so I'd like some help! I'm trying to store instances of classes I created in a file. Something along these lines: [CODE] class apple { int flavor; String color; apple(int … | |
Here's a question i got in my assignment... [QUOTE]Create a method with signature public String testWindDirection() that creates a local object of type WeatherReport using the constructor with no parameters, and returns its initial wind direction, e.g "ESE"[/QUOTE] I createrd it here... [CODE]public class Reporter { private WeatherStation ws; private … | |
I keep on getting the following error, I've tried modifying the constructor, but I can't get it to work. "C:\Users\Documents\NetBeansProjects\Assignment-1\src\Bank.java:34: cannot find symbol symbol : constructor Customer(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String) location: class Customer Customer customer = new Customer(last, first, street, city, state, z, acctNum); 1 error BUILD FAILED (total time: 0 seconds) " … | |
Hello, I need to find the code in netbeans where the name is stored as shown in the Title bar of the program and the taskbar of windows. Any ideas where to find that? ive been looking and searching for days now. I want to edit "Openbravo POS - 2.30beta" … | |
ArrayList arrayList = new ArrayList(); for (File g : f.listFiles()) if (g.isFile()) { arrayList.add(g); } I hope from the code above you can understand what Im trying to do. If a file is a file then add it to an arraylist. I dont know if this is the best one, … | |
I'm doing a project on Bus Information System, [B]using JAVA[/B], which takes source and destination station from user and displays bus numbers between those two stations. Here two cases arises:- 1) Direct bus connectivity - in which case it displays the list of direct bus numbers between those stations. 2) … | |
i'm trying to call a method from a different class and i just cant get it to work.... code from method displayTutorGroup(): [code] /** * Displays the names and marks for the students * in the tutor group in the Display Pane */ public void displayTutorGroup() { for (String name: … | |
I am starting a project that will require me to create custom tag libraries. 1. Are there any limitations to what can be performed in a tag class? 2. What are recommendations of what I should not do in a tag class? 3. How do I do error handling in … | |
Hi, I need help, to get the get working directory of the class file on a Windows system. I'm opening up a txt file to read from in the same folder as the class file, when I just enter the location of the txt file, it says: [CODE]java.security.AccessControlException: access denied … | |
When you click save in this program , it is saved nicely but the txt file being saved is all in one line. How can i overcome this matter? Just FYI, when anyone try to save, dun forget the file extension (*.txt) [CODE=java] import java.io.*; import java.awt.*; import java.awt.event.*; import … | |
hi, i have the attached xml file and i wish to perform some xpath expressions in java which i have declared as follows. [CODE]final String xPathexp1 = "sbml_ns:sbml/sbml_ns:model/sbml_ns:annotation/rdf_ns:RDF/rdf_ns:Description/bqmodel_ns:is/rdf_ns:Bag/rdf_ns:li/@rdf_ns:resource"; final String xPathexp2 = "/sbml_ns:sbml/sbml_ns:model/sbml_ns:listOfSpecies/sbml_ns:species/sbml_ns:annotation/rdf_ns:RDF/rdf_ns:Description/bqmodel_ns:is/rdf_ns:Bag/rdf_ns:li/@rdf_ns:resource[starts-with(.,"urn:miriam:uniprot:")]";[/CODE] I have set the namespaces as follows: [ICODE]try { NamespaceContext ctx = new NamespaceContext() { @Override public … | |
Hello friends, As usual .. when i have a problem ... daniweb.com is here ;). So I need some information from you. Ok, let me explain ... I am currently developing a chat application ! Ok ... everything works fine till now but I have doubts. My application uses 3 … | |
I'm was wondering if someone can check if this method produce the right result? [CODE] public int fileSize (String name) throws IOException { int charLength = 0; File file = new File("name"); Scanner input = new Scanner(file); while (input.hasNext()) { charLength++; } return charLength; }[/CODE] What this is supposed to … | |
Hi, I have been trying to get the Jsapi (Java Speech API) embeded into my web applet but have had quite a few troubles. The script for the Jsapi from what I can see was designed for .Jav files where as I am trying to make a .class file. So … |
The End.