35,618 Topics

Member Avatar for
Member Avatar for linx311

I need to write an inventory system program using java... The inventory control system should have 1. Login in to the system. 2. Adding new items. 3. Modifying data of selective item. 4. Deleting existing items. 5. Check the stock availability. 6. Real time stock management (ie. When purchase happen …

Member Avatar for javaAddict
-1
238
Member Avatar for syed aamiruddin

[code] import java.awt.*; import java.awt.event.*; import javax.swing.*; public class SelectLayout extends JFrame implements ItemListener{ public static void main (String[] args) { SelectLayout sl=new SelectLayout(); } JMenuBar menuBar; JMenu lmenu,cmenu; JRadioButtonMenuItem lrbmenuItem,crbmenuItem; JPanel menuPanel,bPanel; JButton button; public SelectLayout() { super("Select Layout in swing"); menuPanel=new JPanel(); menuBar=new JMenuBar(); lmenu=new JMenu("layout"); ButtonGroup gp=new …

Member Avatar for stultuske
0
294
Member Avatar for sciwizeh

Hello All, While doing an assignment, I caused a simple program to slow to a crawl by replacing the calls to Toolkit.createImage() to ImageIO.read() and making all the Image references BufferedImage references. Those where the only changes I made to the program, and it went from running quickly to barely …

Member Avatar for kvprajapati
0
354
Member Avatar for manikandan_dani

hi , i am developing web application. In that, I download two files from glashfish server into another local machine in jsf. if i access from client machine, files does not download into client machine. but it download into server machine alone. so to solve the problem, shall i use …

Member Avatar for masijade
0
58
Member Avatar for low1988

Does anyone know how to compile the file inside the bank.zip with database ? Some of the pages can be view in Tomcat server others needs to bundle with the database

Member Avatar for jwenting
0
113
Member Avatar for jagsar2323
Member Avatar for cjsowm

[code] package assignment; import java.io.*; public class AddJava{ public static void main() { int num1,num2,sum; BufferedReader stdin=new BufferedReader(new InputStreamReader(System.in)); try { System.out.println("enter first digit"); num1=Integer.parseInt(stdin.readLine()); System.out.println("enter second digit"); num2=Integer.parseInt(stdin.readLine()); sum=num1+num2; System.out.println(sum); } catch(IOException e) { System.out.println("input error"+e); } } } [/code] [code] package assignment; import javax.tools.*; import java.io.*; import java.lang.reflect.Method; …

Member Avatar for BestJewSinceJC
0
193
Member Avatar for ziaul1234

hi I am really having a problem on making a project of inventory system in Java. The project says: The inventory control system should have 1. Login in to the system. 2. Adding new items. 3. Modifying data of selective item. 4. Deleting existing items. 5. Check the stock availability. …

Member Avatar for linx311
-2
459
Member Avatar for Bemani_lover

Ok, so I'm having a bit of trouble with understanding how swing interfaces work. Here's the problem. Write a Swing program that declares an empty array of grades with a maxium of 10. Implement a JOptionPane input box within a while loop to allow the user to enter grades using …

Member Avatar for kvass
0
172
Member Avatar for whoadiz

so I am trying do this problem involving linked lists where i need to basically make 2 linked lists each representing a polynomial. I got all that down... now I need to make a function to add the two polynomials and this is where i got stuck. I have the …

Member Avatar for Ezzaral
0
2K
Member Avatar for beforetheyknew

Hi guys I'm trying to learn animation/graphics(they're synonymus to me) what would really help me is a working model of a line turning on an intersection. I've searched around and all i can find is clocks and stuff but all i want is the basic code to cause a line …

Member Avatar for beforetheyknew
0
558
Member Avatar for linkinmal

I'm trying to develop an editor which you can insert text and draw shapes on. To do this, I'm using a JPanel as the main panel, and listening to mouse actions I add new JPanels into it. I draw the shapes on the small panels using getGraphics(). But the main …

Member Avatar for linkinmal
0
836
Member Avatar for bayo_84

Hi .. I try to override the XmlWebApplicationsContext and I dont know how to register my subclass. I found in ContextLoader.java in the method determineContextClass the following code: String contextClassame = servletContext.getInitParameter(CONTEXT_CLASS_PARAM); I looks like I could set the class by setting this Parameter but I down know how. In …

Member Avatar for ~s.o.s~
0
129
Member Avatar for jigar_cool

[B][COLOR=red]I m in urgent need of online flight reservation system source code coded in JSP since i hav to submit it before 15feb.[/COLOR][/B] [B][COLOR=red]the system must do the necessary functions-[/COLOR][/B] [B][COLOR=red]flight infornmation,[/COLOR][/B] [B][COLOR=red]fare details,[/COLOR][/B] [B][COLOR=red]online reservation,[/COLOR][/B] [B][COLOR=red]cancellation,[/COLOR][/B] [B][COLOR=red]view availability of seats,[/COLOR][/B] [B][COLOR=red]administration functions such as edit details,reports generation,etc[/COLOR][/B]

Member Avatar for rizwanshaikh
0
207
Member Avatar for omeli

Letter Maker Objective This project will give you some practice with loops, static methods, removing code duplication and introduces the notion of having multiple classes working together in a single project. Overview The project consists of several classes working together -- most of them are provided for you -- only …

Member Avatar for kvass
0
228
Member Avatar for devstarter

[This is a multi-post; I thank you people for the attention] hi How could I show a database datetime field (like mm/dd/yyyy) on a JTextField? regards

Member Avatar for javaAddict
0
109
Member Avatar for astronomical

All, I have worked extensively on my looping and sentinels here. As you can see I have my program working but it is not taking the series. I know I am missing something stupid but I just can't put my finger on it. I have my inupt validation working as …

Member Avatar for javaAddict
0
839
Member Avatar for Majestics

I want to design utorrent client for my semester project in java, can anyone tell me where should i start and what are the necessary steps for this, also if any useful website and information. Thank you.

Member Avatar for Nick Evan
-4
122
Member Avatar for kvass

The commonly used syntax: [CODE=Java] public class Foo { private int x; public Foo(int x) { this.x=x; } } [/CODE] Is actually "flawed." If you have an anonymous inner class inside the Foo constructor (i.e. if this were a GUI code and you were adding an ActionListener) then the private …

Member Avatar for javaAddict
0
175
Member Avatar for Jerreke

I'm trying to populate the items of a foreach-element in a JSP page. [code]<c:forEach var="request" items="${manageSchedulesBean.userController.getRequestsBySchedule[schedule.scheduleId]}">[/code] Gives me: org.apache.jasper.el.JspPropertyNotFoundException: /secure/manageSchedules.jsp(40,36) '${manageSchedulesBean.userController.getRequestsBySchedule[schedule.scheduleId]}' Property 'getRequestsBySchedule' not found on type $Proxy8 the called function exists, and when i cann manageSchedulesBean or userController, there is no error. Someone got a clue?

Member Avatar for Jerreke
0
109
Member Avatar for shivnath

Hello Everyone I have just started studying about applications and usage of DBus and as I able to understand that it is possible to pass messages between two different applications(programs) written in different languages usnig DBus. But I am not able to implement it. So just for demo, I want …

Member Avatar for musthafa.aj
1
280
Member Avatar for avinash_545

hi everybody!!!!!!! can anyone tell me how do we test the data type of variables in java, like if a variable is a string, the system prints out that this variable is string or not. more especially how can we test this on primitive data type? waiting for your replies!!!

Member Avatar for javaAddict
0
268
Member Avatar for anuj_sharma

Hey Guys, Should i use hidden textboxes or session variables to pass values between various jsp pages??

Member Avatar for jwenting
0
88
Member Avatar for abirami84

I wanT to connect database with jsp directly otherwise have connection with servlet anD how to make connection on sevlet WITH jsp

Member Avatar for jwenting
1
80
Member Avatar for cms271828

Hi, I'd like to be able to put a JTable inside a ScrollPane, so that when the table is large, the horizontal and/or vertical scrollbars 'kick in', and when the JTable is small, I just get a small JTable. Also I want to limit the size of the scrollpane to …

Member Avatar for cms271828
0
93
Member Avatar for miyu15

[b]Split from - [url]http://www.daniweb.com/forums/thread158197.html[/url] [/b] [QUOTE=mabros86;739291]well basically what i'm trying to do is build a program that takes a file and copies is to another new file identically!!![/QUOTE] hi.. uhm.. how did you do this? i mean how to copy a file from jFileChooser to another destination? is it possible …

Member Avatar for BestJewSinceJC
0
96
Member Avatar for saggykulji

In java how to prompt the user to enter the phone number (xxx- xxx- xxxx) format in dialog box? and take the number and Display it in (xxx xxx xxxx) instead of dashes i want spaces. how do i do it? I try to enter the number but it wont …

Member Avatar for kvass
0
75
Member Avatar for Majestics

How in java we can add double menus, like file bar and search bar both are different in internet explorer? Thanks in advance.

Member Avatar for Majestics
0
100
Member Avatar for LucarioWill

Thanks so much for bothering to look at this n.n; I've been kind of confused in this class, mainly because I have no idea what the teacher's saying; her English isn't that great, and she has no in-class coding exercises so we're learning entirely from her crappy powerpoints. I'd have …

Member Avatar for Ezzaral
0
132
Member Avatar for devstarter

[code] public boolean isFull(){ //generally full if(parcelIsFull() || hcparcelIsFull() || noSharingParcel()) return true; } [/code] I want to know why i get this error missing return statement I have the value written as 'true' boolean as the returning value.

Member Avatar for balmark
0
140

The End.