36,051 Topics

Member Avatar for
Member Avatar for karyal

hi java professionals! i am building a system that require printing reports. i need small tutorial. besides if you gave an advice about how to form a report, that would be nice. thank you!

Member Avatar for Aviras
0
117
Member Avatar for hardik.rajani

Hi I was trying to make a remote desktop program using java socket programming. I have been successful to develop it for LAN. But i am wondering that how to use the same application over internet. As i am not an networking guy, i don't have enough knowledge of tunneling …

Member Avatar for Aviras
0
2K
Member Avatar for sathya88

am try to create notepad in java... menu item actionlisteners are not working...except exit... what is the problem with my code??? and is there any sequence follow... because am try to use jScrollpane the text area will be blocked??? code is.. [CODE]import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JFrame; import …

Member Avatar for JamesCherrill
0
233
Member Avatar for Mahesh59

i'm able to upload files using jsp into my server.Now i want to download those files with a popup window showing open save or cancel options.can anyone tell me the code for it.

Member Avatar for cuddlefish
0
2K
Member Avatar for chandru7

Hi all, I wants to connect a legacy system (mainfrme) through my code (either java or .net) and need to mask the columns in vz450 file columns(fixed length files) and need to ftp into another mainframe machine,how to achieve this,any ideas are greatly appreciated.thankx

Member Avatar for peter_budo
0
113
Member Avatar for SurrounD

Hey guys, Im new to Java and i am trying to wrap my head around arrays and what not. What i am trying to do is create an array for a puzzle which is 4x4 and has the numbers 1 to 16 so far i have got this [code]public class …

Member Avatar for SurrounD
1
144
Member Avatar for jimmylee7706

I'm trying to make a simple text game just for fun. Java is a language I want to learn so making a game is a great start. I'm having problem with my if statement however. This is an example of whats happening. This is only a few hours into the …

Member Avatar for jimmylee7706
0
235
Member Avatar for DarkPheonix

