36,051 Topics

Member Avatar for
Member Avatar for lse123

how change default Java icon, in the upper left of java gui windows? may insert big icon eg 32x32 or 64x64 and java thumbnails it to smaller? must be PNG type?

Member Avatar for JamesCherrill
0
86
Member Avatar for Nidhi S.

how should i retrieve my images that i stored in column having Attachment datatype in access 2007 in my java program??

Member Avatar for Nidhi S.
0
87
Member Avatar for rahulrulez

Hey guys. I'm developing the Online Shop using JSP and MYSQL database. I've to create one module, basically a "Shopping Basket" which will hold the information about items that to be purchased. Suppose I buy one product from Item list, that should go in item inventory. If I click "Buy" …

0
64
Member Avatar for lse123

When getting from database and appearing to JTable, how I modify particular cells just prior appearance(eg. Increase base salary(from db) by 10%), to JTable? below in BOLD are cells to modify... 25.6 Modify Exercise 25.5 to perform the following tasks: a) Increase base salary by 10% for all base-plus-commission employees. …

0
56
Member Avatar for Bhargavi V

Hi all, I am getting the following error when I am loading the data into the ComboBox and the ComboBoxes are linked to each other I am getting the errors as below Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at client.cpm.dailyT20.CBRCPMDailyT20View.appComboBox_actionPerformed(CBRCPMDailyT20View.java:235) at client.cpm.dailyT20.CBRCPMDailyT20View.access$1(CBRCPMDailyT20View.java:234) at client.cpm.dailyT20.CBRCPMDailyT20View$2.actionPerformed(CBRCPMDailyT20View.java:227) at javax.swing.JComboBox.fireActionEvent(Unknown Source) at javax.swing.JComboBox.contentsChanged(Unknown Source) at …

Member Avatar for Bhargavi V
0
582
Member Avatar for patilsunil47
Member Avatar for sokolovic

