Java Online Applet For Survey

Nov 2, 2014

For a project I have to create an online survey, I cannot use a per-made online survey system because I have really specific needs that no pre-made system can satisfy, so my idea would be to create it in java and store the data in some simple text file, which are fairly easy to work with in java. My question is, is it possible, and if yes how difficult is it, to put the entire thing online? What worries me isn't putting the applet itself online, but the text files that should collect the data, I already have the website to host it.

View Replies


ADVERTISEMENT

Java 64 Bit Won't Go Online

Jul 18, 2014

I know I have a 64 bit OS, my computer, will simply not download the 64 bit version of java when I hit the big ol' red button on the main page. and yes, I have gone to the downloads page and downloaded the one that's 64 bit, but whenever I try to play games, it simply won't let me go online. I have tried uninstalling and reinstalling, but nothing seems to work.

View Replies View Related

Java Online Compiler API

Aug 20, 2014

Running a java source code through an online java compiler (in which you will just pass the the source code using a http request, then the compiler will return the output/error of the source code automatically)?.

View Replies View Related

Make Java App Which Will Be Used Only For Online Banking Transaction?

Dec 19, 2014

I need to make an java app which will be used only for online banking transaction with credit/debit card ...so i need to know the basic procedures for costumer to come and do the transaction

View Replies View Related

Java Servlet :: How To Create Files On Server (online)

Jun 5, 2013

I'm making a website with articles (like a blog). I have a webpage called admin.html where you insert the data of the article (title, post etc).

Admin.html calls to a servlet and this sends the information to a SQL Database and it stores and my index.jsp calls to database and show the articles.

This works perfect, and a non-programmer can insert new articles. The problem is that I need to create an .html file for every article/post and save it into my server online.

For example if I create "CoolArticle", I need the file "CoolArticle.html" and save it in my hosting.

How I can do it? I never have seen examples online, all were local, so I can't continue.

View Replies View Related

Online Election System - Using Image In Java Class

May 19, 2013

I am doing a project "online election system" client-server base application.

I have a party registration class in my program. and I have a party registration form in which I want to upload a image(Poll Symbol) for newly register party. but I don't know how to do this.?

View Replies View Related

Java Applet Error

May 26, 2012

I'm using jdk7 and I get this error when I compile Exception in thread "main" java.lang.Error: Unresolved compilation problem: at First.main(First.java:16)

Java Code:

import javax.io.*;
import javax.awt.*;
import javax.lang.*;
import javax.applet.*;
import javax.net.*;
import javax.util.*;
import javax.swing.JApplet;
import javax.swing.JFrame;

