Application Build Process
Mar 15, 2014
I need a summary of the steps involve in building java application.I have my source code, already compiled but I don't know the next step to make it run on a particular device. I know of emulator but I need more information.
View Replies
ADVERTISEMENT
Oct 8, 2014
Difference between using windows builder in eclipse v/s using only java swing without windows builder to build GUI application?
View Replies
View Related
Oct 24, 2013
i want to create an application which detect an image which took from camera and to process it so that it can be verified ..for example number plate of the vehicle ..if i need to extract the numbers from the image ..
View Replies
View Related
May 6, 2014
how to build a P2P app in java because I have difficulties working with a tool called JXTA.
View Replies
View Related
May 18, 2014
how to build a GUI. I typed (not copy and paste) this code line by line to understand and get a meaning to each command. I ran into some errors while compiling and decided I would try to fix it. I ran into a problem there.....
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
[Code].....
View Replies
View Related
Jan 5, 2014
He said that if you need something that Swing can't provide, like a bar graph, you build it. Now, being used to just writing a method that will open up a JFrame, how you would actually build graphics on your own. How in the world would that work? How would one write their own methods to make a window or to build a graph?
View Replies
View Related
Nov 10, 2014
how to build GUI's with JFrame and I was firstly very confused as to when and what is always needed for any GUI in Java. How do I know everything I need for a GUI? Are there certain things every GUI will need by default?
Additionally below I have a code snippet of when this person used the "this" as an argument to a JButton and Im just really confused for when I can use it and when I can't.
public UIStuff(){
super("Multiple Button Events");
init();
} // end multi-button
[code]....
View Replies
View Related
Nov 5, 2014
i am having problems with making it start. i have the buttons set but when i click on them they don't do anything.
mport java.awt.*;
import javax.swing.*;
public class Fan extends JFrame {
[Code].....
View Replies
View Related
Jan 16, 2014
I need to build the triangle like below. How to solve this using loops.
*
* *
* * *
* * * *
* * * * *
View Replies
View Related
May 25, 2014
i have a problem, i need build a calender in BlueJ. The program need to found if I put this one year have to give me the full schedule but only the first semester.
View Replies
View Related
Aug 28, 2014
I wanted to build a calculator in java but I have a problem I wanted to when I type "plus" , go to This IF but don't go
import java.util.Scanner;
public class Session {
static String amal;
[code]....
View Replies
View Related
Feb 2, 2015
I am trying to build an address book, and I started from what i know how to do.
public class Persona {
String nome;
String indirizzo;
int cellulare;
public Persona(String nom, String ind, int cel) {
nome = nom;
indirizzo = ind;
cellulare = cel;
[code].....
Now I would like the program to take a string I insert on command line (for example java Cerca"Robert Baratheon") and compare it to the nome field of every Persona in the address book.
View Replies
View Related
Mar 29, 2015
Started ok i guess? But when it comes to the save and get methods im totaly lost.. (See the code)
import java.util.HashMap;
public class Model {
HashMap<Integer,Long> m = new HashMap<Integer,Long>();
Integer value;
Long result = 2 * computePower(value-1);
public long computePower(int value){
if(value <= 0 )
[Code] .....
View Replies
View Related
Aug 5, 2014
I didn't ask you to do my home work . tell me how to communicate two java program using named piped concept.
View Replies
View Related
May 28, 2014
I am trying to run my program through netbeans and I get a message:
...build-impl.xml:1048 the module has not been deployed.
see the server log for details.
The corresponding line in the xml document is:
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
And in the server log there is a long list of comments, the first which looks to be of significance to this issue is:
WARNING [http-apr-8080-exec-57] org.apache.catalina.deploy.NamingResourcesImpl.cle anUp Failed to retrieve JNDI naming context for container [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/transBoard]] so no cleanup was performed for that container
javax.naming.NameNotFoundException: Name [comp/env] is not bound in this Context. Unable to find [comp].
There are others further down the list which might also be significant such as:
SEVERE [http-apr-8080-exec-59] org.apache.catalina.core.ContainerBase.addChildInt ernal ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/transBoard]]
The corresponding line of code for the first warning that I listed is for the DataSource object and I wrote it as follows:
dataSource = (DataSource)
ic.lookup("java:/comp/env/jdbc/trans_board");
I'm pretty sure the issue has something to do with connecting to the database since it ran fine before I added the database related code.
View Replies
View Related
May 31, 2014
I never used tree, node etc. Consider an array of strings that come from html tags. This needs to be turned into a tree structure. Here, any Hn is the child of the most recent Hn-1
String[] Headers = {"H1", "H1", "H2", "H3", "H3", "H2", "H2", "H3",
"H4", "H2", "H2", "H2", "H1", "H2", "H2", "H3", "H4", "H4", "H2" };
Desired output -
ROOT
H1
H1
...H2
......H3
......H3
...H2
...H2
......H3
.........H4
...H2
...H2
...H2
H1
...H2
...H2
......H3
.........H4
.........H4
...H2
ANSWER -
class Example {
static class Node {
final String name;
final int indent;
Collection<Node> children = new LinkedList<> ();
[Code] .....
View Replies
View Related
Apr 22, 2014
For my first attempt at writing a program that consists of more than one class, I am trying to build a Clash of Clans troop calculator. It will allow the user to configure an army composition and return the cost to train, the total damage per second, and the total training time. Cost and damage will vary based on the levels of each type of troop. Total troop capacity will depend on the number and level of the available army camps. URL...
Eventually it will need a GUI, but I'm just trying to plan out the components right now. I started by writing a masterclass called Troop, and subclasses for each type of troop.Troop class:
public class Troop {
private int qty;
private int level;
private static int HOUSING_SPACE;
private static int TRAINING_TIME;
private int elixirCost = 0;
private int darkElixirCost = 0;
private int damagePerSecond = 0;
private int hitPoints = 0;
[code]....
I made each type of troop its own class because 1) the setElixirCost(), setDamagePerSecond(), and setHitPoints() methods will all use different values for each different troop type and 2) I thought building an Army of one of each object would be the easiest way.
Now I'm trying to figure out the best way to build the Army class. It will basically just be a collection of Troop objects, with a few methods to return the total training time, total elixir cost, total hitpoints, and total damage per second. Should it be its own class? I thought about making it just an array of Troops, but it needs to have its own field for max housing space so the client can warn the user to stop adding troops when all army camps are full.
View Replies
View Related
Dec 10, 2014
I am trying to build a servlet that does simple addition and subtraction then re displays the result on the same screen. I started the building the servlet I am just not sure I understand how to assign the value from a text area to a variable, so that I can complete the logic its still early stages, but its a simple app so it wont be a very long project(I hope lol). My question is how to assign the value that the user inputs to the text area to a variable that I can use?
My code and compile time errors:
C:UsersReignDesktopHTMLBank.java:89: cannot find symbol
symbol : variable Amount
location: class HTMLBank
if(Amount.equals("")||Amount.equals(null))//||Amount.equals(<0))
[Code].....
View Replies
View Related
Nov 2, 2014
I have recently taken up some java after a period of time learning batch scripting. the issue I have run into is that my build compiled and ran just
fine when invoking from within the netbeans IDE but after that I 'cleaned and built' the jar and the IDE stored it in the directory that I specified while installing.
I went to that folder, double clicked on my gui and go nothing. So then I opened a command prompt did, "java -jar myapp.jar" and got the following of which has me completely lost:
Exception in thread "AWT-EventQueue-0" javax.persistence.PersistenceException: No Persistence provider for EntityManager named
at javax.persistence.Persistence.createEntityManagerF actory(Persistence.java:85)
at javax.persistence.Persistence.createEntityManagerF actory(Persistence.java:54)
at my.numberaddition.NumberAdditionUI.initComponents( NumberAdditionUI.java:31)
at my.numberaddition.NumberAdditionUI.<init>(NumberAd ditionUI.java:18)
[Code] ....
View Replies
View Related
May 29, 2014
I am trying to run my program through netbeans and I get a message: build-impl.xml:1048 the module has not been deployed. see the server log for details.The corresponding line in the xml document is:
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
And in the server log there is a long list of comments, the first which looks to be of significance to this issue is:
WARNING [http-apr-8080-exec-57] org.apache.catalina.deploy.NamingResourcesImpl.cleanUp Failed to retrieve JNDI naming context for container [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/transBoard]] so no cleanup was performed for that container
javax.naming.NameNotFoundException: Name [comp/env] is not bound in this Context. Unable to find [comp].
There are others further down the list which might also be significant such as:
SEVERE [http-apr-8080-exec-59] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/transBoard]]
The corresponding line of code for the first warning that I listed is for the DataSource object and I wrote it as follows:
dataSource = (DataSource)
ic.lookup("java:/comp/env/jdbc/trans_board");
the issue has something to do with connecting to the database since it ran fine before I added the database related code.
update: my server.xml file is as follows:
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership.The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
[code]....
View Replies
View Related
Oct 29, 2009
I want build to build a website buider in java that contains drag & drop functionality for editing templates of websitesI need to build a replica of the site URL....I want to know what framework would i use for building this in java whether it shuold be swings,awt or some other i need to integerate in java like flex or something.how to get started with this.
View Replies
View Related
Aug 22, 2014
I am using JAX-WS to develop web services.
I would like to know how i can find the process ID associated to a request.
View Replies
View Related
Sep 28, 2014
I am trying to make a JTree. I have used this guide :[URL]
Now when I call my Class with
TreeMainMenu tree = new TreeMainMenu();
JScrollPane MainMenu = new JScrollPane(tree);
I get only the default JTree..
I need to understand how I should build my code to call the class as JTree.
This is my code:
public class TreeMainMenu extends JTree {
private DefaultMutableTreeNode top = new DefaultMutableTreeNode("TOP");
JTree tree;
public JTree TreeMainMenu() {
APNode();
tree = new JTree(top);
tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
return tree;
[code]....
View Replies
View Related
Apr 30, 2014
I've chosen to build a GUI that will initially display a window with 'x' number of buttons for different subject areas of physics (kinematics, waves, sound, circuits...etc). I would like to use an Actionlistener for each button so that when its pressed, the JFrame will extend a sidepanel or expand the JFrame with a new JPanel that contains variable Jtextfields so the user can enter data to calculate.
I'd like to know if its possible to do this with the JFrame or should I just open a new window altogether? I have some other features I plan to add to the program, but this is where I am right now.
how difficult is it to add a banner image and imageIcon? By banner image I mean create a Jpanel that will contain a header for the window and will have some cool physics jpg image.
View Replies
View Related
Nov 4, 2014
I created a main class called X and two Y and Z classes.
Y and Z implements Runnable classes.
class X contains a static array A that can be accessed in Y and Z.
The Run () method of the class Y reads an input file and populates the vector A.
The Run () method of the Z class uses data stored into the vector A to process some data.
The objective of using threads in this problem is: as the vector A is filled in the Run () method of class Y, the Run () method of the class Z will processing the received values in the vector A.
to do this I did the following calls in the main method of class X:
ObjectY y = new Y ();
Thready thread = new Thread (objectY);
threadY.start ();
ObjectZ new Z = Z ();
Threadz thread = new Thread (objectZ);
threadZ.start ();
is that correct? I'm getting the expected results, but dont know if the code is parallelized in fact.
View Replies
View Related
Apr 21, 2014
I'm Fresher and i'm new in ATG nd right now working on checkout module.Here I'm trying to take shipping information of user so it is fetching in the shipping information JSP bt when i'm trying to submit that JSP den it's not going to either in SuccessURL or in ErrorURL it's remaining in current JSP.
I'm doing any customization's i'm jst using al Out Of Box Components nd my code is almost same as Out Of Box Code and it is not giving any error also.
I'm attaching my JSP's
Attached File(s)
shipping_jsp.txt (4.17K)
Number of downloads: 293
shippingAddress_jsp.txt (1.9K)
Number of downloads: 135
shippingSingle_jsp.txt (70bytes)
Number of downloads: 19
shippingSingleForm_jsp.txt (2.05K)
Number of downloads: 102
View Replies
View Related