36,051 Topics

Member Avatar for
Member Avatar for hp51185

Hello I am trying to run a perl script on tomcat server. I am putting the incoming http request in a variable data which collects the headers as well as the text file attachment data. The code is like this : .... while(<>){ $data = $data . $_ ; } …

0
111
Member Avatar for kmrudula

Hello everyone, I would appreciate if somebody could tell me how to find L*a*B of an image in java Also how to find texture of each pixel.I know how to find RGB value but i am unable to find L*a*b Pls help

Member Avatar for JamesCherrill
0
45
Member Avatar for lsvife

I created a website that will upload files to a webdav server I can now upload files to the webdav server and I am able to view it. below is my code <% boolean isMultiPart = FileUpload.isMultipartContent(request); DiskFileUpload upload = new DiskFileUpload(); List items = upload.parseRequest(request); String baseUrl = "http://localhost:8084/webdavserver"; …

0
117
Member Avatar for hubber92

Hi guys, I'm trying to create an array with the length according to the number of rows in my database. So here is my code. I getting "array out of bound". import java.sql.*; import javax.swing.*; public class prg extends javax.swing.JFrame(){ String nameC = "HDB"; String nameCC = ""; int count=0; …

Member Avatar for hubber92
0
144
Member Avatar for aquagirl20

Hi! I have a huge problem with my PERT program. I've been trying to figure out how to display all of the data in jTable with one click and how to delete all them as well, like if I click on "reset" or "clear". What I've done is just the …

Member Avatar for aquagirl20
0
264
Member Avatar for aarushik

i want to link my thumbnail image to an slider i have made in jquery and html http://www.jeppiaarcollege.org/jeppiaar/Gallery/photogallery.html something like this i want to create in my website i m new to it please help. i have created the slider in html page now i want to put some thumbnail …

Member Avatar for hardik.rajani
0
95
Member Avatar for cisumma

I am in the process of learning how I could use a JListDataListener to change JList elements at runtime: I am goggling this right now to collect examples: I would like to see some code on the subject if anyone has some examples -thanks Here is some code to create …

Member Avatar for NormR1
0
217
Member Avatar for Ideteng

Please, how do I pass values from mysql into an arraylist. I also need to pass the arraylist values into new methods and send the result back to mysql table.

Member Avatar for JamesCherrill
0
37
Member Avatar for Krishna1991

**3. Write a java program to create a frame with a menu File->Open The frame should consist of a combobox. On select of an item from the combobox display the item name within the message box On click of the “Open” menu item display an internal frame with a text …

Member Avatar for JamesCherrill
0
109
Member Avatar for trishtren

Hello, I am trying to recreate a data type in java used by adobe, it is an unsigned integer 30 bits long or U30 by the specification. Anyway i am having problems understanding the binary output, the definition states: "The variable-length encoding for u30 uses one to five bytes, depending …

Member Avatar for trishtren
0
193
Member Avatar for mrabrar09

Hi to everyone. I have created jsp report in that date column is there where am showing the date format like this (02-01-2012) <% String Rcheckdate=""; SimpleDateFormat df = new SimpleDateFormat("dd-MM-yyyy"); Rcheckdate=df.format(rs.getDate("tr_dt")); %> <td align='center'><%=Rcheckdate%></td> In report i have given the excel button from there am exporting the data to …

Member Avatar for mrabrar09
0
311
Member Avatar for Andrei15193

Hey guys. Which is better? .NET or Java. I know .NET isn't really portable, however independent projects (Mono Project, MonoXNA) are trying to give it some portability. What benefits does Java and .NET offer and what downsides do they have?

Member Avatar for Andrei15193
0
200
Member Avatar for mrabrar09

Why my javascript menu is structing after 5 minutes (measn the drop down menu is not coming ). For that i need to referesh the whole page that page is in jsp. Can anyone help me to overcome from this problem. below is the sample code <td WIDTH=150 onmouseover="awgMnBSpmc('awgMnBSpma0',1);awgMnBSpmd('awgMnBSpm11','awgMnBSpma0');" onmouseout="awgMnBSpmc('awgMnBSpma0',0);awgMnBSpme('awgMnBSpm11');" …

Member Avatar for dany12
0
120
Member Avatar for prnjn

How to set image of my own choice say baby.jpg as an icon on the title bar of the jFrame.. Please also help with codes if required ,, i am newbie in java and NetBeans..

Member Avatar for prnjn
0
3K
Member Avatar for prnjn