public class First extends JApplet {

public void init() {
getContentPane().add(new JLabel("Applet!"));

[code]....

View Replies View Related

HTML Parameters To Java Applet

Nov 22, 2014

I am trying to pass parameters from he following HTML file to an applet. the applet is not initializing and the iam getting the following error on the console. I also have both the html file and and the java applet under the same source file in eclipse.

java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:542)
at java.lang.Integer.parseInt(Integer.java:615)
at applet.DisplayMessage.init(DisplayMessage.java:16)
at sun.applet.AppletPanel.run(AppletPanel.java:434)
at java.lang.Thread.run(Thread.java:745)

Here is the html file

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>

[Code] ....

View Replies View Related

Root Function In Java Applet

May 12, 2014

I like to know how to write root function in java applet. I know it in java function. Ex:

import java.lang.*;
public class Maths {
public static void main(String[] args) {
// get two double numbers numbers
double x = 9;
double y = 25;
// print the square root of these doubles
System.out.println("Math.sqrt(" + x + ")=" + Math.sqrt(x));
System.out.println("Math.sqrt(" + y + ")=" + Math.sqrt(y));
}
}

working fine. but If I tried in applet it's not working. Ex:

evap_trans = 0.0135 * SRAD * ( TMEAN + 17.78) * Math.sqrt(TMAX - TMIN);

If I execute above said formulae with out "Math.sqrt" results are ok. If I used then results shows ZERO.

View Replies View Related

Cropping Image In Java Applet

Apr 30, 2012

I have an applet coded to recieve an image and upon mouse press i wish it to be cropped. For some reason its not implementing, I just think my brain is no longer doing what i think it should be or something, along those lines.

Code below

import java.applet.Applet;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.image.CropImageFilter;
import java.awt.image.FilteredImageSource;
import java.awt.image.ImageFilter;
import java.awt.image.ImageProducer;
public class CropImg extends Applet implements MouseListener

[Code] .....

View Replies View Related

Java Applet - Background Color Is Not Being Set

Nov 23, 2014

I am trying to go about making this applet a bit different then normal. The issue I am having is it is drawing an applet but, not the right dimensions, it's able to be resized, lastly the background color is not being set. I mean, I suppose I could call paint() and just draw it out but, I read that I could make the applet pop out to the dimensions I would like. None of this is working sadly.

package com.powder.game;
import javax.swing.*;
import java.applet.*;
import java.awt.*;
import java.util.*;
import java.io.IOException;
import java.lang.Math;

[code]...

my exact question is can I rewrite the applet to make a pop out window and should I just call paint()?

View Replies View Related

Embed Java Applet In HTML

May 8, 2013

When I embed java applet in html the "ClassNotFoundException" message appear to me, how to overcome this ....

View Replies View Related

Java Applet - Sharing Variables With Another Class

Mar 29, 2015

I have An Issue With My Java Applet. Im Trying To Share My Variables With Another Class, But Its Not Working.

Class 1

package com.Tobysmith10.game.main;
import java.applet.Applet;
import java.awt.Graphics;
public class Game extends Applet{
public void init(){
 setSize(850,480);
 public void paint(Graphics g){
 g.fillOval(x,y,20,20);
}
}

Class 2

package com.Tobysmith10.game.main;
import java.applet.Applet;
public class gameLoop extends Applet implements Runnable{
public int x, y;
public void run(){
while(true){
x = 100;
y = 100; 
}
}
}

So im sharing the x and y variables with the Class 1 , but I get yellow lines under it and when i run the program, it crashes, how do I get class 1 to recognize the variables from class 2 ?

View Replies View Related

Java Applet - Open / Zoom In / Out Of Image

Jul 29, 2014

Working on an assignment for a class: Create a DESKTOP application that allows you to open an image file and enables you to zoom in on or out from an image. I believe all I need is too create an open button to open the actual image file, instead of the html link, this code is an example that the teacher provided.My current code:

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.net.URL;
import java.io.*;
import javax.imageio.*;

[code]....

how to add an open file button so I can search for the file and then open it into my program.

View Replies View Related

How To Create Sports Tables Java Applet

Jun 1, 2014

I've been using a Java applet for sports tables.It has been very useful for me. However, the recent developments from the people at Oracle have made this program impossible to use. The point is that I need this program and I need it fast.I've been in touch with the person who once created this applet and he has no intentions at all to upgrade it or do anything to make it function. How to make the program works with their new updates.

View Replies View Related

Read Serial Port In Java Applet

Jul 19, 2014

My company is a transport company. We receive goods form partner and transport it to customers. There is a process that we must accept a number of kilograms into bill after we weigh goods by the electronic balance(the electronic balance have serial port plug in PC) . To decrease this process, I'm looking for a project "read serial port wrote in java applet". Who have code,

View Replies View Related

Java Applet - Displaying Output With Text?

Feb 24, 2014

my java applet - displaying output with text

View Replies View Related

Applets :: Java Applet Freezing At Client Side?

May 6, 2014

We have a weblogic based application, which runs Applet at the client side when the application is launced.

the application is getting freezed for a client.

how we can analyze the cause of this behavior,

1) As to how we can take thread dump or any other details to analyze the issue.

View Replies View Related

Digital Persona Finger Print Java Applet?

Aug 21, 2014

I need a java applet source to capture and verification code that i can integrate with html,

View Replies View Related

Play / Stop / Pause Song Java Applet

Jul 22, 2014

In my card game applet I have to play some music and the user must have the ability to play, stop and pause the song using buttons. I got the play and stop to work easy but I'm unable to add the pause option/method.

View Replies View Related

Applet Java GUI Building To Display Words To User

Nov 17, 2014

Implement an applet that display historical facts. The applet will include facts from october 28 to december 4th to test the applet.

What is the best thing to add text in my GUI - JLabel, JTextArea? I am trying to display different words on my csFacts. Once a user click button yesterday and button tomorrow?

public class Facts extends JFrame implements ActionListener{
private JButton button1,button2;
private JPanel panel;
private JLabel label;
TextField ri = new TextField(50);
private void createGUI(){
setDefaultCloseOperation(EXIT_ON_CLOSE);

[Code] .....

View Replies View Related

Activating Inverse Button On Sample Java Applet

Dec 10, 2014

Nearly all of hte sample Java Applet is pre-made by the teacher. I'm running into the issue where, if I use the string arithmetic inverse method provided by the textbook, it refuses to recognize variables such as s1, s2, and i. So I'm now trying to use stringbuilder, and running into a similar issue. It doesn't recognize hte symbol "buffer". Under the "else if ( e.getSource() == inverseStr ) {" is where my code starts. The "Your Code Here" was put there by the teacher, and I'm just using it as an easy way to create blank lines if I delete a method that isn't working for me in the above section.

import javax.swing. * ;
import java.awt. * ;
import java.awt.event. * ;
public class HW07 extends JApplet
{
public void init() {
setSize( 400, 300 );
add( new MyGUI() );

[code]....

When I launch the applet in TextPad, there will be an Inverse button, and when I click that, it should reverse the word provided in the applet window, and show it in the inverse there. I had the StringBuilder working once, but it showed its result in a separate command prompt.

View Replies View Related

Generic RPG Game - Java Applet When Adding Subroutine

Jul 11, 2014

I am trying to design a generic RPG game. The issue I am having right now is in my Class I have a subroutine (think that is the correct term) that is basically set up to hold a series of Print Statements. I am really just trying to get some Values that are stored within the Applet, have them assigned to their correct variables and then returned in the print statement. Yet, when I run the applet it just pops up the Applet blank and gives me a long list of errors and I really don't understand when they mean.

Here is the code:

The Class

public class CharacterSheet {
final String NL = System.getProperty("line.separator");
public String characterName;
int playerStr;
int playerCha;

[Code] ....

And the error messages:

Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException: String is null
at sun.java2d.SunGraphics2D.drawString(Unknown Source)
at TFApplet.paint(TFApplet.java:15)
at javax.swing.RepaintManager$3.run(Unknown Source)
at javax.swing.RepaintManager$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)

[Code] .....

View Replies View Related

Pythagorean Theorem Java Applet - How To Get Hypotenuse Of Sides A And B

Apr 3, 2014

I am not sure whats wrong with my code. I need to get the hypotenuse of sides a and b and I am having problems in the code.

// The "Components" class.
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
 public class ButtonDemo extends JFrame implements ActionListener {
// Declare objects
JLabel label;

[Code] ....

View Replies View Related

Java Applet - Using Constructor To Populate Deck Of Cards Instead Of Method

Sep 14, 2014

I have two questions.

1 - I don't understand why I'm getting an empty stack error when calling the removecard method in my Table class line 13?

2 - I am trying to use a constructor to populate my deck of cards instead of a method when creating my theDeck object in my Table class line 11 but I get the following error:

java.lang.StackOverflowError
at java.util.Vector.<init>(Unknown Source)
at java.util.Vector.<init>(Unknown Source)
at java.util.Stack.<init>(Unknown Source)
at Deck.<init>(Deck.java:7)
at Deck.<init>(Deck.java:34)

public class Card {
 String enseigne;
int valeur;
 
[Code]....

View Replies View Related

Java Applet With Third Party Jar Not Working - No Class Found Exception

Aug 31, 2014

I have written a java applet. Few months before It was working all fine but my client has some other requirements now and I have to edit it. I am getting two problems:
 
1. I could not execute it on my local computer as it always gives "your security settings have blocked a local application from running". I have edited the settings from Control Panel but it is then started giving permission error on including permission in manifest file it started giving trusted library error and still it is not resolved.
 
2. Can I know how to work with third party library with applets. I have imported the library and uses its few classes but when I tried to load applet it always give no class definition found error. I have some ways mentioned online like use comma separated names for all the jars but no luck so far.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved