Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
84% Quality Score
Upvotes Received
7
Posts with Upvotes
5
Upvoting Members
5
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
Ranked #1K
~52.9K People Reached
Favorite Tags
Member Avatar for ashalatha

This is my csv importinf file how iam inserting data into database. function csvimport() { $data['error'] = ''; //initialize image upload error array to empty $config['upload_path'] = './uploads/'; $config['allowed_types'] = 'csv'; $config['max_size'] = '1000'; $this->load->library('upload', $config); // If upload failed, display error if (!$this->upload->do_upload()) { $data['error'] = $this->upload->display_errors(); } else …

Member Avatar for ashalatha
0
3K
Member Avatar for Ryan_11

I am trying to develop a seach page to search the customer files that in the database. I want to be able to search and the result display on the same page and i can search for another customer without going to another page. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript"> $(function() …

Member Avatar for Ryan_11
0
291
Member Avatar for parkz16

there are no visible error in the syntax but when i run the application i keep getting the following error. i have been trying to fix it for hours and simply cant find the problem. the error that appears when running is; Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at javax.swing.JComboBox.setModel(JComboBox.java:292) at …

Member Avatar for bguild
0
33K
Member Avatar for BilalAKhan

Hi, I am trying to assign the value of text box to a variable in PHP. But I am consistently getting an error. The error says, "Undefined index: fname" and "Undefined index: age ". Can anyone please help me in this matter? How can I resolve this? [CODE] form action="welcome.php" …

Member Avatar for ddymacek
0
6K
Member Avatar for Majestics

I HAVE TRYING SPLASH SCREEN IN MY APP, BUT CANT GET THE BASICS YET.. SPLSAH SCREEN ISNT WORKING, CAN ANYONE GIVE ME A SIMPLE EXAMPLE hERE is my code. [CODE] import java.awt.Graphics; import java.awt.Image; import java.awt.Toolkit; import javax.swing.JWindow; public class introduction extends JWindow { private Image img; introduction() { setSize(128,128); …

Member Avatar for Majestics
0
180
Member Avatar for AndreiDMS

Hello all, I've been searching for a couple of days for this but with no luck, I'm not even sure that my searches are correct, so: Scenario: On a http server (apache, OS Centos), I have a lot of folders located on this path: [I]/var/www/folders/[/I] named: [I]R001, E001, utils,[/I] ... …

0
86
Member Avatar for AndreiDMS

Hi, I have a printable class that needs to print some text only on 1 page. The thing is that when I hit print the printer prints 3 pages: page 1 - with correct content page 2 - empty page page 3 - page with content translated some how then …

Member Avatar for queen123
0
764
Member Avatar for vardhmansk

Hi , I am trying to create an image-viewing application , wherein the user chooses an image file using a file chooser . I have created a Jpanel ,inside a jframe with a menu bar, which gives the user a variety of options to select from , using combo boxes …

Member Avatar for vardhmansk
0
974
Member Avatar for solomon_13000

[CODE]public class Testing { static void calculate(Integer... i) {} public static void main(String[] args) { calculate(12); } }[/CODE] What does the ... in the calculate method argument indicates?

Member Avatar for AndreiDMS
0
75
Member Avatar for Gadgetman_53

Hi, I am new to Java, but have been programming in C++ for a few years now. I am working on a project where I have to write a class to implement a gameboard. To do so, I'm using a 2D array of objects. I have a method that swaps …

Member Avatar for Gadgetman_53
0
282
Member Avatar for deftech69

I have a general question about searching inside a two-dimensional array. I'm working on a number search program that allows the user to enter a number to search in a grid of numbers. For example: User wants to search: 234567 In a grid of: 232772725432 734234657337 272425672442 235533655737 252444474436 737533255325 …

Member Avatar for deftech69
0
2K
Member Avatar for hket89

How to generate a pair of random number from 1 to 8 that can fill into a 2D array in a 4x4 square? For example: 2 3 5 6 1 7 8 3 5 4 1 6 7 2 4 8

Member Avatar for hket89
0
255
Member Avatar for Sri Vidhya

I tried executing this program, it says, C:\Program Files\Java\jdk1.6.0_18\bin>java ClassWithManyStaticMethods Exception in thread "main" java.lang.NoClassDefFoundError: ClassWithManyStaticMe thods Caused by: java.lang.ClassNotFoundException: ClassWithManyStaticMethods at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: ClassWithManyStaticMethods. Program will exit. What is the problem? I clearly …

Member Avatar for AndreiDMS
0
114
Member Avatar for anevins

My program will not output the right answer if minus/negative doubles are inputted however the program will output the correct positive double. I think this is because I haven't used the Math.abs correctly but I don't know how to fix this. My code is as follows: [code] public static void …

Member Avatar for Zaad
0
150
Member Avatar for dalymiddleboro

/** * Simple math application using a scanner input * @version 1.00 2010/1/26 */ import java.util.*; import java.text.*; import java.io.*; public class mathopr { public static void main(String[] args) { double num1,answer1,answer2,answer3=0; String myname; String reply; char replyChar=; Scanner input = new Scanner(System.in); DecimalFormat df= new DecimalFormat("00.00"); while (replyChar=='y'){ System.out.println("Please …

Member Avatar for AndreiDMS
0
75
Member Avatar for pucivogel

i am creating a program for hotel management,i want to get the source from JButton and JCheckBox at the same time,how do i do with actionListener? [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; public class HotelManagementGUI extends JFrame implements ActionListener {static final String[] rommcouplesea={"1","2","3","4","5","6","7","8","9","10"}; static final String[] roomcoupleroad={"1","2","3","4","5","6","7","8","9","10"}; static final …

Member Avatar for AndreiDMS
0
85
Member Avatar for bharri

the application below is what i did so far, please give me feedback the Payroll Program so that it uses a class to store and retrieve the employee's name, the hourly rate, and the number of hours worked. Use a constructor to initialize the employee information, and a method within …

Member Avatar for verruckt24
0
90
Member Avatar for DavsTaylor

This is probably a stupid mistake but I can't see the issue, it's with the if statement at the bottom: [code=java] /** * Write a description of class Order here. * * @author David Taylor * @version 1.0 */ import javax.swing.*; import java.text.DecimalFormat; public class Client { // instance variables …

Member Avatar for AndreiDMS
0
143
Member Avatar for conspiracy_dawg

I've been having problems with the now deprecated mouseDown and mouseDrag methods, I know the deprecation causes no problem, the program runs fine, but for grading purposes I want my program to be error and warning free, is there any EASY alternative that can solve this deprecation method? I know …

Member Avatar for PersonalIT
0
463
Member Avatar for severman

hi all does any 1 here know how to save a Gnatt Chart to png file? thanks!

Member Avatar for AndreiDMS
-1
112
Member Avatar for Shmoil

Forgive me I am still really new to Java. I have this swing application which creates a small JFrame that when clicked, counts down from 2 minutes and stops at zero. I build a GUI in netbeans IDE and I read that in order to place this timer code into …

Member Avatar for Shmoil
0
186
Member Avatar for Olliepop

Hey guys How can i make instances of drawString editable? For example changing their x, y and value? Do i use variables for example [CODE=java]g.drawString(str1, x1, y1);[/CODE] Will the change be reflected as soon as i change the values of the variables? Thanks very much for your time!

Member Avatar for AndreiDMS
0
98
Member Avatar for wacky4444

My question is that the program is suppose to randomly generate a addition question with two integers less than 100 this is what i have so far: [CODE]import java.util.Scanner; public class ex3_13 { public static void main(String[] args) { // 1. Generate two random single-digit integers int number1 = (int)(Math.random() …

Member Avatar for javaAddict
0
77
Member Avatar for CurtisEClark

I'm making this code for class but it will only display the number of days as 28 29 or 30. Im new to Java and would really appreciate help. [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package days; …

Member Avatar for AndreiDMS
0
121
Member Avatar for Moonrise_state

Hi again, I have a class that is supposed to match different people of different genders together under different rules. For example, they are supposed to live in the same postal district. The problem is Java seems to be mismatching people, and I think its because it isn't comparing the …

Member Avatar for Moonrise_state
0
115
Member Avatar for jemz

hello can you please help me on how to make the loading bar in java can you make this code..i have a program and i want to put a loading bar ..thanks in advance hoping for your positive responds.

Member Avatar for jemz
0
101
Member Avatar for ndeniche

Hello everyone... I wanna develop a Java Web Applet that will allow me to check a PC's HW configuration (cpu, HDD, and other hardware information), but I don't know what libraries to use, or where to start looking. Anyone can give me a heads up?

Member Avatar for AndreiDMS
0
80
Member Avatar for Seldar

Hello everyone. I am University of Bath Computer Information Systems student and i have to submit a java calculator. As far as i am quite new to java i would like to kindly ask you for some help with it. Here is my task: Write a program that takes as …

Member Avatar for AndreiDMS
0
190
Member Avatar for JasonDoyle

to declare and populate my array i am using [CODE] //declare Image pictures[][] = new Image[16][14]; public void init(){ //populate pictures[2][0] = getImage(getCodeBase(),"twohearths.png"); pictures[3][0] = getImage(getCodeBase(),"threehearths.png"); pictures[4][0] = getImage(getCodeBase(),"fourhearths.png"); pictures[5][0] = getImage(getCodeBase(),"fivehearths.png"); pictures[6][0] = getImage(getCodeBase(),"sixhearths.png"); pictures[7][0] = getImage(getCodeBase(),"sevenhearths.png"); pictures[8][0] = getImage(getCodeBase(),"eighthearths.png"); pictures[9][0] = getImage(getCodeBase(),"ninehearths.png"); pictures[10][0] = getImage(getCodeBase(),"tenhearths.png"); pictures[11][0] = getImage(getCodeBase(),"jackhearths.png"); …

Member Avatar for JasonDoyle
0
154
Member Avatar for Ryujin89

I have an program that allows a user to input their employee name and number and then their hourly wage and their total number of regular hours and overtime hours. Then writes out the data to a binary file. The program I need assistance with reads in that file, adds …

Member Avatar for AndreiDMS
0
242