As i said earliar i am making HRMS , the last phase is logout button. when logout button is clicked , an option dialog should appear which ask for yes or no . PROBLEM is i dont know how to use JOptionPane.YES_NO_OPTION so that i can give user choice of …

Member Avatar for prnjn
0
238
Member Avatar for shsh111

i hope someone here can help me with this quistion... Finding Tandem Repeats: Suppose that we want to find all short tied repeats w within a string A = xwwy, |w| < 8. This type of repeat is called a tandem repeat and it occurs very often in biological sequences. …

Member Avatar for SagarSe7en
0
162
Member Avatar for gabz16

Hi programmers i need to have a GUI code for 4 cpu scheduling algorithms OR AT LEAST THE THREE, W/O THE ROUND ROBIN.. can you help me interface(menu): Cpu scheduling algorithms 1.FCFS 2.SJF 3.PRIORITY 4.ROUND ROBIN CHOICE:______ NOTE:5 DEFAULT PROCESSES ARE GIVEN. PLEASE HELP..THANKS!

Member Avatar for JamesCherrill
0
2K
Member Avatar for serph09

So I have the code below. The whole program just reads from a text file and prints certain characters if it detects specific characters from the text file (in this case I just made it mimics what the text file has). My text file contains this: .........www... bbb..........ww ...bb....ww.... The …

Member Avatar for JamesCherrill
0
614
Member Avatar for sofien.fkih

I'm having a problem of displaying all the data of a column in a text file I can display only the first data, so please someone tell me what can I make to display them together in a text file. Connection con = DriverManager.getConnection(host, uname,password); Statement stmt = con.createStatement(); ResultSet …

Member Avatar for JamesCherrill
0
172
Member Avatar for Armanious

