Need To Create A GUI
Jun 5, 2015
I hava little bit of knowlodge in VBA.. I hava a small project related to processing large data.. I need to create a GUI.. I have installed Eclipse software
My progest requie
1.Creating a GUI
2.I need show data folder(consisting 100s of files) from GUI and all files in folder should be moved to each folder with same name as of file name.
View Replies
ADVERTISEMENT
Feb 1, 2014
In the class below I'm trying to create a class that will accept dates in various formats and create a range. The first constructor is easy because I send it the begin date and end date as Date objects. Now I want to send a month(and year) in a constructor and derive the begin and end dates from it. In my constructor that accepts the month/year I need to put the this(startDate, endDate) at the top to be allowed, but the parameters are not built yet.
package com.scg.athrowaway;
import java.util.Calendar;
import java.util.Date;
public class DateRange {
private Date startDate;
private Date endDate;
[code].....
View Replies
View Related
Oct 5, 2014
I'm having some difficulty with my bank account project. I'm supposed to create a menu where the user can create a new account, withdraw, deposit, view their balance, and exit. There's issues with the account creation.
Here's my necessitated class below: BankAccount, TestBankAccount, SavingsAccount, CurrentAccount, and Bank
/*---------------------------------------------------
Plagiarism Statement
I certify that this assignment is my own work and that I have not copied in part or whole or otherwise plagiarized the work of other students and/or persons.
----------------------------------------------------------*/
package BankAccount;
import java.util.Date;
import java.util.Random;
//Project 3
public class BankAccount {
protected static int accountID;
[code]....
View Replies
View Related
May 9, 2015
I'm new to Java and I have an assignment to create a Sphere class that will allow you to create Sphere objects using the code below. Then create a program called SphereTester that prompts the user for the radii of two spheres in meters. The program should display which sphere is larger and by how many cubic meters and display only four digits after the decimal point. I have the sphere class given to us for the assignment which is this:
Java Code: public class Sphere {
// instance variable (i.e., a field)
private double radius;
// constructor for the Sphere class
public Sphere(double r) {
radius = r;
[code]....
View Replies
View Related
Aug 9, 2014
i need to develop a API in java. that API will be communicate with the some site. Need to import and export the contacts into that site databases.
View Replies
View Related
Jan 14, 2014
Here is the application that does this; test your coding of class PieChartWriter with it.
import java.awt.*;
public class TestPieChart
{ public static void main(String[] args)
{ PieChartWriter p = new PieChartWriter();
p.setTitle("How I spend my day");
p.setSlice1("Sleep: 7 hours", 7, Color.black);
p.setSlice4("Recreation: 9 hours", 9, Color.gray);
p.setSlice2("In class: 3 hours", 3, Color.blue);
p.setSlice3("Homework: 5 hours", 5, Color.red);
}
}
View Replies
View Related
Feb 2, 2015
is it possible to make a .gif file with jave?
if it is, how is it done?
do i just create a bufferedGif object, or somemthing like that?
View Replies
View Related
May 24, 2014
i have jsp file and inside i have list that i get from my servlet . i want to create in the bottom of the page the option to move from one page to another like this " page: 1,2,3,4,5"i try to use the tag <a href=.. and onclick() event ,and i understand that javascript will not work , how can i create the " page: 1,2,3,4,5" ?
View Replies
View Related
May 12, 2014
I'm trying to create a GUI java application.
I want a menu with buttons that looks like this:
Button 1: Start
Button 2: Help
Button 3: About Me
If you press one of the buttons you will get to another frame with new buttons, new labels and so on.
Next step for instance if you press button 1, I'd like my program to get this frame:
Different alternatives, and a text field with a button. One commando leads to one new JFrame with new buttons, text fields and so on.
View Replies
View Related
Jul 17, 2014
code:
import java.io.*;
class FileWrite
{
public static void main(String args[])
[Code]....
error :
d:jpro>javac FileWrite.java
FileWrite.java:11: error: constructor File in class File cannot be applied to given types;
File f=new File(filename);
^
[Code].....
View Replies
View Related
May 5, 2014
I am trying to create a class (DVD) with an instance variable that references a map, the constructor for this class must create an empty map and assign it to the instance variable map. I want to populate this map with instances of a different class called tv series, I am using blueJ, I am not sure why this doesn't work
Java Code:
import java.util.*;
public class DVD
{
public static Map<String, TvSeries>DVD;
public TvSeries program;
[Code] .....
View Replies
View Related
Apr 6, 2014
I am trying to write a code for a game HiLo, where i want to add 3 different levels:
easy (1-10)
medium (1-100)
hard(1-1000)
Where the user can choose before the game starts. After that the game is finished i want even to write how many guesses the player used on the screen.
View Replies
View Related
Apr 2, 2015
I'm having trouble creating two new die objects for the PairofDie class. I'm trying to run two separate die and print the face value and then add both numbers up and print those values as well.
public class Die {
private final int MAX = 6;
private int faceValue;
//private int faceValue2;
public Die(){
faceValue = 1;
[Code] .....
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The method Die() is undefined for the type PairofDice
The method Die() is undefined for the type PairofDice
at PairofDice.main(PairofDice.java:6)
View Replies
View Related
Apr 22, 2015
I would like to create a custom tag which works similar to <c:forEach/> tag i.e
<c:forEach var = "movie" items = "${collection}>
${movie}
</c:forEach>
I would want to create the similar behaviour(as above) in my own custom Tag.Morever I would like to use the doStartTag() and doEndTag() and doAfterBody() methods while creating custom Tag.
View Replies
View Related
Nov 9, 2014
create a jar file.Currently I have next files in my directory:
Manifest.txt:
-------------
Manifest-Version: 1.0
Created-By: 1.7.0_60-ea (Oracle Corporation)
Main-Class: connectURL
connectURL.class
------------------
it compiled fine, can be executed as:
java connectURL
it does not have 'Package' specified
sqljdbc4.jar
-----------
This is jdbc 4 jar file which is used by connectURL.java to make db. connection.
I am running:
C:j>jar cvfm connectURL.jar Manifest.txt *.class sqljdbc4.jar
added manifest
adding: connectURL.class(in = 2427) (out= 1358)(deflated 44%)
adding: sqljdbc4.jar(in = 584207) (out= 549364)(deflated 5%)
Then trying to execute and get error message
C:j>java -jar connectURL E520 1433
Error: Unable to access jarfile connectURL
View Replies
View Related
Jan 30, 2014
how to create a JAR File I have been watching you tube and it seems like the manifest needs to be remade. I go to the CMD and find my project folder class. I think I need to use do the same for all the classes correct. Well I type jar -cf TictacToeGUIGame.jar *java then I get no such directory. I can see the it worked thought. So do i do this to all my classes and then I will have my JAR program?
View Replies
View Related
Apr 2, 2014
text file:
Codebase: myserver.com
Permissions: sandbox
Application-Name: Dynamic Tree Demo
error message from command line:
C:UsersxxxxDesktopCOMP268applet_ComponentArch_DynamicTreeDemoapplet_Comp
onentArch_DynamicTreeDemouildclasses>jar -cvfm DynamicTreeDemo.jar mymanifest
.txt appletComponentArch
java.io.IOException: invalid header field name: ?≫?Codebase
at java.util.jar.Attributes.read(Attributes.java:433)
at java.util.jar.Manifest.read(Manifest.java:199)
at java.util.jar.Manifest.<init>(Manifest.java:69)
at sun.tools.jar.Main.run(Main.java:172)
at sun.tools.jar.Main.main(Main.java:1177)
[/code]
encoding in UTF-8 and have newline at end
View Replies
View Related
Sep 18, 2014
.I was reading head first java book and saw a barbell question on page no. 280,question-"what if you want to write a class in such a way that only one instance of it can be created,and anyone who wants to use an instance of the class will always use that one,single instance?"
View Replies
View Related
Sep 16, 2014
I'm new to java and have been coding for a few hours. I tried to create a calculator (Which has no GUI, just text inputs)which will let you select how to process the two integer (Add, minus, times etc.) I cant seem to get it to work. I will put in the process way such as times and have entered two integers and every time it doesn't work. Here is my code:
import java.util.*;
public class Calculator
{
public static void main (String args[])
{
int input1 = 0;
int input2 = 0;
int answer = 0;
[code]....
View Replies
View Related
Oct 3, 2014
How can one create a well-encapsulated class?What are the principles to be followed?
View Replies
View Related
Feb 16, 2015
Ive been trying to create a program to say how many 5cent,10 cent and 50 cent coins there are if you put a number in example 20. I used the init method because thats what the teacher told me to use but i have no clue on what to do.
View Replies
View Related
Jan 30, 2014
pyramid.jpg
Write a for loop for creating a pyramid starting on the platform with the bottom line consisting of 10 boxes then 8 then 6 and so on. I have attempted making the first row but when i run the program the boxes all split up and fall over.
View Replies
View Related
May 10, 2014
File f=new File("c:/FilePractice/text.txt");
f.mkdirs();
and it creates only the folder text.txt.i am trying to create a blank txt file int this folder?what is the easiest way to do it? i try this one also:
[CODE]
PrintWriter writer = new PrintWriter("test.txt");
writer.close();
[CODE]
and its work but the test.txt file created in sort of default folder in my project folder.how can i make it in a folder that i want?
View Replies
View Related
Nov 16, 2014
I am making a Sudoku game and creating a matrix of JTextFields. However I am getting the following errors
Exception in thread "main" java.lang.NullPointerException
at SudokuView.board(SudokuView.java:30)
at SudokuView.<init>(SudokuView.java:18)
at SudokuMain.main(SudokuMain.java:5)
I know the problem is with this code
box[i][j] = new JTextField();
panel.add(box[i][j]);
I know this because when I do this:
panel.add(new JTextField());
It works. However it puzzles me why it is not working.
Whole Code:
import java.awt.GridLayout;
import javax.swing.*;
public class SudokuView {
JFrame frame;
JPanel panelBoard;
JTextField[][] box;
int row=10; int col=10;
SudokuView(){
frame = new JFrame("Play Sudoku GOOD LUCK");
[code]....
View Replies
View Related
Feb 24, 2014
I'm making a small play in java in which you have a limited time to make as many moves as possible (with the aim of achieving a maximum score), like this: URL...
In the game panel I see the map on which you will perform the moves and a score indicator constantly updated. I have to add the indicator that shows me the passage of time (first 3 minutes), in digital format mm: ss. I thought I will be a useful thread called Countdown because I have to stop this counter if the user presses the pause button in the game. Then wanting to continue the game shall resume the countdown.
View Replies
View Related
Jan 26, 2014
I keep getting this as a result:
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous tree type: myprojects.Balloon
at myprojects.BalloonTester.main(BalloonTester.java:1 8)
Java Result: 1
View Replies
View Related