32,204 Topics

Member Avatar for
Member Avatar for rakesh4java

# I want to give a button in my JSP page, which on click of it should store an image in the filesystem. # Following is the code ScreenCapture.java which is a servlet. Purpose: To capture the screen of working area and store it in file system. Problem: - An …

Member Avatar for stultuske
0
1K
Member Avatar for Kam_1

Hi, I have a problem, because I have a list, in which I'd like to be able to add and remove components, but in other thread I use components from this list. Is there a safe way to operate over this list? Would using synchronized functions (one for drawing, one …

Member Avatar for JamesCherrill
0
341
Member Avatar for dukoolsharma

Why much time is needed to access an applet having swing components the first time?

Member Avatar for HimaniBansal
-1
308
Member Avatar for Karen_9

I'm new to Java and I'm trying to recreate a simplified version of the Game of Mastermind. I managed to allow the player to input once but then it stops. I don't know how to fix this, I've tried everything I knew how to do to fix this but I …

Member Avatar for JamesCherrill
0
373
Member Avatar for misstj555

# Lab Assignment # We must create a program that will print a sorted list of all the students and the corresponding scores listing the highest score first and the lowest score last. In this case I would need a Bubble Sort. ## Question ## This is my "Bubble Sort" …

Member Avatar for misstj555
0
2K
Member Avatar for Leem_1

I do the class but there are some codes I need to help me please : -Write a number of member functions that do the following: •Calculate the student GPA •Search for the highest mark taken in a particular course •Print the ID, first name, and last name of all …

Member Avatar for nourimane
1
936
Member Avatar for Kam_1