I have a JTree looking something like this: Student Group [INDENT]Group 1[/INDENT] [INDENT][INDENT]Student 1[/INDENT][/INDENT] [INDENT][INDENT]Student 2[/INDENT][/INDENT] [INDENT][INDENT]...[/INDENT][/INDENT] [INDENT][INDENT]Student n[/INDENT][/INDENT] [INDENT]Group 2[/INDENT] [INDENT][INDENT]Student 1[/INDENT][/INDENT] [INDENT][INDENT]Student 2[/INDENT][/INDENT] [INDENT][INDENT]Student 3[/INDENT][/INDENT] [INDENT][INDENT]...[/INDENT][/INDENT] [INDENT][INDENT]Student m[/INDENT][/INDENT] Is there any way to achieve following: 1) Add a new Student Group (let's say, Group 3) without selecting parent …

0
27
Member Avatar for blknmld69

My program compiles and runs but its not outputting correctly. The program should check the file valid_accounts.txt and compare it to the users input. If the account is found int the valid_accounts.txt the output should display "That account number is valid.". I get "You did not enter a valid account …

Member Avatar for stultuske
0
215
Member Avatar for gudads

I know.. i am dumb, the simple logic is difficult for me.. get 5 numbers from user, and compare, which is largest and smallest, no array should be used. please help?

Member Avatar for peter_budo
0
1K
Member Avatar for amoon108

hi... what we need to send sms from pc to mobile and how using java?? plz help me if you can thx

Member Avatar for stephen84s
0
541
Member Avatar for pnelsonsr

Just a concept that has eluded me... Anyone who can help make this understandable would be a God send. in the directory c:/dev/myapp I have the subdir src/com/mycompany/myapp/MyApp.java which consists of [CODE] package com.mycompany.myapp import com.mycompany.MyUtil public class MyApp { public static void main(String args[]) { new MyApp(); MyUtil.Say(); } …

Member Avatar for JamesCherrill
0
104
Member Avatar for StacyAnn1296

Daily life magazine wants an analysis of the demographic characteristics its readers. The marketing department has collected reader survey records containing, the age, gender, maritial status, and annual income of the readers. Design an application that allows a user to enter reader data and, when data entry is complete produces …

Member Avatar for Nick Evan
0
158
Member Avatar for sushil490023

hiiiii plz can any body tell me how to dram following pattern in java using for loop 10001 01010 00100 01010 10001 such that number 1 form diagonal thanks

Member Avatar for sushil490023
0
83
Member Avatar for srikanthdon

i want to control print setting throught jsp or javascript set landscape when clicking on print button directlly plz any support appreciated!

0
42
Member Avatar for srikanthdon

hi every body i have problem when working on IE8 readonly fields geting cursor bling is any body help to solve

0
49
Member Avatar for pnelsonsr

A group has been using a VB app for a while and it uses an access db as its data storage. I've been tasked with completely redoing this in java. The application will be self-contained with the data local (with internet updates), but not a central connection to a db. …

Member Avatar for ~s.o.s~
0
79
Member Avatar for Katana24

Right so I have a pretty simple code that draws the contents of a 2D array onto a panel and the panel is placed onto a frame. The array is of type String and just houses a number of different fruit. The problem is that when the contents is painted …

Member Avatar for Ezzaral
0
2K
Member Avatar for flyingcurry

I am writing a program for class on catching exceptions. Everything compiles fine, but when I try to test my error trapping, this shows up. [COLOR="Red"]"How many integers would you like to enter? f Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1 This is not a correct integer, please try again. Before: …

Member Avatar for flyingcurry
0
177
Member Avatar for bangor_boy

I need help with this, im writing a league system and i need to order the teams by the points they have received max to min, im lost to where to begin any help would be good. [code] public class League { /* instance variables */ private Team name; private …

Member Avatar for Ezzaral
0
157
Member Avatar for LianaN

Hi! Does anybody know how to add MouseListener to JMenu? I have the following working code, however, as you may see, I have MenuListener that allows running "createBaseRight" after selecting (NOT CLICKING) JMenu: home. Thanks in advance! [CODE] JMenuBar menubar = new JMenuBar(); this.setJMenuBar(menubar); JMenu home = new JMenu("Начальная страница"); …

Member Avatar for NormR1
0
180
Member Avatar for javadumbass

I need to create a program where in you would draw a line, just like the paint application, but if you drag it, the lines you created would be deleted.It also displays the(x,y) where your mouse point at in the screen. I'm starting on nothing.So anyone who can help me? …

Member Avatar for javadumbass
0
1K
Member Avatar for Toddras

How do I write a class with a method that will request a number from the user and output if it is even or odd and how do I write a class with a method that will request a year and report if it is a leap year.

Member Avatar for Ezzaral
0
43
Member Avatar for Shotty

Hey just started working with inheritance in my java class, my account class compiles fine, but i get a .class expected error when i try to compile the CheckingAccount class, can anyone tell me why? thx [CODE] package bank; abstract class Account { public Account(int accountNumber, String accountOwner) { number …

Member Avatar for Shotty
0
259
Member Avatar for NewOrder

i have two codes: This one works. [CODE] public class ChessInterface1{ public static void main(String[] arg){ boolean valid4=false; int rowStart=8; int columnStart=3; int columnEnd =2; int rowEnd=1; int a=0; int size=rowStart-rowEnd; Math.abs(size); for(int i=rowStart-1;i>=rowEnd;i--){ for(int j=columnStart-1;j>=columnEnd;j--){ while(columnStart>columnEnd && rowStart>rowEnd){ rowStart--; columnStart--; a++; System.out.println("comparable variable is :"+a); System.out.println("The column number is …

Member Avatar for NewOrder
0
107
Member Avatar for rahulrulez

Hey guys.. I'm working on one project which is in directory - [QUOTE]C:\Tomcat 6\webapps\ROOT\cart[/QUOTE] This is the code in file called shop.jsp [CODE] <%@ page language = "java" contentType = "text/html" import = "ShoppingBasket, Product, java.sql.*" errorPage = "errorpage.jsp" %> <html> <head> <title>Welcome to Shop</title></head> <body> <table width = "385" …

Member Avatar for nohup
0
2K
Member Avatar for LianaN

Hi buddies! I'm creating an application that will be used at different operating systems and, most likely, different display resolutions. My current display resolution is 1680x1050. I've tried using layouts to position components in the frame. So, I didn't define any sizes of components (did't use "setSize", "setBounds", setLocation"). However, …

Member Avatar for Ezzaral
0
152
Member Avatar for LianaN

Hello! I have a problem with filtering JTable (AbstractTableModel)... So, this is my code: [CODE] //Create table and filter public TableRowSorter<MyTableModel> sorter; public static MyTableModel tableModel; ... //Define table and fill it with List "userDataList" List<UserDataRow> userDataList = readuserdatafromfile(); filetree.Form.tableDetails = new JTable(); tableModel = new MyTableModel( userDataList ); filetree.Form.tableDetails.setModel(tableModel); …

Member Avatar for adams161
0
536
Member Avatar for smoothe19

How do i write a source code in java that finds the non-trivial factors of a number e.g Case : 2 is prime. Case : 3 is prime. Case : 5 is prime. Case : 7 is prime. Case : 10 has factor(s): 2 5 Case : 12 has factor(s): …

Member Avatar for Akill10
0
592
Member Avatar for josiefrut

Hi guys, Does anyone know how to hide a toolbar (file toolbar) in pdfbox using java api? really need help.. Thanks!

0
77
Member Avatar for mathewmoozh

Can anyone tell me the advantage of the PHP language over .net and java? why most of the developers uses it for the development? why it is considered as the first prioritized lang for web development? answer me plz.Thanks in advance. answerers are great appreciated thanks again

Member Avatar for sourcebits
0
83
Member Avatar for esy928

How do I pause a thread indefinitely? im creating a game and i need a thread to be paused when the user pauses the game and the thread will resume when the user unpauses the game. =) im using thread.sleep right now but it requires an integer to determine how …

Member Avatar for NormR1
0
2K
Member Avatar for sivaprakashm

surfing all related java sites and forum I cant able to get the answer for when we going for abstract class ? Please help me out ....

Member Avatar for jon.kiparsky
0
77
Member Avatar for beginner21

ok.i have a problem in displaying the images into a jlabel.. the images is stored in mysql database and i used blob as its datatype.. my program is like a search engine.. when the user search for a keyword and click the search button it will show another class which …

Member Avatar for masijade
0
132
Member Avatar for extemer

i want to print number after decimal point.Is there any way to do it e.g This is a decimal number 6.28 and i want to print .28.can any help me out with a simple example

Member Avatar for extemer
0
12K
Member Avatar for daudiam

From my home directory, I created a directory [B]pkg[/B] and wrote 2 files [B]A.java[/B] and [B]B.java[/B] in it. [B]A.java[/B] [CODE]package pkg; class A { B b; }[/CODE] [B]B.java[/B] [CODE]package pkg; class B { }[/CODE] I went back to my home directory and typed the following : [CODE]javac -classpath . /pkg/A.java[/CODE] …

Member Avatar for ~s.o.s~
0
212
Member Avatar for miraj0072004

hello friends, I am calling an external _ant_compile.cmd program from my java methods as [CODE] Runtime rt = Runtime.getRuntime(); Process p=rt.exec(thepath);[/CODE] but here, the external program starts, and starts proceeding, but the problem is this launch takes place without any relation to the original class...which means, once after i have …

Member Avatar for masijade
0
120
Member Avatar for NewOrder

i want to move a bishop diagonally from one point to another i want to move it from (row=8,column=3) to (row=7,column=2) the move is valid but i want to secure it against any collision with another piece. so i am running an loop from the initial position to the next. …

Member Avatar for NewOrder
0
103
Member Avatar for knasha

hello, pls help me out with an program written in java or c to find the ip address of the systems,routers,printers.. present in the network. also let me know they r up or down. thanx, asha

Member Avatar for stultuske
0
134
Member Avatar for Pushpasheela

Hi all I am programming a database-related application in Java(with msaccess). I have to facilitate several different types of queries, but I'd like to use the same JTable to display the results of each query (one at a time, of course). Initially the Jtable display all records. [CODE] JTable tableview; …

Member Avatar for DeadSoul
0
1K
Member Avatar for rayden150

im using eclipse helios and i seem to not have the .scanner function, can someone please help

Member Avatar for extemer
0
6K
Member Avatar for acash229

Hey Guys Can someone tell me how would i get started with trying to draw a graphical output Snowman. I am trying to make it with colored ellipse and rectangles. Thanks

Member Avatar for NormR1
0
127
Member Avatar for Watashi

I can show the values in a database, with a checkbox, but can't retrieve rows I checked When I submit, the only response that I get is the first row, event that I have checked everyone Here my code <table border="1" align="center" valign="center"> <c:forEach var="row" items="${parcelas.rows}"> <form> <td> <input type="checkbox" …

Member Avatar for nohup
0
130
Member Avatar for acash229

Hey guys, I have tried for 3 days now, tried so many forums but help, but still i cannot get the help. I need help from this forum, because i have heard the members are very smart. Basicaly i have a code for a game. The point is that the …

Member Avatar for acash229
0
308
Member Avatar for justinwarner

Hey, So, in our book (I'm doing them for practice, I don't know if we have to actually do them), it says to display the pattern: [CODE] J A V V A J A A V V A A J J AAAAA V V AAAAA JJ A A V A …

Member Avatar for justinwarner
0
3K
Member Avatar for joblanigan

hi, im new to java and am trying to create a simple paint program, what i'm having difficulty with at the moment is creating a field that will remember the current shape the user has chosen, i really don't know too much about what i'm doing more trial and error …

Member Avatar for coil
0
364
Member Avatar for madhub2v

Hello Friends, I Know Java, Sevlet, JSP JDBC Technologies very well. now i want to learn Struts,Hibernate, Spring my self. Please suggenst me any online resource or book for me that gives good explanation with sample applications. so that i can learn and devolop projects myself . thanks.

Member Avatar for peter_budo
0
105
Member Avatar for kumpul101

We have an exercise and it asks to create a program that will ask the user to initialize 2 character arrays, then compare the value of the variables(or the character array). My problem is with the initialization: I will create 2 char Arrays, then. How can I have the input …

Member Avatar for kumpul101
0
191
Member Avatar for Premsathishbe

hi, Currently i vame across a term "[B]POJO[/B]". I need to know somrthing about that, plz help me to know what is the purpose of using "POJO" in java?

Member Avatar for NormR1
0
84
Member Avatar for nix_xin

[CODE]import java.util.*; public class sSfive { public static void main ( String[] args ) { Scanner nix = new Scanner ( System.in ); System.out.print ( "Enter interest rate: " ); float inInt = nix.nextFloat; System.out.println ( "" ); System.out.print ( "Enter number of year: " ); int inYear = nix.nextInt; …

Member Avatar for NormR1
0
179
Member Avatar for Jiblix

Hey guys, I need some help again with this program I've been working on. Basically I'm trying to make it so that a user enters a year and then program prints if its a leap year or not. Here is what I have so far: [CODE]// LeapYear.java // Name public …

Member Avatar for Jiblix
0
232

The End.