35,618 Topics
![]() | |
I need my rows to allign like this and my code is below, can someone tell me what I should do. Loan 1 15,000 12% 60 $333.67 $5,020.20 $20,020.20 Loan 2 15,000 10% 48 $xxx.xx $x,xxx.xx $xx,xxx.xx Loan 3 15,000 08% 36 $xxx.xx $x,xxx.xx $xx,xxx.xx [CODE] import java.math.*; import java.text.*; … | |
Hi Guys, As you will see from my code snippet below, I have a masked text field that only allows the user to input a number between 0 and 9. I have wired up an event as when the user inputs a number I need to extract the number and … | |
when i register one databse at this time also insert to second database.I have two database on one server db1_main and db2_rg. this two database have tabal fields are different so it this posibale? if yes so what can i do?plz reply me. Hemant | |
Write a program that simulate a die roller. The user should type in the number of the throws. Let the program count how many ones, twos, threes... are in the series. In the end the program should write down how many ones ... that was and also figure out the … | |
Hi all! i'm developing a web application in jsf 2.0 with GlassFish server.Database is MySql.Https protocol. My problem is that when i request for a page in my application sometimes the browser displays the source code of that page and not the html view for the user. It is not … | |
![]() | [CODE] StringTokenizer st = new StringTokenizer(line); while (st.hasMoreTokens()) { String wordIn = st.nextToken(); if (wordIn.endsWith(".")) wordIn = wordIn.replace('.', ' ').trim(); if (wordIn.endsWith("?")) wordIn = wordIn.replace('?', ' ').trim(); if (wordIn.endsWith(",")) wordIn = wordIn.replace(',', ' ').trim(); String result = bd.searchBase(bd.getWords(), wordIn, 0, bd.getWords().length -1); if (result != null) System.out.println("Word found \n"); else … |
Hi I am using Jreports for my task when i click the link instead of report excel should come for tat i hand code in jsp as "jrs.result_type=4" bcoz it launch excel its launching but i need to fetch 50,000 records bit it fetch 20,000 ... Any suggestions? [code=html]</head> <body> … | |
can any1 kindly help me how can i wirte in database using JDBC, i had alredy made connection with me database,,, so plz tell me how to write in database access file? | |
Hello The ActionPerformed will not unload the viewPort to load the new viewPort that holds a table. is there a way to reload the table? The first actionPerformed supplies the table but the next will not remove table and add the new one. [code] package view.content.panels.guide; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; … | |
So the following is where I think the problem lies in my code: [CODE]public void actionPerformed(ActionEvent i) { int temp; double newtemp = 0; String inputString; inputString = infield.getText();//pulls the number that was entered in the input field temp = Integer.parseInt(inputString);// makes a new variable to handle the input //tells … | |
what is the difference between them when an entity is considered (EJB)? Thanks. | |
Hi i am new bie to swings. if i have a JTable. And i want to add number of rows with different number of columns like Employee1, Software Developer, swings Employee2, software developer What is the way of adding rows having different number of columns to a JTable Thanks. | |
im a little on the weak side in loops.....n hearing that programs are solved by bright people here.....i am requesting help with a few programs in loops...i dont understand them...and am expecting you people to help me 1- ******* _***** __*** ___* __*** _***** ******* NOTE-(_) MEANS SPACES 2-Write a … | |
Howdy, First off, I should say that I am jumping on posting this issue much quicker than I normally would - but I'm not really in a patient mood now, and I'm far from being a fan of anything the W3 has done. Anyhow, I am in the process of … | |
hi everyone am a beginner in jsp side. i am working on a project where the UI is designed in HTML, validation in servlet and i want to store the relevant information in SQL server. I have glass fish server. how can this be done. please guide me | |
guys me trying to use switch statement in this program but cant get to end... i tryed to convert string into char but dont knw why it still not getting right... please help me [code]import javax.swing.*; import java.io.*; class HappyBirthday { public static void main(String[] args) throws IOException { String … | |
Hi folks. I'm making a GUI. It contains multiple JPanels. I'm having trouble making contents of other JPanels (than the first/main JPanel; others are subclasses to the first one) visible... From the first JPanel, I call a draw method to a second JPanel. This second JPanel's draw method displays a … | |
I have been using java for some time, and can code back end stuff with ease. GUI's on the other hand I Find hard to deal with. So anyway, I'm making a game (text based), and would like to implement a console type GUI. I have already made a jframe … | |
Hey guys, I'm writting a program that reads a list of names from a file called name.txt and instert these names directly into a linked list in alphabetical order of [B]last[/B] names. For example, if the text file has these names: Henry Johns III, Albert Einstein, Henry Johns II, Mary … | |
I have to write a program that creates a text file that contains a power of two table in HTML format. Also the instruction are [COLOR="Red"]The file should start with something like: [/COLOR] <html><head> <title>Powers of Two</title> </head> <body> <table border cellpadding=5> <tr><th>Power of 2</th><th>Value</th></tr> [COLOR="red"]Each line of the table … | |
I need to code a program for my friend and it has been giving me some difficulties. This needs to have two classes, one called Tester and another called Game. And the data in the Game class needs to be pulled to the tester class after the calculations are finished. … | |
hi.....um reading killer game book.and when loading external models it imports ncsa portfolio package.....i dont know where i could find this package and whether this package is included in java3d api??thanks in advance for any help....... | |
CAN SOMEONE TELL ME HOW THE console eraser work in the below PROGRAM PART...............describe the LOGIC??????????? [code] //Creating and hiding password. ConsoleEraser consoleEraser = new ConsoleEraser(); System.out.println(); System.out.println("(Please enter the common Password)"); System.out.print("PASSWORD : "); BufferedReader passin = new BufferedReader(new InputStreamReader(System.in)); consoleEraser.start(); String passWord = passin.readLine(); consoleEraser.halt(); System.out.print("\b"); //Password matching. … | |
i have created a system for a library using java using input and output jframes but i need to access that project using a .exe file by just a double click...how can i do that | |
my i have wrote my code is like this but m not to get get proper out put here is my code [CODE] System.out.println("Enter Date of Birth dd/mm/yyyy"); DataInputStream in=new DataInputStream(System.in); String dob= in.readLine(); String[] dob1=dob.split("/"); int year=Integer.parseInt(dob1[2]); int month=Integer.parseInt(dob1[1]); int date=Integer.parseInt(dob1[0]); System.out.println("Date : "+date+ "Month : "+month+" year :"+year); … | |
I have tried to include a JavaScript asp file into a vbscript asp file, but I did work? I know because they are "incompatible", but I don't know how to solve it! | |
Hi, New to Java & hoping you can help me with an error message I am getting. The compiler says "Cannot find symbol - variable evt" for the first line of the below code. [CODE]if (evt.target==calc) { clickedCalc(); return true; } else return super.action(evt,obj); for(int i=0;i<12;i++) result[i].setText(" "); // clear … | |
[code] import java.util.Random; import java.util.Scanner; public class AssignmentMenu { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int loop = 0; String randomLetters[] = { "a", "b" , "c", "e" , "d" ,"f" , "g" , "h ", "i", "j" , "k" , "l" , "m" , … | |
Hi , i am new to this concept of OSGi and felix and ipogo please give me the solutions for my doubts 1> why we use OSGi -- where to use and how to use Osgi.? 2> what is felix and why to use that and how to use? 3> … | |
Hi all, i'm doing a AES encryption with a library found on sunjava. There is a small problem i hit while making a test. Firstly i used "nv3456789123456o" as my key to encrypt. However, for testing purpose, i'm trying to use a different key to decrypt the message to see … |
The End.