35,618 Topics
![]() | |
I am newbie in this forum & I have one issue as follow... I have created website in jsp & servlet. now when i click on button to save data in the database then it takes some time to save the data so in that time I want to show … | |
hello all is there available code to remove line numbers in front of each line of a text file thank you denny | |
First i create simple claculator.but now I am trying to change it to RPN calculator by using stack.Can some one help me((especially where to use pop method) because I don't know alot about stack.here is my codes so far. import java.util.Stack; import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import … | |
Hello, if i want the computer to guess a number between 1 - 100 i'll do in java [CODE] int min = 1; int max = 100; [/CODE] I have already create a random number for the computer. so the first random number the computer will choose is 49 as … | |
Hi guys, it's been a while since the last time I post here... I'm currently learning JPA right now for my J2SE project, I dont have problems doing CRUD on a single table, now I want to try to retrieve data on JOIN tables. example if I have 2 entities … | |
hey guys i am developing a game... in which when i press a button it has to change its color... so , i created button, used action listener to it... [CODE] if(ae.getActionCommand().equals("b1")) // here b1 is the button { b1.setBackground(Color.black); frame.invalidate(); frame.validate(); System.out.println("button b1 pressed...!!!"); } [/CODE] i also used … ![]() | |
I have this project that I'm working on for my class, but I'm getting stuck with infinite loops and I'm not really sure what's wrong. I'm supposed to assume that at time 0, the ball is at height 0 and the velocity is input by the user. After each second … ![]() | |
Hey guys. I need help with a program I'm trying to write. I need to read scores from an ASCII file and display them. I also need to display an error message for any score that falls outside of the range of 0 to 100. And after doing that, I … | |
I have an assignment to create Random Shapes by creating a method randomShape that randomly generates objects implementing the Shape interface. This is what I have so far and don't know where to go from here. [code] import javax.swing.JFrame; public class RandomShapeViewer { public static void main(String[] args) { JFrame … | |
How to store values that are retrieved from mysql database into an arraylist? | |
I use this part to make transparent the JFrame: [CODE] GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice gd = ge.getDefaultScreenDevice(); boolean opacity_supported = gd.isWindowTranslucencySupported(java.awt.GraphicsDevice.WindowTranslucency.TRANSLUCENT); if( !opacity_supported ) { System.out.println("Your platform does not support opacity."); } else { setOpacity((float) 0.85); }[/CODE] It works perfect on Windows. On the same machine I use also … | |
i am trying to load images for an applet using imageicon but i found out that it doesnt work so i was wondering if there is other way to load em. by the way i am trying to load them in another class that is not the main one. this … | |
Hi, I have a school assignment where I need to check if one string is a substring in another string. However, we are not allowed to do any string-based comparison, we are only allowed to compare the ASCII values. So the way I do it now is to call the … | |
I have a problem to Modify the Coin class to have it implement the Comparable interface. The following code is not working correctly and I don't know why. [code] public class Coin implements Comparable<Object> { private double value; private String name; public Coin(double aValue, String aName) { value = aValue; … | |
I want to make a class that takes a String and checks if that String is found in a .txt File. If it is found, I want to store the words following that String in a String array. Here is what I have until now: [CODE]import java.io.File; import java.util.Scanner; public … | |
[B]how to pass parameter from .java class to query written in .jrxml file[/B] pls help me! | |
I have created a .NET windows based application in c#. Find the attached screenshot of my application. Java web service is already created and maintained. Now I want to send the values from windows application grid view to java web service. Is this possible? If so how? Am newbie to … | |
When I run my program following is my program: public class JasperReportsDemoApp { String reportSource = "c://report1.jrxml"; String reportDest = "c://HelloReportWorld.html"; public JasperReportsDemoApp() { Map<String, Object> params = new HashMap<String, Object>(); params.put("reportTitle", "Hello Report World"); // params.put("author", "Craig Conover"); // params.put("startDate", (new java.util.Date()).toString()); // params.put("reportTitle", "Hello Report World"); // params.put("author", … | |
Hi ,all Can anyone tell me how to use jasper report with ireport tool for desktop applications I want to print the report for that i installed plugin in netbeans 7 after that i dont know how to use report help me pls... | |
Hi All, I am relatively new to the world of webservers and java, so please pardon me for any mistakes i make in conveying my problem. THe problem is as following: we have a sunone webserver 1(abc.com), and there is a sun one webserver2(def.com) there is a jsp application in … | |
hello all how to create JTextArea with border look like standard jTextField 's border ? thankyou denny | |
I dont know nothing about Java. Which is the best tutorial site to learn java and how it is easily learn. | |
Hi all, I know " String ".trim is used to remove the blank spaces but when i use the following string compare its shows some strange result [CODE]if(" String ".trim() == "String") System.out.println("Equal"); else System.out.println("Not Equal"); [/CODE] It produces the result of not equal. How it produces the result like … | |
I have a project made with jsp on a apache tomcat server. I also have intalled wamp server package for the purpose of using a data base made with phpmyadmin. I was wondering if i could also use php pages im my project. I learned that a posible way would … | |
Hey guys, I'm trying to program which finds the closest value stored in a sorted array using binary search. In other words, it should read the middle array and then move to the middle of the half where this value should be (unless the closest value is in the middle … | |
What my problem is I don't know how do I set it up so that when the entire word has been guessed I can stop the game and tell the user they won or lost. I tried adding in another if statement after maxTries--; where it says if (maxTries == … | |
Hi guys, I'm new to Java and was wondering if you could help with one little problem with my code. [CODE]System.out.print("Enter title: "); String title = keyboard.next(); if (title.equals("Mrs") || title.equals("Miss") || title.equals("Mr") || title.equals("Ms")) { title = title; } else { System.out.println("Enter a valid title"); }[/CODE] If the title … | |
hello all I just learned about addActionListener there are many example about TextField.addActionListener for one TextField only ,but if there are more than one TextField,and all of them have been given Action Listener ,how to differentciate ,from which TextField the Event is come from ? Where can I find example … | |
So I have to implement a checkout line using a priority queue. I'm really stuck. I have 3 classes, a Register class, Store class, and customer class. Each customer has a service time which is the time it takes to check out. There are ten registers. Reach register has a … |
The End.