36,051 Topics

Member Avatar for
Member Avatar for mikewyatt

I have a JLayered pane that has a large sized JLable that is showing an image that is used to show a background image. This is on the default layer. Inside I have many items such as lables, textfields, tables and other such things. These are set for the pallet …

Member Avatar for mikewyatt
0
165
Member Avatar for rotten69

Hi everyone, I consider myself as a java beginner because I haven't been involved in a lot of projects. I'm opening this thread to raise awareness that we don't have java projects thread primarily for beginners and it could help advanced java programmers in terms of practising their java knowledge. …

Member Avatar for renato.francia
4
870
Member Avatar for keaikitse

I am an IT graduate willing to learn java, can anbody help me how to get the syntax write please

Member Avatar for pritaeas
0
34
Member Avatar for techyworld

i have a header.jsp file with the following div tag: <%@ page language="java" isELIgnored="false" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <jsp:directive.include file="/WEB-INF/sitemesh-decorators/include.jsp"/> <fmt:setBundle basename="bundles.application-resources"/> <div id="header"> <h1><fmt:message key="application.title"/></h1> </div> <div id="message"></div> <div id="login" ><jsp:include page="/WEB-INF/sitemesh-common/login.jsp" /></div> and my css file as follows: #header{solid #999;margin-bottom:10px;float:top left;min-width:960px; background: transparent url('../pharmacy.jpg') no-repeat;} #message{margin-bottom:10px;float:top right;min-width:960px; background: transparent …

Member Avatar for techyworld
0
683
Member Avatar for jakhondi

Can anyone help me get my output to display in my textArea? When I click the button, when the program is running, it wll display console output since I am using System.out.printf, but now I want it to show in my GUI. Any help would be appreciated. Thank you.

Member Avatar for JamesCherrill
0
189
Member Avatar for ghosh22

Hi Sorry I am posting again. I am trying to make a web form for my new website. I am doing the coding myself because I cannot afford to hire a coder for me. I need some help from you. Please forgive me for all my idiotic questions! Now, here's …

Member Avatar for almostbob
0
204
Member Avatar for Yorkiebar14

Hello, I have recently started to develop my own game in Java and am just starting to get the hang of it. I've watched various tutorials on making an engine etc and have picked up quite a lot. I am struggling with one problem though, I have a world and …

Member Avatar for Yorkiebar14
0
333
Member Avatar for ccsj2206