Hi, I have the program, which is a traffic simulation, and I have a few linked lists in it. I'd like to ask you what is the easiest way to check if I don't have duplicats in them? The code which runs it looks like that: public static void main(String[] …

Member Avatar for JamesCherrill
0
284
Member Avatar for jkon

The facts: We are talking about a small company (5 persons) with many clients that making real money (we don't) . We provide our own software that has unique features against the e-commerce completion. The problem: the first glimpse of the problem arose around 2012 and made clear around 2014 …

Member Avatar for Trasser
1
2K
Member Avatar for misstj555

# Lab Question# We must create a program that do the following: Allow the user to type in a student name the coorosponds with the student's exam score. The program will be able to accpet exam scores till the user types in the phrase "allDone". The code will determine which …

Member Avatar for misstj555
0
2K
Member Avatar for misstj555

I am in a Computer Science Class and need help with the following Lab Assingment (WARNIG: this entry may be unintentionally long): # Lab Question # We must create a program that will do these three things: (1) Allow the user to type in a student name the coorosponds with …

Member Avatar for misstj555
0
576
Member Avatar for Kam_1

Hi, something weird happened with my program, I mean when I run it I see only grey frame (like I had only JFrame object in my app), then I minimalize application, maximalize it and only then I see all components painted (JButton, rectangels and lines inside Jpanel,...). Changing of frame …

Member Avatar for JamesCherrill
-1
2K
Member Avatar for Pk11

Hi, I have two problems with application I write in Java. Now it looks like that: import java.awt.*; import javax.swing.*; public class Main{ public Main() { JFrame frame = new JFrame(); frame.setSize(1200,900); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); JPanel background = new JPanel(new GridBagLayout()); background.setBackground(Color.lightGray); LeftPanel lp = new LeftPanel(); background.add(lp, new GridBagConstraints(0,0,1,3,3.0,1.0, GridBagConstraints.WEST, …

Member Avatar for JamesCherrill
0
436
Member Avatar for Kam_1

Hi, I'd like to ask you a few questions about a things which don't work right now in my (very simple) graphic interface. The code I have: import java.awt.*; import javax.swing.*; public class Simulation{ public Simulation() { JFrame frame = new JFrame(); frame.setSize(1200,900); frame.setTitle("Traffic simulator"); frame.setResizable(false); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); JPanel background …

Member Avatar for JamesCherrill
0
542
Member Avatar for ABaileyRush92

Hi i am new to java and just learning as i go , I the basic of calling mothod arguments and so forth but i am having difficulties calling my array method so it would come up to the terminal to the user when the code is running . i …

Member Avatar for JamesCherrill
0
460
Member Avatar for Amruta Sriram

If Anyone Knows , can you please help me how to import the text file to JTable by using JFilechooser ? Even the text file contains the specific charecters line length eg: idUsernamePasswordEmailAgeGender ( ID = 2 Chars, Username = 10 chars ( if username not having 10 chars means, …

Member Avatar for JamesCherrill
-1
635
Member Avatar for dukoolsharma
Member Avatar for John221

Hi, I need your help with my project. I'm doing traffic simulator, but I don't want it to be static map with moving cars, I want it to have methods to generate the roads with intersection (for now I have few simplifications like the roads are straight vertical or horizontal …

Member Avatar for JamesCherrill
1
3K
Member Avatar for IntelegoIt

I study the Quicksort algorithm like this : // Java program for implementation of QuickSort class QuickSort { /* This function takes last element as pivot, places the pivot element at its correct position in sorted array, and places all smaller (smaller than pivot) to left of pivot and all …

Member Avatar for rproffitt
0
452
Member Avatar for dukoolsharma
Member Avatar for JamesCherrill
0
349
Member Avatar for Jose_21

[Pulsating Spirograph (Processing)](https://www.ktbyte.com/projects/project/93961/pulsating-spirograph?ref=20181212daniweb2)

Member Avatar for Reverend Jim
-1
427
Member Avatar for Jose_21

[[Depths (Made with Processing)](https://www.ktbyte.com/projects/project/94051/depths?ref=20181210daniweb)](null)

1
2K
Member Avatar for babi.meloo

I need to create a class that represents one crayon of a particular color and height(length). Then, I need to design an applet that lets me draw a box of different colored crayons. This is what I have so far: **CLASS:** import java.awt.*; public class Crayon { private final int …

Member Avatar for Paul_65
0
2K
Member Avatar for Sameer_8

Hello i have a problem in my UDP implementation in java. I supose to make the program read two files which is itc-1 and itc-2 but my program only read the itc-1 and function right actully but when i run it and read itc-2 file it crached i don't know …

Member Avatar for rproffitt
0
355
Member Avatar for Leem_1

java language (ArrayList) The Registrar Office at the university has asked you to help them write a Student Information System (SIS). The system can be used to store information about students, courses, and students' transcripts (courses already taken by a student). · Define a class called StudentType that holds information …

Member Avatar for rproffitt
0
713
Member Avatar for Andsello

I'm trying to create a multicolor table (composed by buttons) where every X seconds a thread change the color of its button. The first thing I did was manage the threads with a semaphore, but then I realized that maybe it wasn't necessary since I want that each button changes …

Member Avatar for JamesCherrill
0
292
Member Avatar for Kiratiphan

my project is sort score of Student using Linked List and sort algorithm can i coding loop for input from user and save value to node in linked list and export or sort value like this ? Thanks for help or discuss or give any idea (any code is idea …

0
251
Member Avatar for Gheorghita

Hi I would like to ask you the way i can call a static method when i need to know for exemple what price is bigger. I have 3 prices. How to set it? Help me please

Member Avatar for JamesCherrill
0
167
Member Avatar for gahhon

Hi, I'm using NetBeans with Java. I have create a JFrame with some checkboxes and a button to open browser go to the specific URL based on the checkboxes' values. But how do I auto-login/auto fill the username and password textbox then trigger the login button? Please kindly advise. Thanks.

Member Avatar for rproffitt
0
474
Member Avatar for prakash2813

Hello everyone. I have been trying to get desired output since last 4 days and so far very near to it. I am really stucked in the logic. Please help me or help me in writing proper logic. Open the attached zip file for whole eclipse project. No need to …

Member Avatar for jwenting
-4
450
Member Avatar for teddy

Write a program to read 50 students’ marks, calculate and print the number of students who succeed and the number of students who failed (any marks below 40 should be considered failed).

Member Avatar for jwenting
0
386

The End.