Face Changer Application
Jul 5, 2014
-The assignment asked us to make a program that looks like this.Want it to look like.jpg
-My application currently looks like this.Currently Looks Like.jpg
The update button and check boxes all work, I'm just having issues getting it to look like its suppose to. I also can't figure out how to draw a JLabel on top of another JLabel, essentially stacking them on top of each other, that's why the back of the head isn't being drawn. This is the source code of my program, I use Eclipse in case your wondering.faceAppSource.rar
So what I need is the repositioning of the left menu bar so it looks similar to the example picture, and I need to create a filled circle for the shape of the head in the right panel either with a ImageIcon or a fillOval().
View Replies
ADVERTISEMENT
Sep 3, 2014
I want to do face detection on the camera.
View Replies
View Related
Jan 2, 2015
what im trying to do is modify the Coin class to override the toString() method so that it indicates whether the coin is face up or face down. For example, "The coin is face up." This is what i have so far:
public class Coin {
public static void main(String[] args) {
Coin coin = new Coin();
for (int i = 0; i < 1; i++) {
coin.flip();
System.out.println(coin);
[Code] .....
View Replies
View Related
May 30, 2014
I am writing a program that displays a smiley face bouncing around the screen. When I load the program it just shows a blank black JFrame. Here is the panel JPanel
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class ReboundPanel extends JPanel {
private final int WIDTH = 300, HEIGHT = 100;
private final int DELAY = 20, IMAGE_SIZE= 35;
private ImageIcon image;
[Code]...
I have a suspicion that it might have to do with image = new ImageIcon("happyFace.gif");
I have tried other programs using .gif and they haven't worked on my computer and I haven't been able to figure out why.
View Replies
View Related
May 9, 2015
I have to implement a face that smiles and frowns. I figured the easiest way to do this was to use JButtons. I also can't close the applet without hitting "end program". I was given a bit of code and had to add onto it. Here's what I have so far.
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.BorderLayout;
import java.awt.Graphics;
import java.awt.Color;
import javax.swing.*;
public class AnimationFace extends JFrame {
public static final int WINDOW_WIDTH = 400;
public static final int WINDOW_HEIGHT = 400;
[Code] .....
It's 90% done but once I changed the face from smile to frown, it lost an eyeball.
View Replies
View Related
Nov 17, 2014
convert or move standalone java thread application into Tomcat server container for accessing its JNDI services? Also is it possible to schedule this thread application in Tomcat server? is it possible to keep this app in tomcat as web application and schedule in window's scheduler.
View Replies
View Related
Mar 11, 2014
I am new to work on JNLP program. I have created a SWING program, JNLP file when i deploy the ear file i am getting 404 error. Please find the steps in details.
1.Created a dynamic web project JWStartProject in eclipse
2.Create a HelloWorld.java class under default package.
import javax.swing.*;
public class HelloWorld extends JFrame {
private static final long serialVersionUID = 4968624166243565348L;
private JLabel label = new JLabel("Hello Java Web START!");
public HelloWorld() {
super("Jave Web Start Example");
this.setSize(350, 200);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );
this.setLayout(null);
[Code] ....
Now I exported this project as JWStartProject.war contains following code.
Created Server in Websphere Admin console
Deployed this war file under the server and started.
I have added MIME types also.
I am unable to launch the application. I am getting 404 errors. May I know where I went wrong?
View Replies
View Related
Dec 24, 2014
today so many website giving facility so can compile and run program online so tell me this process how can i do in my web application.
View Replies
View Related
Sep 13, 2014
What is the best way to run a Swing application on the web? Should I convert it to an applet or do something else?
View Replies
View Related
Feb 5, 2014
I want to know the how to refresh the jsf application after doing something like Faceboook... i.e if i comment or post in my application so automatically the whole application have refresh.
View Replies
View Related
Sep 10, 2014
I am working with DLLs in java.
A while ago, I developed an application in VB.net, and I'm trying to "convert" this application to Java. But this VB.net application uses some specific DLLs and I need to use them in my Java application. However, my knowledge in this respect are quite limited in manupulate DLLs on Java.
Up to this point, I can already load the DLL. I've read some documentation on how to use functions that are in the DLL; but I have some doubts. For example, how can I translate this piece of code to Java?
Java Code:
API = New MyDLL.Base
With API
.para1= "1"
.para2= 2
.para3= True
.para4= False
[Code] ....
View Replies
View Related
May 13, 2015
I am currently faced with a task of creating a web application. This application is meant to be accessed by an admin and also a customer. On the customer side the app should prompt the user to fill in an application for of sort and also allow the user to upload a CV to a database. The information entered by the customer will also be saved on the database. The admin should have the ability to look through all the candidates and their information and CV`s. He should also be allowed to search for candidates with specific key words...I am not a professional programmer but know the core of Java programming. I have a tiny bit of knowledge of MySql.
View Replies
View Related
Nov 13, 2014
I am working on an app that would require an activation code in order to be used after being downloaded (user will get teh code from me) am using Java pro.
View Replies
View Related
Jul 28, 2011
I want to monitor performance of web application, running in java JVM(Java version 1.5.0_22) using tomcat web server, for a given functionality want to find, methods and sql queries how much time taking for execution. i am looking for setting and free tools available.
View Replies
View Related
Dec 3, 2014
I am working on a Java Web Server application.In which server needs to send message to a Mobile no?
What are the way to send message to a mobile no by Java application.
by reading online threads i found like
[URL]
which one I should use and any other approach other than these to send a message using java application?
View Replies
View Related
Jan 5, 2015
Say I have a EAR file. Inside, it has a EJB jar, web war and app client jar file. The (enterprise) app client here is a desktop GUI calling the EJBs accordingly. Now if this EAR is deployed to some app server like JBoss or Glassfish, to access the app client, users will basically use java web start/ JNLP to run the client.
Given this is the case, I'm wondering if the effect is the same as separating the app client (not part of the EAR), have that EJB jar in its library path, and deploy the GUI app as a jar. Hence users not use web start. The only disadvantage I can think for separating the app client is if the EJBs get changed, the client's version will be outdated. But other than that, are there any justification for using an enterprise app client?
View Replies
View Related
Feb 27, 2015
So say I write up a program like a dice roll game, which I see on the forums here. It's all written and good to go and when I hit Run it does what I want it to do, no errors..What do I do with those .class and .java files? Do I compile it somehow into an app I can put on the google play store? What is the NEXT STEP after the program is all written?
View Replies
View Related
Feb 13, 2015
I'm having trouble doing out a class diagram for an app I'm trying to create.The app is a quiz app for students to use in their study. The following objects I have to put in the class diagram are:
Basic Questions attributes:
questionText
correctAnswer
mark (representing the mark awarded for a correct answer)
Answer (representing the answer entered by the user).
Multiple choice question attributes:
questionText
correctAnswer
mark (representing the mark awarded for a correct answer)
option a, option b and option c (representing each of the possible answer)
answer (representing the answer chosen by the user)
Essay Question attributes:
questionText
correctAnswer
mark (representing the mark awarded for a correct answer)
answer (representing the text entered by the user)
maxWordCount (representing the maximum word count for the essay)
Picture Question attributes:
questionText
correctAnswer
answer (representing the text entered by the user)
imageName (representing the image to be displayed with the question)
View Replies
View Related
Apr 13, 2014
Can explain difference between applet and application?
What are differences in code? How to write application?
What are differences in use? I looked for some answers, but I can't understand what they are talking about.
For example:
Application:
Called as stand-alone application as application can be executed from command prompt
Applet:
Requires some third party tool like a browser to execute
But... While I export applet in exclipse I can use it without any browser, just like application(as I and avarage user knows it).
Ok, I understand difference like "Applets cannot read from or write to hard disk files."
So. What should I use while creating what?
For example, something as simple as windows calc, some 2d simply platformer, some more expanded app, like idk, spotify or media player or whatever?
Since after update 51 of java web applets are nearly useless(as I know, maybe I'm wrong?), what is better?
Can application have GUI or it is only applets thing(stupid question?)?
Where can I find any application tutorial? Everything that I found was for applets. Why?
View Replies
View Related
Apr 6, 2014
I am writing a Java Swing GUI application on my pc. I have to give this application to my cousin with another pc, where he is not aware of programming. then how can he execute that application? are there any ways of skipping the "javac" and "java" procedures while executing the app on his computer?
I am using win7 x86 and same at my cousin's place. I am also using eclipse-kepler sr1 ide for app development.
Are there any easy ways of automating this "javac" and "java" process(compilation and execution)? something like...scripting?
View Replies
View Related
Jan 16, 2014
how can I send a sms through java application?
View Replies
View Related
Feb 2, 2014
I want to write an application which stores files inside of itself, like a Zip file, but it will not be a zip or have the zip compression class.
View Replies
View Related
Dec 29, 2014
I have a blog hosting service (like Wordpress) written in PHP and MySQL, I'm gonna make Java Application for it (Runs on Windows, Linux and ...).
My Questions:
1. Can I use Connector/J to connect to my website database (MySQL)?
2. Which one is better? 1.Connect to website database, 2.Use Socket programming.
View Replies
View Related
Jul 22, 2014
I have a project requirement, where I need a desktop java application to interact with web pages. I am currently working in java, so I decided to go with jsp and other java related web technologies. The project requirement is that, there is desktop java application and I need it to interact with web pages. I have zero idea about jsp, jsf etc. Is it possible to make my desktop app to interact with jsp or should I proceed with servlets. If I need to go with servlets, can the front end be designed as an attractive page?
View Replies
View Related
Apr 21, 2015
I have imported several maven projects but I am trying to import a spring project via eclipse and it is not displaying. I did the following file->import->Existing maven projects->browse (found my project)->finish..... The project does not display and I cannot find it. I tired to do it again and the project cannot import because I cannot select it meaning it is already installed.
View Replies
View Related
Feb 1, 2014
I have created a text file that contains a small list of toy names and prices, like:
Barbie, 12.95
Lego, 15.99
Hot Wheels, 5.00
Power Rangers, 6.49
And what I would like is my application to read the contents of the file and store the toy names in a list component. And then I want to be able to select a toy name from the list and add it to a shopping cart that is a list component as well. I want to the application to have menu items and buttons to allow me to remove items from the shopping cart, clear the shopping cart of all selections, and check out.
When I check out, the application should calculate and display the subtotal of all the toy names in the shopping cart, the sales tax (which can just be 8 percent of the subtotal), and the total.
How to create this simple application example I've just made up, and I'm going to add and use this example to create a bigger application myself.
View Replies
View Related