32,199 Topics

Member Avatar for
Member Avatar for Andres_5

Hi Guys Im A Noob, so i need your kind perception on my code Im running A Table Anytime i do it i get this message Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not supported yet. And this is My Table Code: private void tablaLISTADOMouseClicked(java.awt.event.MouseEvent evt) { // TODO add your handling …

Member Avatar for JamesCherrill
0
630
Member Avatar for rithish

[CODE] import java.awt.*; import javax.swing.*; import java.awt.event.*; class log extends JFrame { JButton b1=new JButton("ok"); JPanel panel=new JPanel(new GridLayout(2,2)); public log() { panel.add(b1); add(panel,BorderLayout.CENTER); b1.addActionListener(new ActionListener(){ public void actionperformed(ActionEvent ae){ JPanel pan=new JPanel(); JFrame frame1 = new JFrame(); JButton b2=new JButton("ok"); pan.add(b2); frame1.setVisible(true); frame1.add(pan); frame1.setSize(250,100); b2.addActionListener(new ActionListener(){ public void actionperformed(ActionEvent …

Member Avatar for ajax_1
0
2K
Member Avatar for tarun_6
Member Avatar for Curious Gorge

Hello. I'm doing a lab assignment and I have several subclasses extending the base class. I'm not sure how to "override" the methods and implementations in the supers, because every time my driver class calls a method on my subclass, the superclass method gets called. Heck even within the subclass …

Member Avatar for Curious Gorge
0
369
Member Avatar for John_165

I wonder how to handle exception in `ResponsesEntity`. When it receive wrong url, it supposes to go to the `catch` block and display the `log`. But I keep getting error message in console. The `try-catch` not working as it not display log message. @GetMapping("abc/{Id}") public ResponseEntity info(@PathVariable("Id") String id) { …

Member Avatar for JamesCherrill
0
2K
Member Avatar for sid_4
Member Avatar for JamesCherrill
0
99
Member Avatar for SkateX

Greetings, Can anyone tell me why my loop does not actually add anything for interest? I'm thinking it is because of the way my interestRate variable is setup as a class variable (static). Here is the code snippets /**************************************************************************************** HNUnit4Ch13Investor.java xx All variables should be declared private Declare a class …

Member Avatar for SkateX
0
902
Member Avatar for wilsonz91

Hello, First off, i did try looking around the forum but i couldn't understand. Here's a few question which i need help with: 1) (adding node at head) i don't know how does the head will hold the reference to the next node, the code is like this: [CODE] //at …

Member Avatar for JamesCherrill
0
2K
Member Avatar for Eddy_2

In this assignment you are to write a program that finds a path through a “maze”. The maze will be represented by a 2-dimensional array of ints. You will be given a starting point in the array that consists of a pair of ints <x,y>. In this pair, x represents …

Member Avatar for JamesCherrill
0
391
Member Avatar for SkateX

Greetings, I have been trying to figure this out for hours with no avail. Basically I need to print out user input as Initial value, ASCII(char), ASCII(int), and Hex. I can get everything to work however I am not supposed to have the char values print if its a digit, …

Member Avatar for SkateX
0
353
Member Avatar for Saboor880

Hi! I have made a desktop application which is running perfectly. But i am facing problems with jframe size on different machines. I have monitor of 'Gateway'. I am satisfied with my jframe size on my screen . But when i shifted it on laptop of 'hp' company then my …

Member Avatar for JamesCherrill
0
4K
Member Avatar for Saboor880

hi ! I am developing a pos software for desktop. I am using java derby database for this. I have developed a feature for purchasing items and also a feature for analyzing purchases so that the user can view that what, when, how much he purchased. I am using two …

Member Avatar for Saboor880
0
222
Member Avatar for Saboor880

Hi! I am developing a pos for a store. I have created a settings window. On this window there is a button which is used to set a name for store. When user press this button a message dialog appears with a text field and a OK button so that …

Member Avatar for Saboor880
0
1K
Member Avatar for Kalpna_1

We are facing an issue to bind the selected coordinates of polygon using ArcGIS Javascript library on page load. The same issue we are facing with all geometry types. Please help us to bind the selected coordinates. We are able to find out the coordinates and save them in database. …

Member Avatar for rproffitt
0
467
Member Avatar for Badulla

i have wrote this program which uses binary search to search for a desired word and which displays the word along with the meaning of that particular word.but each time i print the data that the arraylist contains it just print the word being search but not the meaning of …

Member Avatar for JamesCherrill
0
363
Member Avatar for bea_1

write java a program that finds the longest substring without repeating characters in a string

Member Avatar for JamesCherrill
0
230
Member Avatar for Mirty

I need instructions on implementing a houghes circle code using android studio to an app. I do not know where to put everything and need detailed instructions on how to create the app and save it onto an android device. iCannyUpperThreshold = 100; iMinRadius = 20; iMaxRadius = 400; iAccumulator …

Member Avatar for Rajan_7
0
260
Member Avatar for aditya_23

cd D:/ #Extract Author information java -jar svn-migration-scripts.jar authors $SVNURL > authors.txt #Clone the SVN Repo git svn clone --stdlayout --authors-file=authors.txt $SVNURL SVNAsGIT #Clean the new GIT repository java -Dfile.encoding=utf-8 -jar svn-migration-scripts.jar clean-git --force #Update the authors file git config svn.authorsfile authors.txt> #Clean the new GIT repository java -Dfile.encoding=utf-8 -jar …

Member Avatar for aditya_23
0
995
Member Avatar for Doogledude123

A couple questions before I even attempt this project... Is it possible to create a VoIP application in Java? Is it posssibe to do this using standard libraries? If you can't make one with standard libraries, which libraries are needed to accomplish this? Also, is this a good Introduction to …

Member Avatar for Nagy
0
1K
Member Avatar for Julius_4

Hey, my problem is that i got the progressbar and everything i tried was unsuccessfully. The Color is always that orange and i dont get it away. I rly need help woule be nice if i get a fast answer. Regards, Julius

Member Avatar for Chien-Rouge
0
823
Member Avatar for john44

I already wrote an ATM program which did store only three account number, password and balance but now I want to get these information from a file which would be read to the program and by entering the information the program should search the file and find the line that …

Member Avatar for yash_8
2
1K
Member Avatar for stephen_23

Is there any better way to find the duplicate words count in a file using Java. I have found one solution using Map like below : while ((line = br.readLine()) != null) { StringTokenizer st = new StringTokenizer(line, " "); while (st.hasMoreTokens()) { String tmp = st.nextToken().toLowerCase(); if (map.containsKey(tmp)) { …

Member Avatar for rproffitt
0
207
Member Avatar for peter20

Hi all, I have a class CAR.java public class CAR { private int ID; private String model; public CAR(int ID, String model) { this.ID = ID; this.model = model; } public int getID() { return ID; } public void setID(int ID) { this.ID = ID; } public int getmodel() { …

Member Avatar for peter20
0
302
Member Avatar for Varunkrishna

What is the mistake in this code, I am able to print the total digits of the input number, but when I try to print the *actual number* from the scanner it always prints zero(0). For example the user enters **123456** as the input, and my program is correctly returning …

Member Avatar for Prabhat_4
0
1K
Member Avatar for Violet_82

Hi guys, I wonder if you can help me. As I’m now doing java development as a profession now, I’ve realized that I’m a little weak when it comes to fix, modify and understand code within large applications, and, needless to say, I need to find a way to get …

Member Avatar for Violet_82
0
413
Member Avatar for Sunil_19

Hi friends, Being new in junit i have onw question that How to test local variable in method using junit test case? Check that below is my method suppose, public void methodToCheckStr(int testVar) { String str=""; if(testVar==5) { str="Success"; } else { str="fail"; } } How to create test case …

Member Avatar for peter_budo
0
3K
Member Avatar for jonathan_20

hello guys, im new to software progrmming, iam more interested in java programming. iam trying to write a code using netbeans, but after finishing compiling th code, then after running it, it says build unsuccesiful, it gives me an error wich i do not understand..

Member Avatar for JamesCherrill
0
117
Member Avatar for Ater Mawut

I have created a black jack app and have got it show both cards but I only want it to show the second card in the hand and keep the first one hidden until its time to show. Here is the code package blackjack; import java.util.Scanner; /* This program is …

Member Avatar for JamesCherrill
0
229
Member Avatar for Start4me

I'm trying to replicate the ray-looking design, just like in the first image. Here's my code: When the user clicks on the button: private class drawInnerShape implements ActionListener{ public void actionPerformed( ActionEvent e){ paintInnerDesign = true; repaint(); } } The following code executes: class DrawArtwork extends JPanel { @Override public …

Member Avatar for JamesCherrill
0
280
Member Avatar for Mudzy

im stuck on a question from the book, java in 2 semesters chapter 7. 2a) write a program that asks the user to input a string, followed by a single character, and then tests whether the string starts with that character. [CODE]public class StringTest { public static void main(String[] args) …

Member Avatar for JamesCherrill
0
15K

The End.