35,618 Topics

Member Avatar for
Member Avatar for awsa.qwase

if i make small jframe with 2 jComboBox(jComboBox1,jComboBox2) and a jbutton I want that when the user click on jbutton it will display jComboBox1 and jComboBox2 in the label

Member Avatar for JamesCherrill
0
110
Member Avatar for wids101

I need help with my getName method. The error message is invalid method declaration, return type required. And i don't know how to write a method to change the canidate's name. Thank you in advance. /** * Class to create a Candidate object * * @author la * @version 4/21/07 …

Member Avatar for stpatrck
0
207
Member Avatar for Doogledude123

Alright, so I am building a Converter to convert ASCII to Binary and for some reason, the for each loop stops working when it hits a space, and I have no idea why. I'm probably just over thinking it. Extra: Can you tell me how to force the output binary …

Member Avatar for Doogledude123
0
5K
Member Avatar for wids101

My code compiles but it has a java null error. import java.util.Arrays; public class Example { private int[] NumberArray; public Example() { int[] NumberArray = new int[4]; } public void setNumberArray() { NumberArray[0] = 20; NumberArray[1] = 15; NumberArray[2] = 22; } public void printnumberArray() { for(int index=0; index < …

Member Avatar for wids101
0
155
Member Avatar for shaquib65

I have program that does OCR conversion using asprise plugin, now i want to save the whole console output to a text file. If somebody can point me in the right direction it would be very helpful. By the way I use Eclipse. Thanks.

Member Avatar for shaquib65
0
219
Member Avatar for juegosfrivs

<style> .msgBox{ position:absolute; z-index:10; border-radius:5px; border:1px solid #F5F5F5; background-color:#DDD; box-shadow:1px 1px 5px #999; overflow:hidden; display:none} .msgBox ul, .msgBox li{ list-style:none; padding:0; margin:0; border:0} .msgBox .title{ border-bottom:#AAA solid 1px; padding:5px; background-color:#CCC; font-family:Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight:bold; text-shadow:1px 1px #DDD; font-size:12px} .msgBox .msgContent{ border-top:#F5F5F5 solid 1px; padding:5px; text-shadow:1px 1px #F1F1F1; …

Member Avatar for juegosfrivs
0
276
Member Avatar for Shoes Mosh

The bank already has a Java application. But they want certain new features to be added and some existing functionality to be changed as per their new policies. For this, Angelina needs to address the following issues: [20 Marks] 1. There is a class named Accounts which calculates the interest …

Member Avatar for Shoes Mosh
0
143
Member Avatar for staffmbm

I'm trying to add some mysql table columns to JSF table. And I'm getting error: /index.xhtml: The class 'logon.User' does not have the property 'description'. Please help User.java package logon; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="users") public class User { private int …

Member Avatar for stultuske
0
2K
Member Avatar for anku83

I want to find all the subset of a set.Can sumone plz help me through this.I have a array which would consisting ={1,4,5,6,7} i want all subsets.. {1,4} {1,5}...{1,4,5,6} {1,5,6,7} {1,4,6,7}..etc.

Member Avatar for JamesCherrill
0
119
Member Avatar for Goldfinch

Hi, I'm having a major problem with an algorithm for Java. I am building a program that recursively parses a simple programming language that follows obvious production grammars. My main issue is nesting. For instance, the pattern might be something like this: Create Jpanel1:{ Create JButton1 Create JPanel2:{ Create JButton2 …

Member Avatar for iamthwee
0
196
Member Avatar for allan f

I am looking for someone who can make a specialized programm for blackjack, to run proofs. there is nothing to do that is available. I am willing to happily pay for the program. please contact me for further information. thank you.

Member Avatar for pritaeas
-1
115
Member Avatar for sammy1231

Create a grade calculator which allows a user to input a mark out of 100% and displays the grade F, P, C, D, or HD. Here are the grade cutoffs: F means Fail and is the mark is from 0 but less than 50 P means Pass and is the …

Member Avatar for JamesCherrill
0
141
Member Avatar for Pyler
Member Avatar for android_gl

**I am using software to create tile map. on map there are different objects ex circle, rectangle, ellipse, polygon etc... I have problem creating ellipse shape. other than that every thing works fine.** ** //loop though map objects and store in 'shape variable'. //so if its circle than store in …

Member Avatar for android_gl
0
647
Member Avatar for XodoX

Hello, Billabong is just a small board game. You have kangaroos that you move clockwise around a lake. It looks like this: http://www.deskovehry.com/fotky/billabong/billabong-06.jpg First you need to draw the board etc. The example looks like this: static private void printField(String[][] field) { System.out.print(" "); String letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; for (int …

Member Avatar for JamesCherrill
0
181
Member Avatar for zach.hardaway.94

I am stuck on writing this code, that requires me to take in a String and integer offset. I want to encode the string by increasing each character by the integer offset in alphabetical order. So if the integer offset given is 1, b becomes c. Furthermore, M becomes N, …

Member Avatar for stultuske
0
64
Member Avatar for V3N0M

Hi guys I have a little bug which needs an extra eye to see I cant seem to see it. Can you help. Thanks in advance //CAI - Computer Assisted Instruction, multiplication program for first graders //Instruction.java import java.util.Random; //Program uses Random class import java.util.Scanner;// Program uses Scanner class public …

Member Avatar for V3N0M
0
203
Member Avatar for sasikrishnasamy

Hi, Is it possible to get the fields label name from jsp to Action/servlet for example, My jsp has some fields like this, Label name: Fields Search: <html:text property="txtSearch"/> Order: <html:checkbox property="chkOrder"/> Now I need to get these label names below mentioned format, HashTable<String,String> labelList=new HashTable<String,String>() lableList ={txtSearch=Search:, chkOrder=Order:} Please …

Member Avatar for sasikrishnasamy
0
637
Member Avatar for MatthewYeend

So I've made a bit of the directory and I want to make a tester that tests the methods that I've declared. The code for the directory is shown below. package TelephoneDirectory; public class TelephoneDirectory { String name; String telnumber; /** * * @param name a person's name * @param …

Member Avatar for JamesCherrill
0
278
Member Avatar for santi.ayasamy

Sir, i need ur help, this is audio stego i can`t play my encrypted audio package techmeet1; import javax.swing.*; import java.io.File; import java.awt.*; import java.awt.event.*; import java.net.*; import java.io.*; import java.util.*; import sun.audio.*; import java.applet.*; import java.math.*; class mainframe extends JFrame implements ActionListener, Runnable { JLabel Lfilename, Lmessage, Ldesign, Ltitle; …

Member Avatar for JamesCherrill
-1
525
Member Avatar for deepakusers
Member Avatar for JCSOW

import java.util.*; import java.lang.*; import java.io.*; class EncodeThePhase { public static void main (String[] args) { //set up keyboard input Scanner scan = new Scanner(System.in); //Ask for string from keyboard System.out.println("Please input your phase:"); String input = scan.nextLine(); //Ask for an offset number System.out.println("Please input your offset integer:"); int x …

Member Avatar for Doogledude123
0
217
Member Avatar for Doogledude123

The "Invalid Property" Error is thrown at Line 20, which is for the TextField. No idea as to why it is being thrown. <?xml version="1.0" encoding="UTF-8"?> <?import java.lang.*?> <?import javafx.scene.control.*?> <?import javafx.scene.layout.*?> <?import javafx.scene.text.*?> <VBox prefHeight="400.0" prefWidth="284.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"> <children> <AnchorPane maxHeight="-1.0" maxWidth="-1.0" prefHeight="375.0" prefWidth="285.0" VBox.vgrow="ALWAYS"> <children><Button fx:id="zero" layoutX="14.0" layoutY="321.0" …

Member Avatar for Doogledude123
0
997
Member Avatar for Richa_2

` Hey can u solve my prob. I was running an Applet program(.html file) with java Browser but it showing error = "your security settings have blocked a local application from running" So can u say ... which application is this

Member Avatar for Richa_2
1
232
Member Avatar for brittney_2

I need to print out the titles for family members being stored in an array, but I am having issues with the report. It prints out all the stored names, instead of the ones that belong to each family member and one line for each. I'm new with arrays so, …

Member Avatar for Steve_O
0
244
Member Avatar for Doogledude123

Alright, so I have seen `<<` and `>>` in a few different Java Programs and I have an idea of what they do, but I have no idea what you would use them for. I haven't ran into a problem where I need to use them, so if someone could …

Member Avatar for Doogledude123
0
186
Member Avatar for anand01

Hi all, If we implementing an interface then is that should be inheritance? Kindly any one clarify my doubt

Member Avatar for jwenting
0
183
Member Avatar for user12567

I'm trying to find all the prime factors of an inputted number. I was given the following Java code to convert to assembly. String getFactors(int number) { String answer = ""; for(int factor=2; factor <= number; factor++) { if(number % factor == 0) { answer += factor + "*"; number …

Member Avatar for Schol-R-LEA
0
211
Member Avatar for Ndey yassin

Create a class called PrintStars. In the main method, use nested-for loops to print 2 diagonal lines of stars accross a 9x9 grid.

Member Avatar for JamesCherrill
-3
123
Member Avatar for ADETUNJI_1

I am new to java programming and I just created a simple program that connects to a mysql database to update a Jtable right on my laptop. Now I want to install the program on my friends laptop and we want to share the same database. Do I have to …

Member Avatar for jwenting
0
883

The End.