35,618 Topics

Member Avatar for
Member Avatar for sariberri

I don't know why/how to fix this...It's saying i have a NoSuchElement exception on line n=f.nextLine(); [CODE]while(i<listFlights.length){ i++; n=f.nextLine(); d=f.nextLine(); h=f.nextInt(); m=f.nextInt(); Time one=new Time(h, m); listFlights[i]=new Flight(n, d, one); }[/CODE]

Member Avatar for sariberri
0
154
Member Avatar for sciprog1

Hello, The following program has a JButton and a JLabel in a JFrame. I am using Flow Layout. How do I get the JLabel to show directly below the JButton before clicking the JButton and after clicking the JButton? Thank you! [CODE]import java.awt.event.*; import javax.swing.*; import java.awt.*; public class checks …

Member Avatar for sciprog1
0
96
Member Avatar for sciprog1

Hello, I have a program where if I click anywhere in a JFrame, a ball appears(using fillOval).If I happen to click on the ball once it has appeared, how do I make it disappear? Thank you!

Member Avatar for sciprog1
0
133
Member Avatar for blueman:-0

any one can help me to mean how i create a bitmap because the examples in net is very difficult and i can't mean any thing of this (sample examples plz )

Member Avatar for Ezzaral
0
64
Member Avatar for scobi

