31,001 Topics

Member Avatar for
Member Avatar for Rocky_6

I'm looking for help on CloudFormation Template for Glue Jobs orchestration for below scenario: Suppose I have 10 AWS Glue Jobs, 4 jobs should be executed parallel and 6 jobs should be executed sequentially. If any job failure, send Workflow "Failure" notification along with the failed Glue Jobname. Job1 Job2----job5-->job6-->job7 …

Member Avatar for rproffitt
0
34
Member Avatar for Hoàng_32

Thank you for your help! My code was: package com.Main.tile; import com.Main.GamePanel; import com.Main.UtilityTool; import javax.imageio.ImageIO; import java.awt.*; import java.awt.image.BufferedImage; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; public class TileManager { GamePanel gp; public Tile[] tile; public int mapTileNum[] []; public TileManager(GamePanel gp){ this.gp = gp; tile = new …

Member Avatar for JamesCherrill
0
114
Member Avatar for Hoàng_32

Here is my code: package com.Main.tile; import com.Main.GamePanel; import com.Main.UtilityTool; import javax.imageio.ImageIO; import java.awt.*; import java.awt.image.BufferedImage; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; public class TileManager { GamePanel gp; public Tile[] tile; public int mapTileNum[] []; public TileManager(GamePanel gp){ this.gp = gp; tile = new Tile[10]; mapTileNum = new …

Member Avatar for gce517
0
157
Member Avatar for oriakhiosamu1

Good day all, am new here, probably don't know if am doing it right. My import.java.util.Scanner is not working on my intelliJ IDEA, thanks in advance!! ![input_error_2.jpg](https://static.daniweb.com/attachments/4/a3559e4109e7b37341894da7cab56cb9.jpg) ![input_error_1.jpg](https://static.daniweb.com/attachments/4/bdf4e9756da594dd786c6d889f35d009.jpg)

Member Avatar for JamesCherrill
0
42
Member Avatar for Poweratgamer

I need help "error: file not found: C:\Program Files\Java\jdk-18\JCreatorV4\MyProjects\main.java Usage: javac <options> <source files>" this and this-"Error: Could not find or load main class main Caused by: java.lang.ClassNotFoundException: main" keep popping up the code I'm using is the simple hello world for java the name is main.java public class main …

Member Avatar for jwenting
0
113
Member Avatar for TimTheCoder

Is there a way to print out numbers for pre-order, post-order and in-order traversals of trees using just recursion and a number. The trees are binary and n is the number of nodes from the parent to al children. Can anyone help me write the function to print the numbers …

0
24
Member Avatar for SA_361

I am using intellij for the java coursework which is related to clients and databases. I am receiving the following error Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.net.URL.toExternalForm()" because "location" is null at java.desktop/javax.swing.ImageIcon.<init>(ImageIcon.java:232) at client.Interface.$$$setupUI$$$(Interface.java) at client.Interface.<init>(Interface.java:54) at client.Application.main(Application.java:317) This is the code: ` ` package client; //region …

Member Avatar for JamesCherrill
0
713
Member Avatar for dsmush

[SIZE=4][FONT=Arial]Hi, I'm creating an application that makes use of the GridBagLayout as it is the most useful layout manager for what I need. I made a JPanel and added it to the frame. The result I'm currently getting during run-time is a JFrame with a JPanel placed in the center. …

Member Avatar for Toby_6
1
3K
Member Avatar for dgrovespdxdgpdx

I want to create a java pane with a canvas on the left and column of other components on the right. I did this long ago but lost that code. Can anyone point me in the right direction to do this?

Member Avatar for jwenting
0
113
Member Avatar for priyamtheone

I'm broadcasting an intent in my app and receiving it with a broadcast receiver. I can handle the broadcasting and receiving. No problem with that. However, I want to register the receiver completely programmatically instead of doing it in the manifest file. Notice, that in the manifest file, there are …

Member Avatar for priyamtheone
0
58
Member Avatar for ASH_534

I have a problem with a DnD program, so when I add 2 or more images and apply a filter to one of the images (using a right click), it only appears on the last image added. I think i have to store the image in an Array while waiting …

0
71
Member Avatar for Pallavi_15

Hi All, I have a list of claim ids, and I want to add previous and next button in the jsp . 1. ClaimSerachResults page have the search list of claim ids. (Proposed claim/Generated Claim). After clicking on any claimid it display the full record details. Then user can modify …

0
16
Member Avatar for Nicole_18

How to draw this cat with: Rendering fill Suitable primitives Aligned texture ![Screenshot_20220402-020429_Office.jpg](https://static.daniweb.com/attachments/4/e9a4f2eda3f42e689b0de42dcd9465ba.jpg)

1
276
Member Avatar for phie1313

could anyone help me Write a java program that can add, show, update and delete item(s) in the inventory. Applying any OOP principles in this program. The program will display a menu with the following selection: Inventory Program • Add Item to Inventory • Display Current Inventory • Update Item …

Member Avatar for JamesCherrill
0
42
Member Avatar for Gashaw_1

i am gashaw gebrie, computer engineering student at debre-markos university from ethiopia. i am frontend web devloper,know i study backend devloper course .

Member Avatar for pritaeas
0
11
Member Avatar for Hugh Nelsons

import random money = 0 finmoney = 0 turns = 0 colturns = 0 finturns = colturns + turns print(""" 1 2 3 4 5 6 7 8 9 10 red black every guess = - 1$ every colour = - 5$ every correct = + 10 The goal is …

Member Avatar for JamesCherrill
-1
61
Member Avatar for Ahmed_152

Hi Am new at programming . I ask about how I but button that onclick it's guide me to form this form had submitted page I need to make this form when fellup the data that the user it's sind to my java SQL . Can any one help me …

0
35
Member Avatar for Mriel

Do you think that the structured programming is still useful now on day (for developing)?

Member Avatar for Schol-R-LEA
0
61
Member Avatar for Abeiyh

Create a program that displays the result of a sales transaction. The calculation requires three numbers. The first number represents the product price. The second number is the salesperson commission. These two numbers should be added together. The third value represents a customer discount; subtract this third from the result …

Member Avatar for Dani
0
52
Member Avatar for Just_3

I want to ask. I have 3 textfield. For example I just have 2 number so I fill at the first and second textField. But, if I want to calculate the value of this textfield, I need to enter 0 to the third textfield. So, I want to ask about …

Member Avatar for JamesCherrill
0
71
Member Avatar for aouinasara77

hello everyone , please can anyone help me !! I have a list of keywords i used TextRank algorithme, and i have list of all words ,I want to combine Adjacent kaywords into a multi-word keyword depending on their position in the list of all words with java. For exemple …

Member Avatar for JamesCherrill
0
53
Member Avatar for EmiLynn

First, my apologies, I couldn't tag this as kotlin and I figured Java was the next closest thing. This is homework, I'm not looking for someone to do it for me, just a little help. So the first thing is that I've got a sealed interface with some subclasses (all …

Member Avatar for dimitrilc
0
55
Member Avatar for ivy.inc.Hugh
Member Avatar for Dani
0
20
Member Avatar for Giyuuu

Develop an interactive java program to count the number of student who score grade A, B, C and D based on the list of marks given by a user. Display the number of students for each grade. Add in the feature to repeat or exit the program. Hint: Input Teachers …

Member Avatar for ivy.inc.Hugh
0
113
Member Avatar for Napoleon_1
Member Avatar for You Have Been C

import javax.swing.*; import javax.swing.plaf.basic.BasicTreeUI; import java.awt.*; import java.awt.event.FocusListener; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; public class GamePanel extends JPanel implements Runnable, KeyListener{ final int originTileSize = 16; //The Size of the tiles, or grids final int scale = 3; final int tileSize = originTileSize * scale; final int screenCol = 10; final …

Member Avatar for ivy.inc.Hugh
1
234
Member Avatar for LianaN

Hi! I'm trying to improve a code shown below. My idea is to add multiple images to JPanel. It sounds like an easy task, but all my attempts failed so far. I tried to create [ICODE]Image image2 = getToolkit().getImage(Drag1.class.getResource("cross_cursor.gif"));[/ICODE] and then [ICODE]bi2 = new BufferedImage(image2.getWidth(this), image2.getHeight(this)...);[/ICODE]. But I can see …

Member Avatar for ivy.inc.Hugh
1
2K
Member Avatar for Crona

I have a homework assignment that im not really sure how to approach as of right now, I've done some research but. I have not found really anything that would pertain to what I'm doing. Any help would be appreciated <3 . So far this is what I have: /****************************************************************************** …

Member Avatar for DGPickett
0
235
Member Avatar for Hiruni_3

Create three classes the Calculation class, Conversion class and Menu Class. The Conversion class should have the following methods. double KMToMiles(double distance) double MilesToKM(double distance) double FeetToMetres(double distance) double MetresToFeet(double distance) double KgToPounds(double weight) double PoundsToKg(double weight) double CelciusToFahrenheit(double temperature) double FahrenheightToCelcius(double temperature) The Calculation class should have the following …

Member Avatar for rproffitt
-1
165
Member Avatar for java_marvin

I just dropped in and found something useful. But the java-code had to be extendet. So I would like to share the result. How to contribute code to the diskussion in: https://www.daniweb.com/programming/software-development/threads/332664/adding-multiple-images-to-jpanel-for-dragging-and-dropping-purposes#post2275496 Or is it closed by now.

Member Avatar for Dani
0
68

The End.