32,204 Topics

Member Avatar for
Member Avatar for amit.hak50

When i clicked on JMenuitem ..it opens a new window ..but when i close this window the parent window also closes... is there any method to resolve ..i don't want to close the parent window only the new window..

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

Static fields and methods are allocated memory once only, when they are first referenced, irrespective of the no. of objects u later create. But, memory is allocated for its data members each time an object is created. But what about the non-static methods, they don't change for each object. So …

Member Avatar for JamesCherrill
0
135
Member Avatar for SHARKASI

I'm having trouble finding a problem in this program that supposedly converts currencies, is it possible to find some help from specialists in the Java programming language ...? the codes here: import java.awt.*; import java.awt.event.*; import java.util.*; import javax.swing.*; import javax.swing.event.*; import java.io.* ; public class CurrencyConvertor extends JFrame { …

Member Avatar for SHARKASI
0
197
Member Avatar for rkj2ban

Need some help regarding this program. I NEED a similar program for odd number words in + format D as mean, horizontal & verticle, having output as:- I N I N D I A I A

Member Avatar for NormR1
0
65
Member Avatar for amit.hak50

Hi My problem is that , The Jframe window does not remember it's position after minimizing ....suppose I minimize at co'ordiates (45,89)..but after maximizing it again open at (37,28)..means at different co-ordinates ..i want that jframe should open at the same position...after maximizing..like remeber it's position.. please help

Member Avatar for NormR1
0
768
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
132
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
165
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
310
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

The End.