I need help making this to display the results into a Jframe GUI instead of a console im failry new to java so please help me thanks, here is the code ive used: import java.util.ArrayList; public class ThreeArrayLists { public static void main(String[] args) { ArrayList priceList = new ArrayList(); …

Member Avatar for JamesCherrill
0
741
Member Avatar for sammygreat1234

Hi Programmers, Am working on a project, event made me completely lost touch with Coding, but now i want to be back fully. Am trying to get an OUTPUT using if/if else statement, my code has no errors but does not return result either, Any help or idea on what …

Member Avatar for JamesCherrill
0
179
Member Avatar for teppuus

Hello, I am trying to create an MDI application and am having problems with one of the frames. Walking through the errors, the first error points to a list generated by Netbeans code that I think is the null problem. When I look further down the error list, I get …

Member Avatar for JamesCherrill
0
1K
Member Avatar for dendenny01

I am a beginner in java does not know much about it. But to practise it I have tried to simulate the popular game Hangman using simple methods.Please Guide me with the code In this program the words are given by the user and then they are converted in to …

Member Avatar for JamesCherrill
0
327
Member Avatar for sankubha

I have java tcp socket programming...... In that i need to send a file from client to server .... at the same time i need to chat with that client ...... by what way i can do this ...

Member Avatar for kapildeven89
0
180
Member Avatar for shaifali ranyal

i want to add scroll bar to scroll this page..this page is user log-in form... to add more fields i have to add scroll bar how can i do so ..pls help package user; import java.awt.Color; import java.awt.Container; import java.awt.Font; import javax.swing.*; public class form extends JFrame package user; import …

Member Avatar for shaifali ranyal
0
343
Member Avatar for game06

is there a function for: ex1: String = "2+2.3/34" output: double = 34.0 ex2: String = "45/4+3-0.4" output: double = 0.4 so, find the last operator and take the next number into double. note there are no spaces.

Member Avatar for JamesCherrill
0
241
Member Avatar for JacobAbrham

Hello, I am taking Java fundamental course and I've came up with a confused character i.e # on assigning variable name on Java lately. I have surfed the internet a lot but all I could find is only oprerators, keyword and reserved words are not allowed. so why is # …

Member Avatar for Banderson
0
203
Member Avatar for sathya88

How to parse a string data " B. Prakash 98400 51038 B.M. LAL BROS., TYRjijbEALERS 3 Whites Road, Royapettoh,thennai r 600 014. Ph: 2852 4560 Fax: +91-44-2858 8306 Email: bmlalbros@etn.iiet'" conisder this is my string data and i need to fetch name, address, phone , email seperately is there any …

Member Avatar for somjit{}
0
295
Member Avatar for dgrblr

I have an existing Access database that works well using Access. However, the HR department has convinced management to change to Java as the programming language of choice. I have done very little programming in Java, and have NO CLUE how connect to an Access database (2003), how to read, …

Member Avatar for peter_budo
0
427
Member Avatar for cool_zephyr

I was trying to send an email using javaMail API using my own smtp server to gmail/hotmail/etc..I put the following code to specify smtp server's settings Properties props = new Properties(); props.put("mail.smtp.auth", "true"); props.put("mail.smtp.host", "my smtp host"); props.put("mail.smtp.port", "my smtp host's port"); Session session = Session.getInstance(props, new javax.mail.Authenticator() { protected …

Member Avatar for cool_zephyr
0
280
Member Avatar for mgold

I was just wondering if anyone other than me thought that it would be incredibly usefull to have a language that was both dynamic AND statically typed. **Using Java as a example, it could do the following:** **1)** Define a special dot operator that auto type casted something of type …

Member Avatar for ~s.o.s~
0
214
Member Avatar for bibiki

hey there, I am looking at a maven project that makes use of another maven project. say project A and project B. In context.xml in project A, I see these two lines <value>classpath:oneFile</value> <value>classpath:otherFile</value> I have been trying to figure out what is the actual value of classpath, so what …

Member Avatar for bibiki
0
187
Member Avatar for Morley93

Hi all, I have recently been give a project to create an invoicing system for a small business. The system needs to be able to easily add new customers and store them for usage within invoices. There also needs to be a form to enter invoice data and invoices need …

Member Avatar for 1stDAN
0
262
Member Avatar for mikewyatt

I have a popup window that instead of the ordinary YES_NO_CANCEL_OPTION I want the user to select from 3 options {A, B, or C} static int Select_Use_Move_Items(int Select_Col){ int n = JOptionPane.showOptionDialog(frame, "Select Option for:\n "A: Remove - Discard one Item\n"+ "B: Transfer one Item to Person\n"+ "C: Transfer one …

Member Avatar for mikewyatt
0
362
Member Avatar for game06

i am making a calculator in swing and need help with some logic. so some of button my cal will have: 0,1,2,3,4,5,6,7,8,9,dot, mult,divide,mod, equal,sqrt, ln,log,sin,cos,tan, ^, exp, fractor, etc...... bc i have alot of buttons i need a good way to compute them. here what i am thinking: first user …

Member Avatar for stultuske
0
231
Member Avatar for durgesh1

hello all i need to create comobox untill value come from database,example:-if in data base have 5 value then there should be five combox and value should be set in combobox each time automatically anyone help me to how create combobox that should equal to np. of value in database

Member Avatar for stultuske
0
215
Member Avatar for cleve23

Hi all, I was trying out this for loop example and i notice that the for loop only works for the printing of x.The printing of y value did not work at all until the loop ends. I am trying to understand how for loop actually works. Am i right …

Member Avatar for cleve23
0
138
Member Avatar for DeadH34d

Hey guys, I'm working on a tip calculator as an excercise from the book I'm using to learn Java, and I've run in to a bit of a problem. When I run this code: import java.util.Scanner; public class TipCalculator { public static void main(String[] args) { Scanner input = new …

Member Avatar for DeadH34d
0
258
Member Avatar for Fatima_110

I have no idea how to do this: Create a class called Date that contains three pieces of information as instance variables – a month, day and year e.g. 4, 14, 2007. All three of type int. Your class should have a constructor that initializes the three instance variables. Provide …

Member Avatar for JamesCherrill
0
227
Member Avatar for cleve23

Hi I keep having problem on trying to call the method 'in3050'.Please someone guide me on this???? Thanks public class NumberCheck { private static void main(String[] args) { int num1 = 31; int num2 = 40; boolean check = in3050(num1,num2); } public boolean in3050(int a, int b) { if (a …

Member Avatar for cleve23
0
300
Member Avatar for mesbahuk

I am working on a Java to C# conversion project. In this project, my custom java library uses `java.net` packages [`DatagramPacket`](http://docs.oracle.com/javase/1.4.2/docs/api/java/net/DatagramPacket.html) and [`DatagramSocket`](http://docs.oracle.com/javase/1.4.2/docs/api/java/net/DatagramSocket.html) classes. Are there similar classes in .NET C# with similar functionalities?

Member Avatar for ddanbe
0
347
Member Avatar for FrenzyMo

Create a program using JCreator that will accept student`s information. It should also accept his/her exam score for a specific quarter. Then the program must compute for the exam`s equivalent grade. Lastly all exam grades must be accumulated in order to get the student`s final grade. Prelims,midterm,prefinals 20% and finals …

Member Avatar for JamesCherrill
-1
510
Member Avatar for mesbahuk

I have java code that uses Java's `java.util.Timer.schedule()` method. **Method Description:** *The `schedule(TimerTask task,long delay,long period)` method is used to schedule the specified task for repeated fixed-delay execution, beginning after the specified delay.* public void schedule(TimerTask task,long delay,long period)java.util.Timer.schedule() Is there an equivalent method in C#? If NOT, how can …

Member Avatar for Momerath
0
500
Member Avatar for CuteOrchidd

Hi all, I want to know the java code for transfering the multiple files between server nodes to server node. With advance thanks, CuteOrchid

Member Avatar for CuteOrchidd
-1
256
Member Avatar for mayback230

I have this array in a page and i want to call it into a listview or textview in another page...how do i do that? [CODE]public class Screen2 extends Activity { public static EditText txt1; public static String player; public static ArrayList<String> playerList = new ArrayList<String>(); /** Called when the …

Member Avatar for jwenting
0
343
Member Avatar for NardCake

Hello! I've been very interested in the V8 JavaScript engine recently, so I fetched the source and built it successfully, so far so good. I also successfully compiled the [Hello, World!](https://developers.google.com/v8/get_started) program Google provides. I've also read the [embedders](https://developers.google.com/v8/embed) guide. Other than that I can't find any documentation or examples …

Member Avatar for NardCake
0
160
Member Avatar for somjit{}

my `display()` method is public and looks to be defined , however eclipse says that its not defined. this is a code for an amortized time resizing circular array. can someone help me out here ? also , please do point out if you see something else wrong with the …

Member Avatar for somjit{}
0
291
Member Avatar for JamesCherrill

I have a bizarre thing just happened in NetBeans - the red error markers on the LHS of the editor window have all vanished. There are still errors - the files are flagged as having errors, and the errors are correctly diagnosed when I do a clean/rebuild, but no error …

Member Avatar for JamesCherrill
0
305
Member Avatar for rmad17

<%@ page contentType="text/html; charset=UTF-8" %> <%@ taglib prefix="s" uri="/struts-tags" %> <html> <head> <title>Hello World</title> </head> <body> Hello World, <s:property value="name"/> </body> </html> I tried this code from an online tutorial. However eclipse says 'Can not find the tag library descriptor for "/struts-tags"' in line 2. Do I need to set …

Member Avatar for rmad17
0
303
Member Avatar for jshlmnc

I am having trouble getting started with my program. I have writen the array but I am having trouble starting the if statemnent to fill the seats in the program. If they press 1 it needs to fill seats 1 through 5 if they press 2 it needs to fill …

Member Avatar for JamesCherrill
0
315
Member Avatar for mgold

I'm new to JavaFx and Java GUI development in general. For those not fermiliar, it seems that JavaFx threading has some similarities to swing. Anyway, I'm a little confused about when to use a `Thread` class and when to use JavaFx's worker classes (`Task<a>` for example). Should I use JavaFx …

0
121
Member Avatar for cool_zephyr

how can we get the list of all the classes that are currently loaded in the Java Virtual Machine(JVM)?? it'd be better without the use of any external libraries..thank you.

Member Avatar for rubberman
0
7K
Member Avatar for matt.harding.14203

For the below program: import java.util.*; public class triangleLoop { public static void main (String[] args) { int height, row, col, spa; String leftOrRight; char hyp; Scanner kbd = new Scanner(System.in); System.out.println("Enter the desired height of the triangle: "); height = kbd.nextInt(); kbd.nextLine(); System.out.println("What side do you want the hypoteneuse …

Member Avatar for JamesCherrill
0
269
Member Avatar for matt.harding.14203

I'm having trouble with this: import java.util.Scanner; public class triangleLoop { public static void main (String[] args) { int height, row, col, spa; String hyp; Scanner kbd = new Scanner(System.in); System.out.println("Enter the desired height of the triangle: "); height = kbd.nextInt(); System.out.println("What side do you want the hypoteneuse on? (left/right)"); …

Member Avatar for cmps
0
2K
Member Avatar for CoilFyzx

Hello everyone. I have successfully added an image to my JPanel, but what I want to do is this: I want to be able to mark a section of the image as clickable. Then when the user clicks within that section, I run some action. So essential I want to …

Member Avatar for sirlink99
0
228
Member Avatar for CoilFyzx

Hello Good day. I have an interesting question as it relates to adding a background image to a JPanel (or whichever component is best for what I'm trying to achieve. Hopefully I'll get some help here.) I have a large picture that I want to use as a background image …

Member Avatar for CoilFyzx
0
419
Member Avatar for manalibhadula

Hi , I am new to hibernate and facing issues with composite key mapping.Please help,.While running class name Example,At line 36:- **List sites = session.createQuery("Select h from SiteStageDto h").list();** code is returning null pointer,the hql is returing right query but unable to fetch data to list. I am also posting …

Member Avatar for manalibhadula
0
339
Member Avatar for gsdguru

I have been looking at the code below and it is driving me nuts. Can anyone explain the error and resolution? When I compile to code below I receive the following compilation error: cannot find symbol symbol : class User location: class com.atlassian.jira.rpc.soap.beans.RemoteUser package com.atlassian.jira.rpc.soap.beans; import com.atlassian.jira.user.util.UserManager; import com.atlassian.jira.user.util.UserUtil; public …

Member Avatar for gusano79
0
396
Member Avatar for sirlink99

I am attempting to make a Dictionary like software. The way this software will work is that You will be able to enter a word into a search bar, and the dictionary will search for the word. It will display the word, the pronunciation and the meaning of the word …

Member Avatar for sirlink99
0
435
Member Avatar for benjo.s.lucas

I want to sort it by not using Array sorting. import java.util.Scanner; public class practice5 { public static void main(String[] args) { Scanner p = new Scanner(System.in); int i,j,temp = 0; int min=0, max=0; String w; System.out.print("Enter a Number to sort:"); w = p.nextLine(); String[] m = w.split("\\s+"); int [] …

Member Avatar for somjit{}
0
306
Member Avatar for Dino000

How to make [Java Websocket](http://java-websocket.org/) work with [Hessian protocol](http://java.dzone.com/articles/hessian-web-service-protocol)? I need both server and client using Hessian to communicate, but I don't know if it is possible and what to do. Thanks.

Member Avatar for peter_budo
0
217
Member Avatar for yudop

hello, I want to write a cybercafe application using java that allows users to login wit a preconfigured password that also reflect different time the cafe client wishes to spend. I dont know how to start and would be glad if you guys could show me where to start from. …

Member Avatar for JamesCherrill
0
269

The End.