32,199 Topics
| |
Need some help regarding this program. I had done a similar program having output as:- S A I F E E S A I F E S A I F S A I S A S Its output is as follows:- [code] class Name { public static void main(String args[]) … | |
Hello all, can anyone tell me how to make a JFrame fixed, by not allowing user to drag it somewhere else in the window? like doking the JFrame in the screen, also disallow user to resize it. Thanks. | |
Hi, I'm just a little confused as to what to we call a reference. [CODE]A ob=new B();[/CODE] Here B is a subclass of A. Should we say "ob is a reference of A which has been assigned an object of B" or "ob is a variable of A which has … | |
hi frnds m doing project on tracking keyboard,mouse & URL activity. which programming language is much easier to implement this project? Is Java better or VC++ is more better option? plzzzzz suggest me as soon as possible. | |
i just show the code [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * NewJFrame1.java * * Created on Jun 26, 2010, 9:54:49 PM */ import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; /** * * @author THKFC … | |
[code=java]import java.io.*; import java.util.Scanner; public class FloatList { public void getList(Scanner inFile) throws IOException { float item; String data; while (inFile.hasNextFloat()) { values[numItems] = inFile.nextFloat(); numItems++; } } public void PrintList() { int index; for (index = 0; index < numItems; index++) System.out.println(values[index]); } public FloatList(int maxItems) { numItems = … | |
hello everyone i have been trying to run my ejb-jsp code using j2ee server and have connceted to oracle using sun.jdbc.odbc.jdbcodbc bridge driver. but i am encountering this particular problem again and again and no data is inserted into database Error java.sql.SQLException: [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed … | |
Hellow everyone, I have this Java Method below. I used a link which requires authentication and when I ran this in Eclipse, it worked well. validURL("http://localhost/context/myfile.pdf"); However, when I deployed this in Weblogic, the method returns an error which was " 401Unauthorized". I tried this link but did not work: … | |
Hey, I'm working through Objects First with Java and using bluej. I've just gotten to where I call other classes and methods, and sometimes I can get it to work. Other times, like the example below, I'm completely suck. I've tried every combination I can think of to get the … | |
Hi every Body ! I'm so happy that become members Daniweb and thanks for usefull subject's friends May be help me ?!! I want program code 8 puzzle with greedy search algorithm with Java Thanks[code][/code] | |
How to build a [B]case sensitive[/B] bubble sort and selection sort for a 2 dim array Here is what i currently have but it does not work properly [CODE]static void bubblesort(String[][] Array){ String datae = null; String temps; String tempse; for(int x=1;x<i;x++) { for(int y=0;y<i-x;y++) { if(Array[y][1].compareTo(Array[y+1][1])>0) { temps=Array[y][1]; Array[y][1]=Array[y+1][1]; … | |
I am santhosh martin, I am mca final year student, our 6th is projects, any body help me to select a good topic of system side projets(using J2EE) | |
hello all, i m a final year student doing software engineering. now its time for me to submit idea for my final project but i m unable to get any idea which is gud and still easy to implement, as i m interested in doing solo project. i have almost … | |
hey there, I have the following code: [CODE] String[][] candidates = new String[4][3]; for(int i = 0; i!=4; i++){ for(int j = 0; j!=3; j++){ switch (j){ case 0: {candidates[i][j] = JOptionPane.showInputDialog("Give name of candidate " + i);} case 1: {candidates[i][j] = JOptionPane.showInputDialog("Give address of candidate " + i);} case … | |
I have this javascript that is working great in Firefox but will not load in IE. Can anyone help me please? <body OnLoad="rotateImage('rImage', 'link')"> <center> <a id="rLink" style="color:white"><img id="rImage" width=198 height=150> </a></center> </body> <SCRIPT LANGUAGE="JavaScript"> var interval = 5; // delay between rotating images (in seconds) var random_display = 0; … | |
Simple package loader to load all packages contents from directory-based or from JAR-compressed class path entry. | |
Hello, am new to the real programming but i have very much interest. As a first real java project am trying to develop a P2P network application which can be used for chatting, but the problem is: Should it load as a server.and if so how do i get it … | |
Please, someone, help me out to check the errors in this code. What is the proble? I'm new to Java applet and I'm using notepad. I copied this code from a site to test but it is not working with me in the notepad and command prompt. import java.applet.*; import … | |
[B] Hi, i written a code for delete particular file which it was saved in some folder "temp" which it was shown in the below. [CODE] try{ java.io.File objFile = new java.io.File("F:/temp/FirstPdf-022.pdf"); objFile.delete(); } catch(Exception e) { } [/CODE] In the above code, i delete the file "FirstPdf-022.pdf". But i … | |
[B] Hi guys, [CODE] if(IsColor.equals("Y")) cell.setBackgroundColor(new Color(240,240,255)); table.addCell(cell); [/CODE] This [U]cell.setBackgroundColor(new Color(240,240,255));[/U] is for set back ground color as a blue. I need Green color. So, is there any values for green. Please contribute your advice... [/B] | |
Hi, I have been wondering about how implementation/extension works : Let me give you an example and then ask you my question : [CODE] public abstract interface A_int {} public abstract interface B_int {} public class A implements A_int, B_int {} public class B extends A implements A_int [/CODE] okay … | |
Can somebody help me to read a csv file into an arraylist in JSP. that source file can be browse anywhere in the pc. | |
Helps to filter objects by interfaces and annotations their contains/implements with respect to parental relations. | |
I'm doing a project on geometric hashing. Of which i am unsure about the basis generation (meaning, finding only a pair coordinates that coincide with the X-axis) from all the invariant points in the coordinate file of a given 2D model which would have been hashed already. This case being, … | |
Hello everyone hope all is well. So I'm learning java and been at it all night and this is my last hope. I can't figure out why a certain part of my code is not being executed after the conditions of my if statement is true. [CODE] /** * @(#)mathsoftware.java … | |
I want to print .doc ,.docx, .xls, .csv , .xlsx, .rtf documents through java. For that up till now I got following 3 approaches but I have not reached any conclusion. 1. To convert .doc ,.docx, .xls, .csv , .xlsx, .rtf to .pdf (bcoz I am able to print .pdf … | |
ola, i need help fast plz, the printing function in java .print() works i.e. [CODE] jtextarea.print(); [/CODE] the problem is, if the jtextarea is longer than 1 page it will print the extra pages on some computers and not on others. I thought it a printer setting, but when the … | |
In c programming language, When the compiler compiles a program, the obj file is created. When that object file is run, an .exe file is generated. That .exe file contains the machine language instructions that are understandable by the underlying processor. If we run that .exe file on another kind … | |
The objective is to add all the prime numbers before an arbitrary input. I am wondering what exactly this person has done through this code. I am not this advanced, and I do not how to work with particularly the int[] a variable. What is the int[] a command called? … | |
[CODE] public static void main(String[] args) { int[] out; for (i=0;i<args.length;i++) { String number_string=new String(); if(args[i].equals("-i")) { if(i+1<args.length) { i++; number_string=args[i]; } StringTokenizer number=new String Tokenizer (number_string,','); int chip_number=number_string.replaceAll("[^,]","").length(); chip_number++; int k=0; while (number.hasMoretokens()) { number_int[k]=Integer.parseInt(number.nextToken()); k++; } } } for(i=chip_number-1;i>=0;i--) { for(j=0;j<number_int[i];j++) { out[j]=j; } //should be a double … |
The End.