35,617 Topics

Member Avatar for
Member Avatar for syareza

program can receive an input value is between 0-9 and then print the multiplication table for its : example if input :7 output : sifir 7 1 x 7 = 7 12 x 7 = 84 please help me....

Member Avatar for syareza
0
81
Member Avatar for adams161

Hi, On windows, i don't see a maximum button on my JDialogs and this is fine, but on a Mac I have this dialog that people can keep up and use other windows, but you can also maximize a dialog on a mac apparently. There is a maximum button. At …

Member Avatar for adams161
0
160
Member Avatar for firecy

I've been programming in Java for a few years now, and I've always wanted to be able to run my programs on computers without the JDK installed. I've been trying to make an executable .jar file, and it seems to work on my computer(the one with JDK installed). However, as …

Member Avatar for NormR1
0
229
Member Avatar for RiddoKun

[CODE] import javax.swing.JOptionPane; public class Finance { public static void main(String[]args) { boolean Access = false; String studentName = JOptionPane.showInputDialog(null, "Enter in your name: "); //String current = JOptionPane.showInputDialog(null, "Enter your password: "); //double currentBalance = Double.parseDouble(current); Account newAccount = new Account(studentName); //Gains access to Account class JOptionPane.showMessageDialog(null, newAccount.toString()); } …

Member Avatar for RiddoKun
0
94
Member Avatar for kyriacos1986

I want to read from the keyboard the first name and last name of a member separated by space I have tried the following but it doesn't work. [CODE] public static void updateWeight() { Scanner in = new Scanner(System.in); // Creation of a new Scanner object String tempName = ""; …

Member Avatar for NormR1
0
182
Member Avatar for Goldfinch

Hi, I'm trying to read a file, line by line, into an arrayList, assigning a different line to each element and ensure that: 1. It's actually happening (which is the reason for the println statements) 2. that the scope of the arrayList with the string elements filled in is sufficient …

Member Avatar for Goldfinch
0
964
Member Avatar for TIM_M_91

Hi Guys well what I want to do is instead of within my writeString to set my PLAYCOUNT to '16' what I want to do is every time the statement is executed my PLAYCOUNT is increased by 1. Any help you can give would be appreciated: My code is below: …

Member Avatar for TIM_M_91
0
173
Member Avatar for freedomflyer

Earlier on, in [URL="http://www.daniweb.com/software-development/java/threads/412571"]this thread[/URL] my question was answered about how to add objects of a custom class I called State into a HashSet which was a value for a key in a HashMap. [CODE]Map<String, HashSet<State>> mapping = new HashMap<String, HashSet<State>>();[/CODE] However, I need to ensure that there are only …

Member Avatar for JamesCherrill
0
345
Member Avatar for 47pirates
Member Avatar for JamesCherrill
0
197
Member Avatar for chamnab
Member Avatar for SasseMan

I'm searching for a java library/framework that makes printing easier. By easier I mean something that makes it possible to layout and format text/images and other elements in a document by defining layouts in html/xml or something. I also want the layout to be decoupled from rendering so the document …

0
100
Member Avatar for Tuz

can someone tell me how can i do arrylist(of three classes) in one class ??

Member Avatar for stultuske
0
265
Member Avatar for justindill

I definitely need assistance with homework assignment: I seem to have a lot of issues creating a program when I have to use JOptionPanes(s). After the instructions is my current code. 1. Design and implement a Java program that will gather integer numbers and performs some computations on the data …

Member Avatar for zeroliken
0
610
Member Avatar for pratapdafedar

how can i use two web cameras at a time in JMF, so that i need to capture video from both camera.. please help... hurry up!!!

Member Avatar for harinath_2007
-1
167
Member Avatar for shibu2all

Can anyone please help me out in removing this error Exception in thread "main" java.lang.NullPointerException at java.awt.Container.addImpl(Container.java:1045) at java.awt.Container.add(Container.java:365) at Client.<init>(Client.java:33) at Client.main(Client.java:17) [CODE=java] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; import java.net.*; public class Client { JFrame frame1; JList list; JList list1; JTextField tf; JButton send; JButton lout; …

Member Avatar for shibu2all
0
232
Member Avatar for 3nrichedd

Hello, I created this little asci art in java, and am wondering how to implement a constant int value that can be changed to make the picture bigger/smaller etc.. these are my loops: [CODE] for(int i = 5;i>=0;i--){ for(int j = 1;j<=i;j++){ System.out.print("P"); } for(int j = 5;j>=i;j--){ System.out.print(" "); …

Member Avatar for stultuske
0
357
Member Avatar for e-papa

Hello there! Please I need help in converting a jar/jad file to cod/alx i.e converting j2me files to blackberry files.

Member Avatar for e-papa
0
241
Member Avatar for murnesty

Hi I know it is unable to inherit 2 superclass and I know why because there is another thread discussing about this. But I just wonder is there a way to solve this problem?

Member Avatar for stultuske
0
63
Member Avatar for Tuz
Member Avatar for stultuske
0
71
Member Avatar for TeresaTa

I am using Eclipse to do my firmware project. However, it keeps giving me a red under lined error for the import line java.awt whenever i try to import the following. Anybody helps me please.

Member Avatar for TeresaTa
0
1K
Member Avatar for jahanruhi3@gmai

[code=Java]package com.schedulers; import java.io.IOException; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.text.SimpleDateFormat; import java.util.Date; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import DBConnection.DBConnect; public class P6UserInsertScheduleServlet extends HttpServlet { private static final long serialVersionUID = 1L; public P6UserInsertScheduleServlet() { super(); } protected void …

0
80
Member Avatar for freedomflyer

I am trying to implement within a class I call State some sort of mapping from a String to a set of States. So far, I have something like this as the initialization of this concept: [CODE]Map<String, HashSet<State>> mapping = new HashMap<String, HashSet<State>>();[/CODE] However, when I perform something like this: …

Member Avatar for freedomflyer
0
438
Member Avatar for Sanna.1

[CODE]import cs1.Keyboard; import java.util.Scanner; class P { private static String name; private String persnr; private String adress; private int age; public Person(String _name, String _persnr, String _adress, int _age) { name = name; persnr = persnr; adress = adress; age = age; } public void byterNamn(String _name) { name = …

Member Avatar for DJSAN10
0
112
Member Avatar for TIM_M_91

Hi guys well what I want to do is that when a button is pressed it increases the value in one of my database cells. So my question is how do I do this? As I cannot get this to work. My code so far: Any help would be appreciated …

Member Avatar for DJSAN10
0
135
Member Avatar for cpole

I am trying to write a simple bubble sort program but am getting an error that I can't figure out or fix. I am using textpad and get this error: "bubbleSort.java:56: error: while expected }" I am sure I am just making a dumb mistake. I am new to prgraming. …

Member Avatar for DJSAN10
0
158
Member Avatar for Ankur Raj

Hi Members, I am working on Pentaho, I want to add a comment box with RTF(rich text format) feature, that saves the comments in the database. And when the user Login again, he must be able to see all those comments. I have tried it using PHP, and it is …

0
79
Member Avatar for Lomey

[B] hello everyone as the title i am trying to streaming radio from my own server Through java plyer i try More than one way but it all Failed :( any idea how i could do that in java ???? :twisted: [/B]

0
39
Member Avatar for rushikesh jadha

i want to restart my java swing application when user click on restart button. how to do it using java.

Member Avatar for hfx642
0
231
Member Avatar for javaa

Hello Every one ... My proplem started before a month and can't get any answer for it .. when i create a java program and need to make it an excutable file .. after done with program that contain's picture's and sound file's I converted it from .java to .jar …

Member Avatar for javaa
0
139
Member Avatar for oonebaddog

Hey guys!!! (and gals)... Uhhmmm... I'm in a bit of a tiffy... Im trying to populate a drop down list with data in my query browser. But I AM NOT USING JAVASCRIPT...mostly because i havent learned it...but im trying to a certain table from the query browser to my drop …

Member Avatar for oonebaddog
0
1K

The End.