/*Here is my code as you can see the in front of rice set the four RadioButton in different Location? i have been tired but i can't solve this problem .Help me Please if u can.*/ import java.awt.*; import java.awt.event.*; import javax.swing.*; class Fnf{ static Box createBox(String[] sa) { Box …

Member Avatar for vealparry
0
456
Member Avatar for blah123123

Im trying to make an employee database where the user can add, delete, search for, view all, edit an employee, and quit. After the user clicks the add or delete button, the program is supposed to allow them to input the names and other things nd when they press enter …

0
109
Member Avatar for rohit2
Member Avatar for rohit2
Member Avatar for vealparry
0
89
Member Avatar for Janu Sam

Hi, I am new to Java Swing. I am trying to develop a GUI for my tool, which consist of a JTextPane which is enclosed in a JScrollPane and to meet my requirement I am using a JTabbedPane for holding this textpanes. In the right side of the GUI I …

Member Avatar for vealparry
0
138
Member Avatar for pulsar_sitra

Hello, My final year project is to develop a java application which should get the two java programs as input and tell us if the programs are copied or not. The copiers should not be able to cheat if they just change the variable names. The copiers should not be …

Member Avatar for quuba
0
98
Member Avatar for tyson.crouch

Hi Guys, Please find below a copy of my code for the issue that I'm having. So, before you have a look at the code and inevitably laugh at something silly that I've done (because I have a feeling that it would be), I should explain what my problem is. …

Member Avatar for quuba
0
232
Member Avatar for theurbanist

I'm trying to write a program that switches the "x" and "o" in a String, only using the replace method repeatedly. At the end of the day, the program should turn 'xxxooo' into 'oooxxx'. I understand why this isn't working, but I'm just completely out of ideas as to how …

Member Avatar for rapture
0
168
Member Avatar for newgeekintown

Is there any way to combine two or more .exe files in one .exe files?????? Please help....!

Member Avatar for newgeekintown
0
47
Member Avatar for mbouster

Dear all I need your guidlines with this project because I dodnt done nothin yet an i am terrified to admit that I am going to deliver this on Wednesday and in the midtime I have a final in another course. What I didn till now is the UML for …

Member Avatar for artche20
0
216
Member Avatar for Holmez85

Hi, anyone here who has a sourcecode in Java for a familytree? Im learning java, and whant to study how a familytree program is built. Any tutorial or sourcecode availible? :)

Member Avatar for masijade
0
68
Member Avatar for OcarinaSensei

[url]http://img200.imageshack.us/i/screenshot20110111at115.png/[/url] Thanks in advance fellow geeks!

Member Avatar for masijade
0
573
Member Avatar for bangor_boy

What is a better way to write the code, [CODE] public void showFeelings(int howManyGoals) { switch (howManyGoals) { case 0: System.out.println("Oh dear, not very good"); break; case 1: System.out.println("Oh dear, not very good"); break; case 2: System.out.println("Oh dear, not very good"); break; case 3: System.out.println("Ive seen donkeys shoot better"); break; …

Member Avatar for JKP()
0
183
Member Avatar for Slyvr

I have a program with 2 panels, each with it's own class. LeftPanel and RightPanel. Whenever I click a button that does some calculations (like calculating total assets amount) in one of the panels, it doesn't update that info for the other panel. For example....I have this seperate class that …

Member Avatar for Slyvr
0
112
Member Avatar for bangor_boy

[CODE] private JButton[] buttons; private static final Character firstChar = 'A'; private static final Character lastChar = 'D'; /** Creates a new instance of ButtonPanel */ public ButtonPanel() { buttons = new JButton[4]; setLayout(new GridLayout(2,2)); Character label = firstChar; for (JButton b: buttons) { b = new JButton("" + label); …

Member Avatar for jon.kiparsky
0
171
Member Avatar for Neversleepin

Hi, i'm trying to copy all txt files from a directory into one file to another directory. But i have the following error: "FileStreamsTest: java.io.FileNotFoundException: . (Accès refused)"" My txt files are located in the project folder of NetBeans. here is my code: [CODE]package FileStreamTest; import java.io.*; class FileStreamsTest { …

Member Avatar for bibiki
0
1K
Member Avatar for Ambislm

This is my sample application which provides result as follows: [CODE]Array Values : arr[0][0] :6 arr[0][1] :0 arr[0][2] :0 arr[1][0] :0 arr[1][1] :0 arr[1][2] :0[/CODE] am using the jQuery Highcharts: [CODE]chart = new Highcharts.Chart({ chart: { renderTo: 'container', defaultSeriesType: 'column' }, title: { text: document.chart.chartTitle.value }, series: [{ name: 'USA', …

0
83
Member Avatar for shack99

Hey again, I'm having another problem unfortunately. We were asked to create a tree that has binary tree properties as well as max heap property. (take A(7),C(8) and B(3) ; the tree should be so that the it should alphabetically represent a binary tree and numerically represent a heap) I …

Member Avatar for jon.kiparsky
0
13K
Member Avatar for J_coder

Hi, I'm relatively new to JSP (J2EE). While I was reading I encountered the following JSP declarations. (<%!>) now is my question how does the servlet save the new value, because I thought that the container creates a new thread for every request to access the servlet. So by doing …

0
37
Member Avatar for aligajani

How do I put the jar file in eclipse inside the workspace folder so it does not have to be re linked or re path changed when I use it in another computer. Currently, my problem is that even when I keep the JDBC MYSQL connector (jar) file in the …

0
86
Member Avatar for mbouster

I have the following problem and I dont undesratnd how to use arralists to implement. I have a customer class which I want to hold some primitive data types as name , id , address etc. To implement this using arraylists I must declare it as below? [CODE]Arraylist Customer =new …

Member Avatar for jon.kiparsky
0
228
Member Avatar for ajst

Hi guys, I've been looking into reflection and was wondering if anyone had any good tutorials or a good use for it. I understand how it works but can't think of an example of when it would actually be used. A website with a task that needs reflection to solve …

Member Avatar for ajst
0
155
Member Avatar for sumeetdesaeee

I am new to JSON... I have been told to use it with XStream in my project.. I searched on net... But, I did not get any satisfactory information.... So, can anyone please tell in simple language what is JSON n basically why is it used?

Member Avatar for sumeetdesaeee
0
36
Member Avatar for sirlink99

I have a problem with this code and I do not know what is causing it. [CODE]// The "ArrowKeys" class. import java.applet.*; import java.awt.*; import java.awt.event.*; public class ArrowKeys2 extends Applet implements KeyListener, Runnable { int x = 50, dx, y = 50, dy, a = 0, score, total, locx, …

Member Avatar for sirlink99
0
118
Member Avatar for sn4java

We are trying to load a flash file in a browser from local machine its loading only in Internet Explorer (IE) but not in other browsers. Please suggest me some solution. [code=html]<body> <object id="flowplayer" width="300" height="200" data="http://releases.flowplayer.org/swf/flowplayer-3.2.5.swf" type="application/x-shockwave-flash"> <param name="movie" value="E:/SkillMate1/video/zelda.swf" /> <param name="allowfullscreen" value="true" /> <param name="flashvars" value='config={"clip":"E:/SkillMate1/video/zelda.swf"}' /> …

0
89
Member Avatar for satish.sahoo

Hello I want to develop a program in which I query a string to any search websites like Yahoo,Bing etc.. and get search results(only the websites) to display in a list box.So is there any way to get the search results ? Thanks From Satish

Member Avatar for masijade
0
88

The End.