32,199 Topics

Member Avatar for
Member Avatar for calomari

> Hello, I am hoping to get some advice on what I might be doing wrong. This is the second program I wrote but I am still very new at writing any JAVA code so please bear with me. Instructions are - Create a Mortgage Calculator to display the original …

Member Avatar for Taywin
0
120
Member Avatar for Kunal Lakhani

I have created an application with report features. report features is created via iReport My application also contains a reports folder containing all .japser files Here is the code public MyiReportViewer(InputStream stream,HashMap parameter) { this(); try { /* load the required JDBC driver and create the connection here JDBC Type …

Member Avatar for Kunal Lakhani
0
2K
Member Avatar for ITshard

i need help with the punctuation check box. there's no supposed to be punctuation when it's not check. Im using netbeans. ![new](/attachments/large/3/new.jpg "new") here's my code ![neww](/attachments/large/3/neww.png "neww")

Member Avatar for JamesCherrill
0
196
Member Avatar for raj26061990

Eg.407 4*4*4=64 0*0*0=0 7*7*7=343 now 64+0+343=407. Any number which satisfies the above condition is called as Armstrong

Member Avatar for vinnitro
1
490
Member Avatar for klin1344

Hi. I am a very beginner at Java. I am taking an online course on Java and I'm stuck on an assignment. Anyone who is good with Java, can you please take a look at my code? This assignment was due yesterday but I couldn't finish it. It is very …

Member Avatar for JamesCherrill
0
708
Member Avatar for jakubee

Given an Arrayl.ist that contains a list of Employee object references, describe two ways in which you could write code to make a copy of that ArrayL ist. (Hint: one way would be a shallow copy). Use code examples to illustrate your answer. Discuss the implications of each way you …

Member Avatar for JamesCherrill
0
1K
Member Avatar for borchu

Hello guys, I start to learn&code some basic small client/server console applications in java -especially in android- and also I try to learn Threads, in fact, I managed to connect 2 different machine by uploading different projects to these machines, for example one project only consists of client and the …

Member Avatar for borchu
0
3K
Member Avatar for eirene08

**this is the code!** import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.RenderingHints; import java.awt.Shape; import java.awt.font.FontRenderContext; import java.awt.font.GlyphVector; import java.awt.geom.AffineTransform; import java.awt.geom.Point2D; import javax.swing.JFrame; import javax.swing.JPanel; public class Clock extends JPanel{ public void paint (Graphics g) { Graphics2D g2d = (Graphics2D) g; g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); String s = "12 1 2 …

Member Avatar for Taywin
0
529
Member Avatar for kraykezia

hey everyone, i am trying to write a code that will calculate the sum of all values in a column of Jtable. the total sum will change when a row is removed or added. i tried many ways. i need help urjently. :)thanks

Member Avatar for NormR1
0
250
Member Avatar for andrewisthebomb

Hey guys! Ok, so my problem is that I'm trying to add something that says "num1 does not equal 'a number'" I want it to read any number I put it, but not anything that isn't a number. If I can figure this part out, it should loop where I …

Member Avatar for NormR1
0
1K
Member Avatar for Yarra

Hi i have a quick question. If i have a java application are their any third party applications that can help me run it on an html website without porting it to a JApplet.

Member Avatar for NormR1
0
263
Member Avatar for paryudi

I am creating a program that will do 67,108,864 calculations using Netbeans. But when I run it, there is an error message: java.lang.OutOfMemoryError: Java heap space. I have tried several things to overcome this problem: 1. I changed the setting of VM Options of the Project Properties. I even set …

Member Avatar for JamesCherrill
0
681
Member Avatar for kraykezia

hi, i need to display dfferant images in a single label . here is the coding, import javax.swing.ImageIcon; if (ALBtbl1.getSelectedRow() == 0) { picLbl1.setIcon(new ImageIcon("C:\\Documents and Settings\\kezia\\Desktop\\TMK.JPEG")); the problem is that the image does not get displayed in the label. please i need solution urgently. thanks

Member Avatar for JamesCherrill
0
117
Member Avatar for john.mcdonnell.777

I have this code and I have been trying to figure it out for a while now but i cant get it to work .My basicproblem is I cant get the paint part or the programme to work properly. I have done several paint programmes in the past but i …

Member Avatar for JamesCherrill
0
245
Member Avatar for sengathir

I have to pull the data from DB2, CollableStatement cs =conObj.prepareCall("call " + db2Creator + ".IVR_LOOKUP(?,?,?,?)").... whereas 2 fields are input and 2 are output(output are not fields but they are support to retrieve the rows...). ex:- if i/ps are "23" & "Raja", O/p parameter 1 should fetch 5 rows …

0
44
Member Avatar for manish.mehta

Hi, I am using Selenium Grid and running my test cases on remote machine. And i am also using Screen recorder to record video for my test. When i start Screen recorder, it only starts in the hub machine (my machine). So i thought to run the Screen recorder on …

Member Avatar for Nutster
0
749
Member Avatar for ITshard

sorry for my english but im really so desperate. This is due next week monday, and i don't know what do to or even where to start. Our professor didn't explain this homework , she just gave us a photocopy problem, we dont have any reference to look at. soo …

Member Avatar for stultuske
0
326
Member Avatar for ms_farenheit1

I am trying to implement a JScrollPane, containing a JTextArea, whose vertical scroll bar automatically remains as the bottom when new text is added, if it is already at the bottom, and stays in place otherwise. I have found a solution that seems to work, except when I move the …

Member Avatar for NormR1
0
664
Member Avatar for boxofsnacks

import java.awt.*; import java.text.NumberFormat; import java.util.Locale; import javax.swing.*; public class SalesFigures { public static void main (String[]args) { float prod1 = 0, prod2 = 0, prod3 = 0; float prod4 = 0, prod5 = 0; String inputString; int prodId = 1; // Need user input to determine outcome while (prodId …

Member Avatar for NormR1
0
436
Member Avatar for dragonofspam

Hello, I am trying to write a program that will calculate the volume of a hole to be dug for a pool or spa. I have some radio buttons that the use can select. Once a button is chosem, the user enters information and then can hit the calculate button …

Member Avatar for dragonofspam
0
3K
Member Avatar for jsco2289

B)(i)Create a class file BankAccount.java under c:\myjava folder. Declare a String member type variable called accountType and a double member type variable called balance. There are three account type values allowed: "student", "basic" and "advanced" . (ii)Create a method called minimumBalance which takes one argument of type String (acccType) and …

Member Avatar for NormR1
0
229
Member Avatar for Stupid.Widget

**Hi, I'm a current, beggining java student and I am completely stumped! i have been searching the web for help but i just cant find a solution, nor can I tell if i'm on the right path with my code. For this weeks assignment I have to write a Java …

Member Avatar for JamesCherrill
0
220
Member Avatar for Valiantangel

Hey guys i am struggling a bit with Jframe.Pretty new to JFrame. I hav a file in Picture class and need to bring the BufferedImage to the DrawingImageControlPanel.How do i do this. I know the template for doing this is as stated below. public class ClassName extends JPanel { instance …

Member Avatar for NormR1
0
180
Member Avatar for Simes

So I am working on a Traffic Simulator and I am having a fair bit of trouble with it. I need the menu to display, user chooses the option enters a value for the option and then either it loops with the menu again and they can set other options. …

Member Avatar for JamesCherrill
0
254
Member Avatar for nisha123456

Hi, How do I write a recursve functio nthat get number, as integer and digit as integer and returns new number from the digits that bigger then the given. Example for number 125546 and digit 5 the results witll be 556 Thank you very much

Member Avatar for NormR1
0
32
Member Avatar for hwoarang69

i cant seem to print imageicon in board.java. any ideas? i got two files. board.java and WorldBackground.java i have a WorldBackground.java where i am create background image import java.awt.Image; import javax.swing.ImageIcon; public class WorldBackground { static ImageIcon background = new ImageIcon(WorldBackground.class.getResource("Images/backg.jpg")); public static Image getBackground() { return background.getImage(); } } …

Member Avatar for hwoarang69
0
226
Member Avatar for r0n

hi everyone is there anyway to get all cell values of a column in the jtable? for instance i have to get all the values in column1 which are all integers and sum it up to the textbox. :) thanks!

Member Avatar for JamesCherrill
0
2K
Member Avatar for 47pirates

Hello guys i trying to manage the size of two jpanel according to the size of Main Jframe. I using netbeans drag and drop Jpanel1 is big and another one is small. wat i need to do is to change those panels size when main frame is resized> how can …

Member Avatar for JamesCherrill
0
191
Member Avatar for scarletfire

hi, i am trying out past year questions for a resit and am stuck with the question below. Question 1 In the following you may assume the existence of the ListIterator<e> interface and LinkedList<E> class with the following methods public interface ListIterator<E> { E next(); boolean hasNext(); } public class …

Member Avatar for JamesCherrill
0
205
Member Avatar for Yarra

Hi I programmed a tower defence game through java as a simple java application. I was wondering what steps do I have to take to convert it into a fully functional java applet to be uploaded onto the internet.

Member Avatar for Justinvzepeda
0
288

The End.