35,618 Topics
![]() | |
Am doing my mini project,i want to insert images in my user login pages,am not doing the project using net beans,,,can u help me by creating a page(need codes) contains a label and inserting image into it... where should i keep the downloaded image so that i get the image … | |
The below is the main method, the wrapper method, and the array search method for a step recursive method used for finding the index position of the searched string. I am encoutering this problem when whatever search I put in, I get the return value of -1. Why and how … | |
Hello. I created a JTabbedPane on a panel and put it on a JInternalFrame of a JDesktop in SetObjects.java. Why can't I get a tabbcount for it after running an AbstractAction? [b]reference JTabbedPane[/b] [code] [/code] [b]reference JTabbedPane[/b] [code] M =(" --> in controlJMenuItems("+e.getActionCommand()+") var: e.getActionCommand() : xxxxxxxx<-- \n"); System.out.println(M); jtp=SetObjects.getCurrentJTabbedPane(); … | |
Im having trouble creating a Word Decoder, Basically I'm trying to write a method that chooses a random character, and increases in by one place (a to b, b to c) and so on. Any ideas in how to approach that? Thanks, JavaRookie | |
Hey guys, thanks for looking at this. Honestly i have no clue where to start. i emailed my teacher and havent gotten a response back. Hopefully someone else can shed some light onto my problem. one of my programs i have to make is: Design and implement a Java program … | |
I need to create a menu, and then depend on the choice, carry out a certain task. But sumhow any number i put in become sumthing else so the switch become deafualt. Can sum1 help? [ICODE] import java.text.DecimalFormat; import java.util.Scanner; public class Lab0602_ATT { public static void main (String args[]) … | |
Hi, Im creating a GUI however i'm experiencing some difficulties. I want to have a text field and a button both placed inside a radiobutton. I've tried inputting ONLY the button, but the button is not displayed when i run the codes. Would be good if light could be shed, … | |
Write a program in java to a class called Employee which is having the following instance variables. name(string type) age(int type) designation(string type) salary(double type) The class Employee must have a parameterized constructor having only name as the argument and initializes the name variable. Proceed with same class.... write a … | |
hi there....recently a friend of mine asked me to convert a c++ coded pgm to java codes.... and there was a macro [#define f(x) x*x*x+6*x* ] i thought of using a function call ..but it would be undesirable for this pgm how do i get a java equivalent for this … | |
Yo - im making an animation which draws a string to a panel and moves it once the class is loaded. This all works fine but I want to change the colour of the string to white, the background will be black by the way, as well as make it … | |
Can somebody enlighten me why do i get an exception ? code is over here : [CODE] import java.io.InputStreamReader; import java.util.*; public class ObtainKey { public static void KeyAnalyzer(String input) { int idx = 0; int tokenCount; String inputArr[] = null; StringTokenizer st = new StringTokenizer(input); tokenCount = st.countTokens(); for … | |
Hi I'm new to Java, I'm trying to convert standard time to Unix time so I can use that data in Max/MSP (to modulate a tone) eventually I will allow this program to take a text file of ordinary times and write to a text file the converted Unix times … | |
hi Guys, Just started java and so far not too bad but i tried to sort out packages today and got this error. Stuck on it for hours. I'm not sure if im importing or setting up the pacakages properly but that where I'm hoping you can help... Im dealing … | |
Hi. I have a 2D array in a particular class file. Now, I want to equate a 2D array from another class to it. May I know how to do it? So far, this is what I've done: Example: [CODE]private double[][] residuescores = MatchApplet.mydouble;[/CODE] residuescores is from a class itself, … | |
Hi, I read a few post on passing arrays from one class to another but i can't understand. I tried doing it and i'm stuck with it, would really appreaciate it if you can help correct the following code: [CODE] //This is my super class public class Transport { protected … | |
Here is my code, for some reason it goes to an infinite loop when i try and adjust the highest and lowest values for the Math.Random() method. The code works fine if i do not try to change those values based on if the guess was higher or lower than … | |
Hello":) I have code and I wont your help in telling its right or wrong and what missing.... This is the question :: If the user chooses 1, then the program asks the user: “Please enter a new dictionary file name”. The program creates a new file with this file … | |
Hi, I have to write a simple Java code real quick and was wondering how to write the following macro in Java: [CODE]#define BUF 256[/CODE] | |
Hi there, A thread was started earlier about splitting up a String using the split() method of the string class. Reading that did help me quite a lot in solving a problem of mine that is VERY similiar. Say I have this in a txt file: "Dean Grobler 0794400541 NA … | |
i have a problem hoping if any one can help me. i have to do a project on data clustering with graph theory. the tool must cluster 4 disease avium, leprae, tuberculosis,and bovis. i want to have a sample java code of the mst clustering algorithm to cluster these files. … | |
Here is my assignment: [url]https://docs.google.com/document/edit?id=1lf2t8LOqKmXK8tu8lW7ghDOd1IJw9BXBRi_PDXFtPQo&authkey=CLnyu7UE&hl=en#[/url] Here are the other classes I am using: [url]https://docs.google.com/leaf?id=0B_UHOsQPEyMBNDBhMWExNTgtMTJmNy00MTQxLWI1ZGItMDZiZjM3YTZiZjRi&authkey=CP2ujcoM&hl=en[/url] I am receiving a NullPointer on line 53: regularNumbers.enqueue(i); But, I am not sure why. Additionally, I need to display my results 12 primes per line, and a space between each. Suggestions? Thanks all for taking … | |
what is the best way to display an arraylist? i am currently trying to display it in a textarea but not sure what method to use... [CODE] class Action2 implements ActionListener { public void actionPerformed (ActionEvent e) { String name = field2.getText(); String homeworks = field3.getText(); String exams = field4.getText(); … | |
how can i create a application that will compute fot the net income of a particular employee here is a sample output: Name:Vernie G. Lopez Position:Manager Rate:500 No. of Hours Worked:40 Gross=20000.00 Deductions: Bonus=1000.00 SSS=2000.00 Medicare=100.00 Tax=3000.00 Net Income==15900.00 Total Deduction=5100.00 .you have to accept name,position,and number of hours worked … | |
Hello DaniWeb, Basically like the title suggests I am having trouble generating a random element from my array, and storing it in another array. I am quite new to Java, and the api is a little confusing but from what I can see there is no method for this. Searching … | |
Takes an XML, XHTML, HTML, Javascript or CSS file and creates a pretty printing version. | |
I have a big problem using the default SQLite database via JDBC driver.I would like to use ORMLite with this.Let me expose my code: [CODE=java]String databaseUrl = "jdbc:sqlite:/data/data/my.package.name/db.sqlite"; Class.forName("SQLite.JDBCDriver"); DriverManager.getConnection(databaseUrl); dataSource = DatabaseTypeUtils.createSimpleDataSource(databaseUrl); databaseType = DatabaseTypeUtils.createDatabaseType(dataSource); databaseType.loadDriver(); UpDao = new UserProfileJdbcDao(databaseType); UpDao.setDataSource(dataSource); UpDao.initialize();[/CODE] I downloaded the ormlite2.8.jar (src) and modified … | |
I am working on this program and can't get my InvalidTestScore exception to work. Please help! [CODE] public class Grades extends Exception { // Begin public class Grades private double[] testScores; /** Constructor @param scoreArray An array of test scores */ public Grades(double[] scoreArray) // Assign the array argument to … | |
Hey guys. Before I describe my problem, I'd just like to say that I'm completely new to programming, and I'm currently in the first year of my program. I have an assignment to create a "Lottery winning program". The program generates a random seven digit number, and matches it to … | |
What I am trying to do is test the values of two variables, and if one is lower than the other then it will display an error message. When the user clicks okay it should return from the error pop-up back to the previous form... When I enter System.exit(0); or … | |
Actually I'm new in java, only 2 year, but force to develop advance application for my final year degree project. I'm going to developt image sketching and sketched recognition for police force. My question are: 1. What technique that i could use to to developt to combine several image in … |
The End.