32,199 Topics

Member Avatar for
Member Avatar for jammy4java

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[]) …

Member Avatar for rkj2ban
0
1K
Member Avatar for RicardoE

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.

Member Avatar for amit.hak50
0
200
Member Avatar for daudiam

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 …

Member Avatar for JamesCherrill
0
92
Member Avatar for onlyvidya

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.

Member Avatar for onlyvidya
0
131
Member Avatar for 1314abc

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 …

Member Avatar for 1314abc
0
159
Member Avatar for becca.masters

[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 = …

0
25
Member Avatar for shishir

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 …

Member Avatar for NormR1
0
164
Member Avatar for jamojo

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: …

Member Avatar for NormR1
0
103
Member Avatar for arete

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 …

Member Avatar for arete
0
350
Member Avatar for Blunch

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]

Member Avatar for Blunch
-1
71
Member Avatar for smoothe19

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]; …

Member Avatar for NormR1
0
305
Member Avatar for sansam598

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)

Member Avatar for peter_budo
0
76
Member Avatar for star111792

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 …

Member Avatar for peter_budo
0
778
Member Avatar for bibiki

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 …

Member Avatar for bibiki
0
100
Member Avatar for BWind

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; …

Member Avatar for NormR1
0
87
Member Avatar for nikelin

Simple package loader to load all packages contents from directory-based or from JAR-compressed class path entry.

Member Avatar for NormR1
0
408
Member Avatar for sitajaf

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 …

Member Avatar for Stefano Mtangoo
0
178
Member Avatar for efelinks

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 …

Member Avatar for freesoft_2000
0
106
Member Avatar for jt86442

[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 …

Member Avatar for NormR1
0
90
Member Avatar for jt86442

[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]

Member Avatar for freesoft_2000
0
93
Member Avatar for hermann87

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 …

Member Avatar for hermann87
0
88
Member Avatar for pjoyz

Can somebody help me to read a csv file into an arraylist in JSP. that source file can be browse anywhere in the pc.

0
77
Member Avatar for nikelin

Helps to filter objects by interfaces and annotations their contains/implements with respect to parental relations.

0
482
Member Avatar for jemimaloh

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, …

Member Avatar for jemimaloh
0
114
Member Avatar for seanvitalaim

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 …

Member Avatar for nikelin
0
110
Member Avatar for sayalidzambre

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 …

0
22
Member Avatar for Krefie

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 …

Member Avatar for Krefie
0
166
Member Avatar for bluebird

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 …

Member Avatar for helioptra
0
273
Member Avatar for cfcid

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? …

Member Avatar for prisonpassioner
0
92
Member Avatar for ubi_ct83

[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 …

Member Avatar for ubi_ct83
0
100

The End.