32,199 Topics
| |
> 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 … | |
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 … | |
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") | |
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 | |
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 … | |
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 … | |
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 … | |
**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 … | |
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 | |
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 … | |
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. | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
**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 … | |
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 … | |
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. … | |
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 | |
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(); } } … | |
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! | |
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 … | |
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 … | |
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. |
The End.