[CODE] import java.io.*; class BinaryCounter{ private String b; private int binary; public String binaryConverter(int binary){ this.binary = binary; String temp; temp = Integer.toBinaryString(binary); return temp; } public String INCR(String b){ this.b = b; char[] temp1 = new char[b.length()]; temp1 = b.toCharArray(); char[] temp2 = new char[temp1.length+1]; for(int h = 0 …

Member Avatar for DarkPheonix
0
895
Member Avatar for pudgeeboy

hi guys got a question here how can you display output 1 to 35 in a variable declared with the value of 1 (a=1; with the condition of 1>100 ??? in a for loop structure sorry if i dont make sense guys.. im kinda new to this thing

Member Avatar for Anuradha Mandal
0
158
Member Avatar for singh_soorma94

Hi, I made this thread for our groups assignment. We are suppose to get 3 program codes, at least 250 lines each, from anyone that created one. As soon as we retrieve them, we are supposed to evaluate them and find out what type of things they used and how …

Member Avatar for sirlink99
0
161
Member Avatar for janice91

Greetings to all experts, I am a newbie here in Java OOP and is struggling in practicing how to code a OO program, using Java. I hope anyone can give me a head start please. Here is the requirement which i am suppose to complete: [B]Input[/B] The first line of …

Member Avatar for JeffGrigg
0
2K
Member Avatar for janice91

Greetings to all experts, I am a newbie here in Java OOP and is struggling in practicing how to code a OO program, using Java. I hope anyone can give me a head start to enable me to write the main method to test the 2 methods. Here's the question: …

Member Avatar for JeffGrigg
0
198
Member Avatar for Nathan_11
Member Avatar for Shanti C

Hello, i have used ireport tool for creating jrxml template for creating chart(XYLine chart). and i used this jrxml file in java code to create chart. Here i passed csv file as data source. Now i can freely change color,title,subtitle,font ect from java code . what i want is how …

Member Avatar for vimukthirandika
0
901
Member Avatar for vijiraghs

I am using netbeans to do "Library book search system"in EJB. I have a html page in which I want to display the list of books that match with the entered keyword. I get the keyword from the user and send it to a servlet through an ajax funtion which …

Member Avatar for vijiraghs
0
142
Member Avatar for sha11e

Hi there, I am new to Java and have a question about user input. In my book they use Keyboard.readInt() etc A tutorial I watch does Scanner input = new Scanner(system.in) I also saw a few videos doing, well I don't remember exactly but something like... I remember they imported …

Member Avatar for OblibSystems
0
179
Member Avatar for maizer1

Hi, on our webpage, we display text taken from the DB, that includes html character codes like &lt;br/&gt;. Obviously, this display as <br/> on the page, but we'd like to actually see the newline. Its probably stored like this in the DB because we did an escape on the text …

Member Avatar for maizer1
0
115
Member Avatar for vishal1949

I am new to programming and I don't know how to make interfaces. My code is : [CODE]public class CarsDescription { /** * @param args the command line arguments */ public static void main(String[] args) { interface Domestic {} interface Import {} interface Japanese extends Import {} interface German extends …

Member Avatar for Ezzaral
1
352
Member Avatar for Majestics

I want to create a tool tip which has fix rectangular size and show custom font's... Any tips or link or any material to start with?

Member Avatar for mKorbel
0
158
Member Avatar for Majestics

I m using windows vista, and i have set l&F of my app "classic look and feel", which is fixed, as windows seven doesnt have classic theme , will java "classic look and feel" work on windows 7? If not then how can we make it work? :)

Member Avatar for Ezzaral
0
144
Member Avatar for mharklance02

[/B]Write a program to read age and gender of 45 Students enrolled in an Art Class. Display the total number of students whose age is between 8 and 12.

Member Avatar for Ezzaral
0
129
Member Avatar for raviaaaa

iam inserting the emp details to TABLE, values are updating to ATABLE but iam not getting updated values in view (java sript in jsp file) please suggest me how to solve this problem

Member Avatar for javaAddict
0
307
Member Avatar for sankarnarayanan

I am creating a media player using java media framework. I want to develop a sound equaliser for it. where can i find codes for it.

Member Avatar for Ezzaral
-3
33
Member Avatar for sirin_adam

Hello! [CODE]public static void main(String[] args) { System.out.println("Type the operation system (Windows or Linux):"); Scanner oku= new Scanner(System.in); String os=oku.next(); if(os=="Windows") { CreateForWindows(); } if(os=="Linux") { CreateForLinux(); } else { System.out.println("Wrong selection. Program closed."); return; } return;[/CODE] It always show me Wrong selection. Program closed. I can not understand why …

Member Avatar for sirin_adam
0
171
Member Avatar for almostbob

javascript:document.body.contentEditable='true'; document.designMode='on'; void 0 the codescrap entered in the address bar makes any web page locally editable, you can play with any element or content

Member Avatar for MooGeek
0
73
Member Avatar for vijaybrar

Hi I need help its actually working fine but i don't know how to put a control structure in knowing whether the input is wrong, example when i instruct user to input number it must be less than 100 if not error will show up that is only the last …

Member Avatar for vijaybrar
0
511
Member Avatar for mozy1691

am a student developing a programe for a lib but am failing to create new JFrames when buttons are clicked i need help handing in with 3 days

Member Avatar for masijade
0
87
Member Avatar for mingis

Hi there, I am a complete newbie to JSP so apologies if this is a blindingly obvious question - I have researched on Google, but can't get this working. I have a simple switch statement as below: [CODE] <% for (int a=0; a<10; a++) { if ( null != countryID[a] …

Member Avatar for masijade
0
143
Member Avatar for morymory

Hello, I am a Thai beginner and this is my test code. I run my old code and it error 500. I don't know how to fix it because last time i can run it and no error. And i didn't change anything in my code, just run it again. …

Member Avatar for morymory
0
138
Member Avatar for plasticfood

i am not saying that all of my jar files are not working. in fact, all of them do work so far except for this one game that i've made. it runs perfectly in my editor, but its jar file will not execute. i checked its MANIFEST.mf file and the …

Member Avatar for plasticfood
0
157
Member Avatar for zachf632

Is it possible to have a python program communicate to a java program over the internet? Like could i send text over sockets from a python program and have a java program receive it.

Member Avatar for NormR1
0
74
Member Avatar for MissJava

Hi there, I am supposed to make a Java programme called prize collection My programme is a follow: [code]import javax.swing.JOptionPane; import java.util.*; import java.lang.*; public class PrizeCollection { public static void main (String[]args) { // Declare variables and arrays which will be used in the programme String[] Name = new …

Member Avatar for MissJava
0
121
Member Avatar for -acir-

i tried to add enum.. not sure why its not working... pls help. [code] /* * To change this template, choose Tools | Templates * and open the template in the editor. */ import java.io.IOException; import java.io.PrintWriter; import java.util.Random; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * * …

Member Avatar for -acir-
0
110
Member Avatar for nerdy9000

I am a beginner to Android programming. I am trying to convert an string(from an EditText widget) to a double Whenever i run the program, it crashes whenever the parseDouble function is used: [CODE]Double.parseDouble( input.getText().toString() ); [/CODE] Does anybody have an idea why parseDouble causes my program to crash and …

Member Avatar for nerdy9000
0
1K
Member Avatar for dhija22

Hi everyone I am a beginner in java,and i need your help.If i have a array like this : [CODE]int [] eda={2,5,8,9}[/CODE]how to use the get and set methods for consult and change the data of this array..?? Please help me with a simple example if anyone can.Thank u I …

Member Avatar for NormR1
0
1K
Member Avatar for rotten69

G'day everyone, I just have a few questions about Java programming language. Before getting started with the question, I was actually doing some reading for my java course and there was an implementation of Coffee vending machine in java. Therefore, the questions came to my mind and these are: Do …

Member Avatar for peter_budo
0
201
Member Avatar for dantinkakkar

I need assistance in printing out a Quine. I googled it and stuff, but I didn't understand the code snippets I saw. Can anyone explain in a more lucid tone?

Member Avatar for peter_budo
0
128
Member Avatar for dhija22

HI everyone,i am a biginer in java and i need your help...i have write a prgram but i cant execute can anyone help me for execute it the program is : package sensor; [CODE]public class sensor { private String Id; private int Kordx; private int Kordy; private char[] getId; public …

Member Avatar for dhija22
0
416
Member Avatar for dhija22

HI everyone!I am a beginner in java and i need your help,please if u can help me i have write this code : [CODE]package person; public class person { private String Name; private String Birthday; public person (String name,String birthday) { super (); Name=name; Birthday=birthday; } public String getName() { …

Member Avatar for NormR1
0
121
Member Avatar for sirin_adam

Hello! I have write a program on Java. This Java program creates a file which have C code for Windows. I need to compile everytime this C code by copying it to another IDE. Can i do this compile process from java program? (C code is very simple and it …

Member Avatar for sirin_adam
0
218
Member Avatar for thompsonSensibl

Hello there. Could you give some insightful input into my problem: My program is fed multiple lines of input. The input is composed of a name and two values of that person. Each line is of a new 'person' e.g. "James 23 15.05 Lucy 51 25.523 Kam 42.4 21.54 Jak …

Member Avatar for JamesCherrill
0
135
Member Avatar for superjj

I'm trying to learn java. Now I want to test the buttons, but I don't understand the part of the layout. Can't I just write button1.setLocation(50,50); or someting like that ??? Thanks in advance.

Member Avatar for JamesCherrill
0
103
Member Avatar for thompsonSensibl

Hi there, I am not good with Java. Can someone explain this for loop for me please. For a for loop, to my understanding the syntax goes something like, [CODE]for(int i = 0; i < someNumber; i++) { //...some code... }[/CODE] but in this one I have seen, the for …

Member Avatar for peter_budo
0
145
Member Avatar for marsangel

HI! Can someone help me regarding my USB and a Java program. So I have created a Jar file where there is a login form. I have my USB that is partitioned in two. What I want to happen is before I open one of the partitions, my Login form …

Member Avatar for marsangel
0
104
Member Avatar for naffan

Hi all, Wonder if someone could please lend a hand, I have a courses.txt file which is read into a Course String array I also have a program.txt (A list of 8 courses required to pass the program) There's a menu option to change the Program, however a condition of …

Member Avatar for JamesCherrill
0
216
Member Avatar for dahaka

Hi I'm new to GWT and I am learning using the GWT plugin for eclispe and also have smartGWT. I have found afew tutorials online which have been very helpful but havent found one that explains how I can connect, send, recieve and display database information in the different widgets. …

Member Avatar for peter_budo
0
480
Member Avatar for Vongola_Takeshi

Good Day! My professor in object oriented programming wants us to collect a JFrame form to a class.... he told us the code but it did not work...Hope you may help me...and thanks in advance [code]import javax.swing.JOptionPane; public class Firm { //---------------------------------------------------------- // Creates a staff of employees for a …

Member Avatar for Vongola_Takeshi
-1
9K
Member Avatar for Majestics

Is there any method in java to know size of decimal?? I mean 14 has 2 digits , 100 has 3 etc....... I m going to implement auto generated number like A0001 , now i want to change it on each new entry , so Does any one has any …

Member Avatar for Majestics
0
119
Member Avatar for naffan

Hi All, I am trying to load from a .dat file a collection of student objects However on load it only loads the first student and then stops I've tried to put print messages in but with all the nulls I really can't seem to work out what is happening. …

Member Avatar for naffan
0
164
Member Avatar for jhopwood

Having some issues figuring out how to code my add, modify, search, delete, and save buttons in my program. The buttons need to also adjust the size of the array once I add or delete the an item. Any help would be great. I may be going about this the …

Member Avatar for NormR1
0
329

The End.