36,051 Topics

Member Avatar for
Member Avatar for masijade

[QUOTE=madhavireddy]Hi, I am new to java I have a project to be done with early deadline. Can u please help me how to write code in java to send GET request to server from client. Thank you in advance.[/QUOTE] So, you accepted a job you're not qualified for, or you're …

Member Avatar for madhavireddy
0
128
Member Avatar for rajshree13

i want search textbox to my website, and pdf should be retrieved from the folder to browser ,user should enter the word and on submitting word, entered string should match any of the pdf file from the folder and pdf files should be displayed on browser and user should open …

Member Avatar for rajshree13
0
106
Member Avatar for rinko

Dear all I am currently trying to find a java source code with which either HTTP POST or GET request can be sent. Unfortunately I have run into bunch of snippets that I can not run. Is there anyone that can tell me where I can find complete source code …

Member Avatar for madhavireddy
0
313
Member Avatar for usama

Hi All How i can send SMS by Java Mobile Application. I want the Class which used. Thanx Osama

Member Avatar for masijade
0
363
Member Avatar for coolbuddy059

I have to make a database in oracle and connect it with Java. But I'm not able to do so. Please help.

Member Avatar for stephen84s
0
159
Member Avatar for jbennet

Okay im working on a java program which will get peoples system info and save it to a text file so i can help them with problems (designed for members of my family to use as i seem to be their own personal IT guy lol) [code] package sysinfo; import …

Member Avatar for stephen84s
0
369
Member Avatar for bebe11bebe

I am supposed to change an ordinary for loop into an enhanced for each loop. I have the following two problems: 1. for(int i = 1; i<data.length; i++) sum = sum + data; 2. for(int i = 0; i<data.length; i++) if(data == target) return i; These are the only pieces …

Member Avatar for BestJewSinceJC
0
92
Member Avatar for BLY