This is basically the layout of my task at hand: I have one "host" program - the basic GUI for the entire application running at any given time. It contains a JTabbedPane. When the user adds a tab, I want the program to start a completely new process (new JVM …

Member Avatar for Armanious
0
183
Member Avatar for aabbccbryanmark

can someone give me an idea how I limit the decimals in the output of this code: /** * @(#)Text1.java * * * @author Bryan Mark * @version 1.00 2012/8/4 */ import java.io.*; public class Converter { public static void main(String[] args)throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); …

Member Avatar for aabbccbryanmark
0
142
Member Avatar for aabbccbryanmark

can someone please help me with this java application that will display the output below: "Enter Middle Name: Gosling" "You Middle Initial is: G" and also java program that will let the user to enter value for fahrenheit & convert it to celsius. can someone give me codes for this.. …

Member Avatar for aabbccbryanmark
0
162
Member Avatar for gamebook
Member Avatar for yup790

I have nearly finished teach yourself java in 21 days. What should I do now to get good at programming, especially java but other languages would be nice. BTW, java is my first programming language.

Member Avatar for godzab
0
101
Member Avatar for ramel.coletana

hey, is there any body there who will give me a sample code of database?----that will save a cellphone number and name.

Member Avatar for neowolfx
0
91
Member Avatar for AireenK

Hey,I am trying to write a code that will pop up anotification when a the system captures time and alert the user that time is up.Please help

Member Avatar for JamesCherrill
0
45
Member Avatar for raviaaaa

HI All, i am doing jdk upgrade version on one application is there any tool whick will convert .class file (which has compiled under jdk 1.4). i don't have .java files(src code) so i want to know is any tool which will convert .class file (jdk 1.4) to .class file …

Member Avatar for JamesCherrill
0
194
Member Avatar for dart.suresh

my client using apache tomcat server in this server form post method not working but instead am using get method its working what the configuration am missing in web xml?

Member Avatar for dart.suresh
0
369
Member Avatar for godzab

I have been programming in java for 1 year, but I would like to contribute to an open source program. The problem is its to compicated for me to join a open source program. Is there any recommendations you guys have for any open source projects I can join?

Member Avatar for rotten69
0
96
Member Avatar for joejo

Need help urgently. Can anyone please help me finish up a project which i have a deadline to meet in 3 hours time. It's a camp application to input and store the records of the children from my church! I have created the GUI and I am left with the …

Member Avatar for Stuugie
0
222
Member Avatar for shantuli

hi everyone, i am very new in java. i am having problem in SWITCH CASE STATEMENT. can anyone please help me to solve the following problem: you have to write a program in java to generate the following menu: 1: DATE 2: MONTH 3: YEAR 4: DAY if the choice …

Member Avatar for Raja Goswami
0
1K
Member Avatar for SagarSe7en

Hy Friends, Have to submit a small routine program. So this is how it goes: There are soaps on the shelves. One soap costs $1 and the next soap costs $1.2 until no money is left in the pocket Each soap is 20% more in price than the previous one. …

Member Avatar for NormR1
0
550
Member Avatar for yup790

I am trying to make a program that displays the nth prime number. I don't get compiler errors but it doesn't display the prime number. I don't know where it stops, ive tried breakpoints but it stilll doesnt work :(. here is the code: package primenumberfinder; import java.util.Scanner; /** * …

Member Avatar for Taywin
0
274
Member Avatar for ramel.coletana
Member Avatar for songokute

Hi, i have a j2me game (in chinese): comments, button text, game guide... are in chinese! I want to make them all (chinese words) be translated into English, but Eclipese doesn't display these chinese words!! I downloaded some Chinese font and installed them, nothing change in eclipse editor! The same …

Member Avatar for songokute
0
260
Member Avatar for cynusalisa

Hello Guys, I am Confused between the two languages Java and C++ that Which is the better Language to learn? What do You Guys Think about These languages and Can You make difference between these Languages Guys?

Member Avatar for rubberman
-1
234
Member Avatar for arunod
Member Avatar for collinsislee

OK here is my code to print all prime numbers less than 100 and also print the first 36 numbers in the fibonacci series. I want to change it so that the fibonacci prints 9 numbers per line and the prime numbers print in 5 per line. Im new to …

Member Avatar for JamesCherrill
0
368
Member Avatar for 47pirates

HOw can i convert the String "2012-07-30" to Date object with same format 2012-07-30 which is date not a string. I've tried but i get the result in string. plz help

Member Avatar for Taywin
0
191
Member Avatar for rithish

in java we use import javax.swing when we want to use frame and panel we write like this class frame extends jframe but in c++ we use <iostream.h> and <conio.h> where we use cin and cout from these libraray functions but we dont inherit anything .we use normally we dont …

Member Avatar for Taywin
0
151
Member Avatar for abbelylee

I want to be able to read data from a csv file (comma seperated,tab seperated or space seperated) and pass the data into an array.my intentions are to combine four classes. such as a class for the data model,file reader, driver and textui. i can handle the textui and the …

Member Avatar for NormR1
0
156
Member Avatar for phil.robison.5

I need some help with my code for my bulls and cows game... the requirements for the program are below: To start your gaming career, you have decided to write a math game. You want to create the following Menu: Bulls and Cows --------------------------------- 1. Play new game - New …

Member Avatar for NormR1
0
638
Member Avatar for OsamaJutt

Hi, i am new here and i want an help in add the actionListener to the component of JCombo Box. Like there is Combo Box in Which there are components like name of color. When i click any component, for example i click Green color the background turns into Green. …

Member Avatar for JamesCherrill
0
176
Member Avatar for aratnon

sorry, i'm a newbie of java. for example, public static myObj createObj(String nameFormUser){ myClass nameFromUser = new myClass(); return nameFromUser; } can it possible ?

Member Avatar for Taywin
0
630
Member Avatar for esy928

Greetings! Currently, I'm hitting a road block on a task that I need to perform. My goal is to hash my source code and check if the code has been changed during runtime. if it has been modified, it shouldn't be allowed to run. My question is how do i …

Member Avatar for esy928
0
145
Member Avatar for iThaos

Hi everyone, I'm trying to make a little applet that reads text files. I was planning to load some data into a class and use it later. However, I seem to having a few problems with it. // DataSet.java package com.someone.something; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class DataSet …

Member Avatar for iThaos
0
427
Member Avatar for danny.vin

# **program editor** # how to create a **program editor** for compiling and executing java programs?i need the codings...

Member Avatar for stultuske
0
202
Member Avatar for riahc3

Hey I want to make a multithreaded and multiuser web service in Java. Where do I even start looking? Currently I have a web service that is one user and one thread. I think Ill problably have to completely rewrite it from almost scratch so.... Where can I see some …

Member Avatar for JamesCherrill
0
1K
Member Avatar for khaled_jawaher

i am trying to run a jar file i created from net beans when i built my new project.it is giving me error cant launch application i tried everything.I am using window7,i opened the command prompt and put assoc jarfile ftype jarfile="C:\Program Files\Java\jdk1.6.0_01\bin" "%1" %* and tryied to run it …

Member Avatar for stultuske
0
200
Member Avatar for cor.vandijk.779

Theinput in a JTextField must be used in the variable Color color. input = YELLOW must change variable color in Color.YELLOW. My attempt does not work:

Member Avatar for JamesCherrill
0
239

The End.