36,051 Topics

Member Avatar for
Member Avatar for sibitech

i m looking for a J2EE project title..... can anybody help to start with??????????

Member Avatar for jwenting
0
75
Member Avatar for starxxx

I need help n writing a simulated annealing algorithm that is able to maximize f(x)=sin(0.15*x)+cos(x) defined on the interval 0<= x <= 40 using the cooling schedule. Please help me im supposed to generate random numbers between 0 and 40 and Substitute in f(x)=sin(0.15*x)+cos(x) then what should i do next....... …

Member Avatar for starxxx
0
111
Member Avatar for gedcraw555

i have tried every thing to get image on my button, i have looked all over the internet but i can't get a image to display, if any one can please help me. [CODE]import static javax.swing.JOptionPane.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.text.DecimalFormat; //Don's carpark2.java was used in making …

Member Avatar for gedcraw555
0
133
Member Avatar for brr

how to get data in textbox from database when item selected in listbox in jsp without refreshing the page, i had code that refresh the page. if not in jsp even possible in javascript or any plz........thanxs in advance (max try in jsp)

Member Avatar for brr
0
81
Member Avatar for nikk

Hey, all Java and JSP gurus, Please help! In my website (created using JSP and MS SQL), i'm accepting resume from users in .doc format. Can you please tell me- how to save it in my folder from web-page i.e. the "browse" and "upload" code. (mine is a mock site …

0
60
Member Avatar for maydhyam

Hi, I created an executable jar file for my Java application, and I was wondering if I should leave it like that or should I change it to a .bat file for execution via a webpage. May

Member Avatar for maydhyam
0
135
Member Avatar for sunne

Hi, I am new to this community. I have a problem described below. I need to write a java code which would archive a set of files in "newc" format and then compress it using gzip. There are apis to compress in gzip format but couldnt find an api that …

Member Avatar for jwenting
0
140
Member Avatar for gallantmon1

Here's my code: [code]import java.awt.FlowLayout; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JFrame; import javax.swing.JButton; import javax.swing.Icon; import javax.swing.ImageIcon; import javax.swing.JOptionPane; public class DisplayGUI extends JFrame { public static void main(String args[]) throws Exception { ButtonFrame buttonFrame = new ButtonFrame(); buttonFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); buttonFrame.setSize(275, 75); buttonFrame.setVisible(true); } private JButton Fibonacci; private JButton Factorial; public …

Member Avatar for gallantmon1
0
147
Member Avatar for Shveetis