create 3 class,InputForm,Manager and Student.use only class below is the inputform class public class InputForm { public int input; public double getInput(){ return input; } public void displayMessage(char grade){ return grade; } } Student class public class Student{ private double score ; public Student (){ } public Student(double score){ this.score …

Member Avatar for BestJewSinceJC
0
167
Member Avatar for Robtyketto

Greetings, I am creating an applet to draw a shape based on the selected item within the awt choice object. It currently draws the selected shape based on selection and quickly dissappears. I believe that I should be doing all drawing elements from the paint method (which I am not). …

Member Avatar for Ezzaral
0
670
Member Avatar for rajeev_vlal

a question was given to me some time back...now im wondering how to do it in my free time ....it would...please see the atteched document to see the question...dont laugh as im still a novice in programming in java

Member Avatar for BestJewSinceJC
0
72
Member Avatar for angellove40

I m in SE Comp Engg need help in SCR As I've Drawn ,I want that when my sun goes outside the screen ,the background behind mountains should turn black with stars . Also while sun moves up,man should also move in x-direction and go outside applet. [Code] import java.awt.*; …

0
68
Member Avatar for MxDev

Hi guys, how to read a unicode characters (arabic characters) form ResultSet object which appears after extraction as question marks like this(?????) i've tried to use the "getUnicodeStream()" method and "getCharacterStream()" method but both leads to the same results, does anyone have a workaround to this problem. Thanks in advance. …

-1
84
Member Avatar for AirmanTheGreat

Hello, I am to write a program that is capable of taking an array of doubles from the user, then calculating each numbers square, cube etc. and then displaying it to the screen. The program itself is fine, but one aspect of the program is that if a user enters …

Member Avatar for AirmanTheGreat
0
82
Member Avatar for samespace

Hi! I recently started learning how to implement MVC. I'm supposed to update a photo caption, but whenever I hit the "Update!" button, an error message appears saying, "The server encountered an internal error () that prevented it from fulfilling this request." note: i'm using netbeans 6.5 This is in …

0
46
Member Avatar for James1997123

Ok... First off. I am not talking about javascript tricks for your website. These scripts are just for fun. To make these codes work, all you have to do is copy and paste it into the address bar of your browser window and hit Enter (Yes the little bar in …

Member Avatar for chriswellings
0
606
Member Avatar for leverin4

I'm having trouble coming up with a solution to this problem. Say you have two byte arrays with numbers stored in them backwards. For example, say you have the numbers num1 = 843234 and num2 = 5430222124 stored in two byte arrays as follows [code=java]byte[] num1 = {4, 3, 2, …

Member Avatar for JamesCherrill
0
167
Member Avatar for lauren316

THis program is supposed to take a number (1-5) from the user. After each number is entered, it should ask how many of each product they want, then show the total for that product and and overall total at the end. I have to use a swich statement. And stop …

Member Avatar for BestJewSinceJC
0
113
Member Avatar for beth2138

[code] Hi, just wondered if anyone could help, this is my college work an i have this bit of code, just wondered if anyone could help me..... im trying to do an addition of 3 array amounts public void AverageProduction() { /*Shows input dialog box asking for user to enter …

Member Avatar for VernonDozier
0
90
Member Avatar for krunalpatel1410

hi, i m running several command in telnet/ssh command prompt it is a linux base server. now i want to add some [B]clear screen [/B]and [B]capture the [/B]command prompt data into text file. whole session can write into file. and this to facility can be given into menu bar specified …

0
55
Member Avatar for neutralfox

Hello, I need your help again guys. I am trying to make a pop up form name setIPInterface (when the user click on a button in the form "ClientInterface"), for a user to input an ip address in a textfield and when the user click on the button "Set", the …

Member Avatar for BestJewSinceJC
0
151
Member Avatar for younaskhanpk

You are required to develop a GUI for car show room. The program must use collection to store and process information about cars. The class for car information must have following attributes: 1. Name of car’s manufacturer 2. Name of car’s owner 3. Registration number of car 4. NIC number …

Member Avatar for younaskhanpk
0
100
Member Avatar for samarthashok

Hi i am new to use java. on compling my java file in tomcat server i get cannot resolve symbol symbol : method getAttribute (java.lang.String) location: interface org.w3c.dom.Node out.println(photoElements.item(iElement).getAttribute("id")); and the line he is referring to is for(int iElement = 1; iElement < 10; iElement++) { out.println(photoElements.item(iElement).getAttribute("id")); i am not …

Member Avatar for Ezzaral
0
110
Member Avatar for hell_tej

hi I am using NetBeans 6.0 to create my Desktop Application which is swing based Database Application. I want to create a splesh screen in my application using JavaFX but i don't know how to visible created JavaFX. Can Anyone tell me how to create Splesh screen using JavaFX or …

Member Avatar for peter_budo
0
156
Member Avatar for JavaKiddo

This is a conceptual question... I'm planning to make a simple paint program using swing and I want to plan it in advance before I actually code it. I want to be able to draw some rectangles using fillRect, etc, and then be able to drag those rectangles around the …

Member Avatar for Ezzaral
1
123
Member Avatar for redmaverick

Hi! this is a lengthy post/I hope its comprehensible basically this program should calculate and display the area of a circle.....but it shows area as 0.0 for every value of radius entered.......I would really appreciate it if someone helps! [CODE]import java.util.Scanner; public class circledriver { public static void main(String args[]) …

Member Avatar for BestJewSinceJC
0
113
Member Avatar for abhi_elementx

Hi folks, I want to write grammar rules for a form entry application. On the form/frame I have some fields: Customer name, telephone number I check the validity of the textfileds before data saved. What can be the grammar for a telephone number and name considering that users shud not …

Member Avatar for darkagn
0
75
Member Avatar for Utter_iMADNESS

Hello. Is there a way to get my program to read the next line from a file based on a condition? Let's say my file has lines with 1s and 0s, I need it so that it continues reading the line if it reads 0 until it reaches a 1 …

Member Avatar for darkagn
0
100
Member Avatar for silentspanky

Bellow are 2 files for Pie, First is simple. It works but needs PieJavaPizza to have shown inputs. For slice and type. Radius is always a power of 2. And I am stuck. Is it possible to make import java.io.BufferedReader; import java.io.InputStreamReader; import java.text.DecimalFormat; import java.text.NumberFormat; Work with objects in …

Member Avatar for VernonDozier
0
349
Member Avatar for charlie81

I want to change a while loop to a for loop but not sure how to do it. This is the loop. [CODE][LIST=1] [*]public static void main(String[] args) [*] { [*] String input = JOptionPane.showInputDialog( [*] "Please enter a number, 0 to quit:"); [*] int n = Integer.parseInt(input); [*] int …

Member Avatar for breandan
0
91
Member Avatar for lordelf2004

I try to use JDBC-ODBC but some errors occur, and I don't know why. [code=Java]public void service(HttpServletRequest request, HttpServletResponse response) throws IOException { response.setContentType("text/html"); boolean found= false; PrintWriter out = response.getWriter(); out.println("<html><head><title>SearchAccount</title></head>"); out.println("<body><h1>Your result:</h1>"); out.println("<table border = 1 cellPadding = 1 cellSpacing = 1>"); String sodienthoai = request.getParameter("PhoneNumber"); //SQL String …

Member Avatar for stephen84s
0
277
Member Avatar for xVent

Hello to all , i have my project ... but how can i make it executable and give it to other people so they can run it ? It has GUI as well .. not a simple dos prog Thanks

Member Avatar for JamesCherrill
0
110
Member Avatar for madeindadex305

Let's assume that your classes are working, and you have created an "A" object, and added 4 boxes. (5 x 5, 4 x 10, 2 x 4, and 6 x 12). Now choose the method for displaying all the box sizes. The following text might be displayed: box: 5 x …

Member Avatar for Ezzaral
0
142
Member Avatar for markxchan

I'm trying to use JSR-75 with a mobile phone project. I added the libraries to the project, but whenever I compile and run I get: [B]Error preverifying class com.ibm.oti.connection.file.Connection[/B] Can anyone tell me what is wrong so that it compiles and works well?

0
49
Member Avatar for neutralfox

Hello friends, I am currently developing a chat application and I am having a small problem. When the user send a message, the message appears in a text area, like in MSN and when the user receives a message the message again appears in the text area, its just a …

Member Avatar for leverin4
0
68
Member Avatar for subho07

i want to display data from a table using jTable in swing.how can i increase the text fields....kindly can anyone give me some codes

Member Avatar for subho07
0
248
Member Avatar for MAJORG

I can't seem to compile this properly. I'm having a lot of trouble. Can someone help me please? I have netbeans and Jarmaker. Anyone? [CODE]import java.io.*; import java.net.HttpURLConnection; import java.net.URL; import java.util.Enumeration; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; public class Update extends Thread { public static void main(String args[]) { new Update((new …

Member Avatar for BestJewSinceJC
0
279
Member Avatar for neutralfox

Hello everyone, I am having a small problem, does someone know how to break a long string into small groups of 3 characters. I've tried it but its not working. Here's a sample of my code: [code] int begindex =0, endindex = 3; String plaintext = null; String block; StringBuffer …

Member Avatar for neutralfox
0
114
Member Avatar for denniskhor

Can direct convert GUI Desktop Application Netbean JAVA to .exe for use in Windows? who knw?? thanks.. tell me if impossible.

Member Avatar for peter_budo
0
159
Member Avatar for Bhoot

I have written the following java applet code, mainly with the aim of suspending a thread instead of nullifying it and creating an another instance of it. I want to know if the below written code is safe, or, in other way, good code to follow? [CODE] public class AppletThread …

0
74
Member Avatar for 25kayden

Here are the errors I am getting, but I can't figure it out. Please help: GUI.java: 10: illegal start of expression public GUI(MovieCollection i) { ^ GUI.java: 110: illegal start of expression private javax.swing.JButton extButton; ^ GUI.java:111: illegal start of expression private javax.swing.JTextArea text Area; Here is my program: //GUI.java …

Member Avatar for JamesCherrill
0
116
Member Avatar for Intrade

Why is it that when I attempt to repaint the entire Applet, the screen flashes (as if the repaint requests are slowed down due to many details being painted all at once), whereas a repaint to a JPanel added to the ContentPane of the JRootPane doesn't flash at all? Then …

Member Avatar for Ezzaral
0
127
Member Avatar for gyagyus

Hi, I try to use this function and although I have imported javax.swing.JComponent, the compiler does not recognize it ("cannot find symbol method paintImmediately(int,int,int,int)"). Any help would be greatly appreciated, gyagyus

Member Avatar for Ezzaral
0
85
Member Avatar for llemes4011

I wrote a level-editor for a game that I wrote, and I need to save the image on the screen to a file so i don't draw a bunch of tiles to the screen each frame. I have no idea how to save it. I could just screenshot it and …

0
76
Member Avatar for orangejuice2005

Am working on a big project and am at a particular point within it that requires me to do a couple of things with an array: Array size [1048] 1)How would I break up an array into 10 sections and further divide those sections into 100 spaces u know like: …

Member Avatar for orangejuice2005
0
117
Member Avatar for doha786

i have code to find next string after a particular string that shows result correctly.. right now i want to make an array to show the list of my output's name. [CODE] FileReader fr; BufferedReader br; String result=""; String word= new String(); String target = "friend"; try{ //read large text …

0
75
Member Avatar for add4

Hello there, I wrote a program in java and i make it jar. it works its task; But a user can terminate(Kill) my program by task manager. What can i do to prevent my procee in runnig? Need Your help... Thanks

Member Avatar for masijade
0
73
Member Avatar for add4

Hello there. i want to know the opened web address from my browser in java. Any one who can help me? Thanks

Member Avatar for Ezzaral
0
92
Member Avatar for javaman2

hey again i hate to be a bother but i still can't get this to work my driver program(the second code) won't call the add method or the minus method to subtract input i tried to do this in my code below and have failed if you have any suggestions …

Member Avatar for darkagn
0
150
Member Avatar for jackiejoe

Having a problem with getting my array into a TextArea, I originally wanted to use a JTable but found the Table Model and what to do too difficult for what I want so my question is I have my array and now I want to display it inside a TextArea, …

Member Avatar for javaAddict
0
2K
Member Avatar for doha786

i m very new in java. now facing prob to get char/string after a particular string from txt file. suppose i have few text files in one folder and every txt files contain some line like my first friend jocky, second friend vicky and so on.....:$ my program should open …

Member Avatar for Ezzaral
0
198

The End.