32,199 Topics

Member Avatar for
Member Avatar for #include <lou>

Hi everyone, I am trying to pass the X and Y values that are in class Chart onto class NodeAvg, but cant come up with the code to do that.Any help appreciated: package Testing; import java.awt.Color; import java.awt.Paint; import java.io.IOException; import java.util.ArrayList; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.plot.DrawingSupplier; …

Member Avatar for NormR1
0
209
Member Avatar for black_star

ok hey guys i have a application in vb with a textbox 2 buttons and a web browser, button1 is for navgating the web browser through what is entered in textbox1 button2 is for inserting the javascript : javascript:document.body.contentEditable='true'; document.designMode='on'; void 0 however when i clickthe button i just get …

0
109
Member Avatar for Lius

This same code run good on windows 7 32 bit Problem happen when i run it on windows 7 64 bit error : database is locked... public void genTablehadir() { tblKehadiran.setAutoCreateColumnsFromModel(false); m_data = new Kehadirantable(this); tblKehadiran.setModel(m_data); tblKehadiran.setRowHeight(23); //inisialisasi int m_Jalokasi=0,m_kode=0; Boolean m_alokasi=false; String[] parsePeriode; String m_npk="null",m_nama="null",m_ket="null",m_id="null",m_flagE="null",m_flagP="null",m_cekhk="null",m_ceksts="null"; try { db.createMasterConn(); rs1 …

Member Avatar for Lius
0
343
Member Avatar for hszforu

I know how the ++ operator and -- operator works.This is my code to count the no of digit in an integer and it works perfectly. import java.util.Scanner; public class modified_sepadigit { public static void main(String args[]) { Scanner input=new Scanner(System.in); System.out.println("Enter a number"); int no=input.nextInt(); int noOfDigit=0; int tempNo=no; …

Member Avatar for hszforu
0
118
Member Avatar for Baduizm

I have a written code on a simple address book which allows addnew,view single entry and view all names. I have added the delete functionality to allow one to enter name to delete its entry but I get Error: [B]cannot find symbol return addressBookEntry.delete(); symbol:method delete() location:variable addressBookEntry of type …

Member Avatar for Mutucks
0
469
Member Avatar for rajesh_tawari

hello friends.. i want your hep.. i m searching for a mini project in java.. so please suggest some project titles to me..waiting for your reply.. thanks take care rajesh

Member Avatar for stultuske
0
362
Member Avatar for vikkytech

hi im doing my B.Tech IT i wish to do a real time project so i need help regarding of what i can do as a project some ideas regarding that, also any website i can refer for the idea . I chosen my domain as JAVA...

Member Avatar for Abira Pavai
0
113
Member Avatar for C:\>

If i create an object in Class1 and save some data in that object in Class1, how can i access that same data in Class2? Here's a code sample that should clarify my situation: Class1.java: public class Class1 implements Runnable { public ClientArray ca; public Class1(int port) throws IOException { …

Member Avatar for delta_frost
0
244
Member Avatar for nikolaos

In a previous thread i had described a problem i had to transfer a frame or panel and all it's components as an image into a buffered image. I thought i had found the solution but it seems i am doing something wrong. In line 162 i call the method …

Member Avatar for NormR1
0
477
Member Avatar for JESIA72

hey all iv have an assignment(wrtie an employee payroll program) which iv seen alot of other people have posted about so sorry for bringing it up again but im stuck. Iv made the program and it runs fine but it always calculates grosspay and netpay as 0.0 everything else (firstname …

Member Avatar for jLocke
0
561
Member Avatar for c.pentasuglia

Hey all, I need to get a design going to parse some XML files, in the past i have used XStream to parse files, however it doesn't appear to be working in this case. Here is a sample of the generated XML i'm trying to parse: <debugging level="0" /> XStream …

0
79
Member Avatar for hatebin

Hi ! I'm devloping a Personal Trainer app on android and I need to remember training results in a history. I decided to remeber this results in a XML file. WHAT I HAVE: is an User class with results class User{ String name; int result1; int result2; User(String name, int …

Member Avatar for peter_budo
0
292
Member Avatar for wallet123

> Hey guys! good evening! > hope you can help me with this one. > this is the thing that i want to do!: > > -Input 2 values : 1 string, and 1 int > -the string should have only letters (cant contain numbers!) > -encrypt the string using …

Member Avatar for wallet123
0
190
Member Avatar for mhaselip

Hi. i was wondering if somebody could help me. Im looking for a php function to check a get and post methods for any type of hack or injection i.e. xss php java html mysql injection. the function needs to check the get or post methods prior to using it …

Member Avatar for dany12
0
195
Member Avatar for jalpesh_007

I am working with CSVfile program. I have already calculate something from it. Name,Age,Sex,Pincode,Disease 1. aaa,4,M,35265,flu 2. bbb,4,M,35652,Gastric 3. eee,6,F,35265,Brain 4. sss,7,M,32564,flu I have made program for calculating no. of age,sex and pincode as attached in the code. In this i have calculated that age=4 comes how many times and …

Member Avatar for NormR1
0
2K
Member Avatar for jalpesh_007

I got error of ArrayIndexOutOfBounds Exception in following code. Please help me to how to solve the error.I also used String tokenizer class. import java.io.*; import java.lang.*; import java.util.Arrays; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.Reader; import java.util.StringTokenizer; public class CSV{ public static void main(String[] …

Member Avatar for JamesCherrill
0
391
Member Avatar for trishtren

Hey, i googled around for a solution but seem unable to come up with a reasonable solution to the problem of passing a class as a parameter. I wish to mimic the syntax used in java like below : setPenColor(new Color(255, 0, 255)); Where i can pass a new object …

Member Avatar for JamesCherrill
0
206
Member Avatar for anonb

I need help with Cartesian coordinates: Write a Java interface named Centered with two abstract methods with no argument: one named getCenterX that returns a double, and another named getCenterY that returns also an double. The purpose of these two methods is to return the two Cartesian coordinates of the …

Member Avatar for Valentinesmith
0
342
Member Avatar for rossi1114

Hey, Guys and gulls i need help with the following asap. I'm trying to code a checkers board in java and populate it with checkers and then paint this onto a JPanel. I then add the JPanel to my JFrame. I am able to draw my checkers board and populate …

Member Avatar for jalpesh_007
0
204
Member Avatar for alemojarro

Whenever I load the object there are these random symbols around the data. public void Save() { try { System.out.println("Where would you like to Save?"); File thefile = new File(Input.next()); FileOutputStream fout = new FileOutputStream(thefile); ObjectOutputStream oos = new ObjectOutputStream(fout); oos.writeObject(list.getRoot()); oos.flush(); oos.close(); fout.flush(); fout.close(); } catch (Exception e1) { …

Member Avatar for alemojarro
0
96
Member Avatar for lj81

Hi I am currently writing a pool game in java and am very close to finishing it. I am having a problem with the rule of the black ball being potted out of sequence. I need all balls to be potted first before the black ball is potted if all …

Member Avatar for lj81
0
148
Member Avatar for sgunnery

Hi Guys [B]I must ask everyone bear with me regarding my idea it needs a bit of explaining before it makes sense[/B] to start this is totally a project in my own time for my own learning and development in programming it is being done for my employer but I …

Member Avatar for sgunnery
0
202
Member Avatar for hasstechit
Member Avatar for anand01
0
93
Member Avatar for 47pirates
Member Avatar for Zaad
-1
211
Member Avatar for sush jack

import java.awt.*; import java.awt.image.BufferedImage; import javax.imageio.ImageIO; import javax.swing.*; import java.io.*; public class one extends JFrame { public one() { JPanel p = new JPanel(); JLabel l = new JLabel(); setTitle("ScrollText"); setSize(600, 400); setLayout(new BorderLayout()); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); BufferedImage image; p.add(l); add(p); try { File file = new File("D://Photos//foto(222).jpg"); image = ImageIO.read(file); …

Member Avatar for NormR1
0
11K
Member Avatar for c.pentasuglia

Hey all, I need to get a design going to parse some XML files, in the past i have used XStream to parse files, however it doesn't appear to be working in this case. Here is a sample of the generated XML i'm trying to parse: <debugging level="0" /> When …

0
107
Member Avatar for godzab

I have two differnt classes' that extend from the JFrame class. I have a button on one frame that should go to the next Frame, but how would I do that?

Member Avatar for NormR1
0
688
Member Avatar for Gen.Asura

Hi, are there any Java book available for some one who has NO knowledge about programming at all? I tried books like head first java, thinking in java but they were no help. Head first java started out with coding and I just knew nothing by reading the syntax. Are …

Member Avatar for Krokcy
0
125
Member Avatar for L1ndzee

Hi, I am currently working on a java program for class and I cannot figure out what I am doing wrong. Each week I have been creating this java program that calculates sales, total compensation, etc. Well for my final team assignment my group has to take a piece of …

Member Avatar for NormR1
0
375
Member Avatar for enakta13

I have created the buttons for on-screen keyboard. The only thing I don't know is how to add the corresponding letter/character via actionListener to the jTextField. I know if it was not jTextField I could use "append".

Member Avatar for Krokcy
0
286

The End.