[ICODE] abstract class Trial implements ClassLoadingMXBean, ThreadMXBean { public static void tri() { ClassLoadingMXBean classmxbean = ManagementFactory.getClassLoadingMXBean(); ThreadMXBean threadmxbean = ManagementFactory.getThreadMXBean(); MemoryMXBean memorymxbean = ManagementFactory.getMemoryMXBean(); OperatingSystemMXBean osmxbean = ManagementFactory.getOperatingSystemMXBean(); List<GarbageCollectorMXBean> gcmxbean = ManagementFactory.getGarbageCollectorMXBeans(); int load_class_cnt = classmxbean.getLoadedClassCount(); long unloaded_class_cnt = classmxbean.getUnloadedClassCount(); long total_load_class_cnt = classmxbean.getTotalLoadedClassCount(); // System.out.println("The number of classes …

Member Avatar for Shveetis
0
141
Member Avatar for Shveetis

I have created a Jframe and included 10labels and 10 textfields in it when i try to run the program, it does not show all the labels and textfields.. sometimes all are visible if i run again then few disappear.. at times they r visible for a few secs and …

Member Avatar for javaAddict
0
84
Member Avatar for Shveetis

Is it possible to set the value of a JTextfield in a class in which the textfield is not declared or created..?? How can one do that??

Member Avatar for Shveetis
0
145
Member Avatar for sibitech

i m looking for J2EE project title..... can anybody help me to start with????????

Member Avatar for stultuske
0
56
Member Avatar for the b

Could someone please look over this code and make sure there are no errors in it? I've looked through it again and again and I can't see what's wrong. However when I run the program (a Rock Paper scissors game) it seems that the second constructor isn't called correctly or …

Member Avatar for stultuske
0
233
Member Avatar for SPJ

I know it says u help with hw only if u put some effort,, btu in this case i tried understanding the porogram but i dont kno where to start, this is my first year and first time doing java and this prog is 15 % of the whole module. …

Member Avatar for stultuske
-2
357
Member Avatar for eddy556
Member Avatar for Parsu7
Member Avatar for piers

I have to do a really strange thing. I have to take a string of 2 words and then separate it and put it into two other strings eg String name = "fred blogs"; move the part of the string name which says fred to the String firstname so it …

Member Avatar for Parsu7
0
156
Member Avatar for Danii

while (firstNodeNeedsToGo(text)) { removeFirstNode(); nodeRemoved = true; } can someone rewrite this while loop into an if - then loop or any other code you have , this will help greatly toward my upcoming test

Member Avatar for VernonDozier
0
102
Member Avatar for Danii

boolean removedlNodes = false; what is the point setting this type boolean = false? Nodes = Nodes | NodesWithText(text); what does this " | " means here ? thanks in advance

Member Avatar for Parsu7
0
83
Member Avatar for Lioshenka

Hi there!!! I am back with more problems, now in Java :) What I am trying to do is to make an application to read and output a random line from a text file, but everything I know how to do is to output the whole lot. How can I …

Member Avatar for ~s.o.s~
0
3K
Member Avatar for mayank.aga

Hey Guys, I am writing to a Text FIle in Java using FileOutputStream. But whatever I write is stored in the same line. What should I do if I want certain things to be stored in the next line. Basically, it is like inserting a new line into the file. …

Member Avatar for mayank.aga
0
199
Member Avatar for vatspoonam

hi I am working on a call center management project. i want to maintain the details of all inbound calls like time duration, caller's no. , etc. Please tell me how can i achieve this. I think JTAPI(java telephony API) can help me but m not getting how to use …

0
74
Member Avatar for Spartan552

Hi ! [QUOTE] (A & 0xFF)[/QUOTE]. What does this mean? I have to optimize a program, here is the code : [QUOTE]ret += ((long) data[index + i] & 0xFF) << ((nb - 1 - i) * 8);[/QUOTE] An image is stored in the array data... whenI remove & 0xFF, It …

Member Avatar for bugmenot
0
225
Member Avatar for pranavdv

[COLOR="Red"]import java.sql.*; public class test { public static void main(String args[]) { // Define the url for the sample database String url = "jdbc:derby://localhost:1527/test"; Connection con; String createString; createString = "create table test " + "(NAME varchar(32), " + "NUMBER int, " + "FEEs float " ; Statement stmt; try …

Member Avatar for pranavdv
0
77
Member Avatar for Shveetis

package monitoring; import java.awt.event.*; import javax.swing.*; import java.awt.*; import java.lang.*; import javax.swing.JEditorPane; import monitoring.task.jvm.JVMMonitoringTask; public class home extends JFrame { private JFrame j1; private JPanel c1; private JLabel m1; private JLabel l1; private JLabel l2; private JSeparator js1; private JButton j; private JButton s; private JButton tc; public home() { …

Member Avatar for Shveetis
0
76
Member Avatar for awo

I have the privilege of desiginging a J2ME game but i was tyring to see if it was possible to connect two or more mobile device using bluetooth so that instead of playing aginst the system, the player would be able to play against another person and i could not …

0
85
Member Avatar for arun.gerrard

[CODE] public class test { public static void main(String[] args) { int i=273; byte b = (byte)i; System.out.println("Result "+b); } }[/CODE] when i compiled the program the result was 17... :-/

Member Avatar for arun.gerrard
0
88
Member Avatar for mayank.aga

There are 3 java classes in separate files and when I compile them...ERRORS! If anyone could run those 2 classes separately and tell me the peoblems I will be really grateful coz I've used up my minds! import java.util.*; public class PageOne { public static void main(String[] args) { Scanner …

Member Avatar for mayank.aga
0
94
Member Avatar for sarath.koiloth

I am new to java, I went to an interview yesterday....Interviewer asked me What is Object Oriented programming...I find a bit difficulty is aswering for that.Can you please give a good explanation for this question.... Thank You....

Member Avatar for jwenting
0
103
Member Avatar for conklin

Will anyone of you guys tell me how to set set the classpath i.e. syntax for setting classpath

Member Avatar for Ezzaral
0
64
Member Avatar for ihtraa

we are currently workin on a RFID project and we need to generate the RFID serial numbers which is in a specific format (eg: 0101i0010001). in this the 1st 4 numbers are constant (0101) the next 4 digit numbers are item id which is got from the JSP textbox(i001) the …

Member Avatar for ~s.o.s~
0
1K
Member Avatar for Robtyketto

Greetings, Im a newbie to JSP/Javascript (unfortunalley). However I found enough example to create code that connects to my access db and populates two combo boxes. The selection of the first box is used to populate the second (cascading). See code below, apologies for the formatting as I wrote it …

Member Avatar for ~s.o.s~
0
147
Member Avatar for nikk

My website contains a news tab, which will show hyperlinks of news. On clicking link, user can read entire link. But the news are in marathi language(created in word doc.) Displating it directly through JSP is not feasible as user may not have font installed on client machine. Can you …

Member Avatar for ~s.o.s~
0
56
Member Avatar for vijaysrivatsa

Hello Friends...we r doin our UG project named Watermarking relational database using optimization based techniques....here we r supposed to use a PJW hash function to encode the values inside a database with the help of a secret key....Can anyone pls explain me the logic for this hash function and i …

Member Avatar for Ezzaral
0
96
Member Avatar for AS_82

I want to develop a program, that will take a input in chines font through GUI, but, I have face a problem, that is how can I decode the given string in Unicode. I can write a string giving the correct Unicode Value, but donot fetch the correct Unicode value. …

Member Avatar for DangerDev
0
131
Member Avatar for Techboy52

//I am passing a hex as a string into a decimal integer and I know Integer.parseInt() is easier but i can not use it. //Look below two areas have illegal start of expression and one with not a statement. public class HexToDecimal { public static void main (String [] args) …

Member Avatar for Techboy52
0
477
Member Avatar for ajithraj

haii friends... am using Struts framework i have two forms..form1 and form2...both in jsp the form2 has to be included in form1... the problem is: with corresponding to values from pop up box in form1, i want to populate pop-ups in form2....that means values in form2 is based on values …

0
46
Member Avatar for ihtraa

we are currently workin on a RFID project and we need to generate the RFID serial numbers which is in a specific format (eg: 0101i0010001). in this the 1st 4 numbers are constant (0101) the next 4 digit numbers are item id which is got from the JSP textbox(i001) the …

Member Avatar for Acidburn
0
106
Member Avatar for Ankita B

Hi,I have a login page which accepts user id and password.On successful entry user navigates to next page.I wish to display a welcome message with user name like "welcome xyz!"..how can i get user name from user id and password (entered in the login jsp file) be displayed in next(successful-login …

Member Avatar for stultuske
0
132
Member Avatar for deifyme

Hi all, m having this java.io.FileNotFoundException: The system cannot find the specified file, although the file is there in the folder. waiting for some replies, thanks

Member Avatar for deifyme
0
174
Member Avatar for leroi green

hey all, the noob is back. and with more questions that you guys will probably make fun of me for but...whatever. I am creating a GUI design where there are four labels (it doesn't need functionality) with an OK, HELP and CANCEL button on the right side. i haven't started …

Member Avatar for leroi green
0
102
Member Avatar for plgriffith

Ok, I know C/C++ really well, but just started Java today and am having an issue. I have an assignment where I have to ask the user how many names he wants to enter, and then have him enter all of the names. After all of the names have been …

Member Avatar for Ezzaral
0
110
Member Avatar for petzoldt01

I have recently been trying to work with OpenGL in Java and decided to go with JOGL to start. I am using SWT for my visuals and I am programming inside the Eclipse IDE. I have found plenty of interesting uses for OpenGL, but once I have more than one …

Member Avatar for Ezzaral
0
175
Member Avatar for wolverine_ramir

please help me compute for the time.. i have extracted different time values from a database, i stored it in a String since i don't know which data type to use. this values came from a DataList in a variable named jamTime.. then i extracted the time using: String startTime …

Member Avatar for piers
0
86
Member Avatar for williamku87

who can help me in java? this is my code: //employee.java public class Employee { String emp_id; String emp_name; String emp_icno; char emp_gender; String emp_dob; String emp_addr; String emp_comDate; String emp_dept; String emp_pos; double emp_sal; public Employee() { emp_id = "99999"; emp_name = ""; emp_icno=""; emp_gender='m'; emp_dob=""; emp_addr=""; emp_comDate=""; emp_dept=""; …

Member Avatar for piers
0
125
Member Avatar for nuch1311

/* Program Name: MonthlySales.java Author: Dominick Saccoccio Date: 2-19-08 Description: The program provides an end-of-the-year sales analysis for a company. The revenue contains total sales for each month, where revenue ={ 16692, 2504, 2463, 1857, 2369, 2684, 3374, 2630, 2531, 1928, 2692, 2578} presents the sales of January to December. …

Member Avatar for piers
0
123
Member Avatar for mtbutt

Salaam all of my friends....i want to tell all of u that i want to make a banking system that shows the different department information like Account dept.First of all the account dept take some money and add the user account if the user want to withdrow the money then …

Member Avatar for piers
0
101
Member Avatar for Mikesvb

Hi there.This is my first post here.I need help urgently. I getting desperate because I got a deadline for a project in 3 weeks time.I'm trying to do a 2 X 2 matrix multiplication applet that simulate systolic architecture.Should be something like the Wallace Tree Simulation. It can be seen …

Member Avatar for jbennet
0
118
Member Avatar for Rasjoe

How do u extract pixels of iris portion and distinguish it from other parts of eye? How do u convert it into bit pattern? what java application will be useful to do these things?

Member Avatar for jwenting
0
94
Member Avatar for ihtraa

am currently workin on RFID Technology and am stuck with the socket connectivity... there is a client which is an EXE file called RFID.exe now we need to create a server program to connect the client n read the msgs sent by the client application. in the server program v …

0
49

The End.