32,206 Topics
| |
Hey guys is there a way to intercept shut down to make the user enter password if the state is in the locked state? Its just that I am engineering an anti-theft app and would to disable shut down from lock screen while the device is in the locked state. … | |
import net.proteanit.sql.DbUtils; import javax.swing.*; import javax.xml.transform.Result; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.sql.*; public class EmployeeRegistriation { private JPanel Main; private JTextField txtName; private JTextField txtSalary; private JTextField txtMobile; private JButton saveButton; private JTable table1; private JButton updateButton; private JButton deleteButton; private JButton searchButton; private JTextField txtId; private JScrollPane tabla_1; public … | |
If someone with a mechanical engineering BSc degree wants to have a job in cloud computing, would his mechanical engineering background benefit him in the high-tech filed ? | |
trainSet = [[2, 2, 2, 'a'], [4, 4, 4, 'b'], [6, 6 , 6, 'b'] testInstance = [5, 5, 5] Similarity: Calculate the Euclidian distances between the testInstance and all point of trainSet (Three points) In our case: Three distances between [5, 5, 5] and [2, 2, 2], [4, 4, … | |
I am new to coding and want some insights how can I find the duplicate in a text file and that duplicate will be store it to another text file. | |
Hello, I have project and user writes date(using scanner etc.) which saves to an ArrayList and I need to sort the dates. (There is the code (its in Czech) den = day, mesic = month, rok = year, datum = date) public class Ukoly { protected String predmet; protected String … | |
iOS app development has to main part of development in the new era | |
I'm trying to manage Splunk with Chef and ran across a problem when using Chef to programmatically start/stop/restart the Splunkforwarder service: The request did not respond to the start or control request in a timely fashion. - ControlService: The service did not respond to the start or control request in … | |
1. Methods to search for a book If the user chooses that option he should be asked of he wants to search for it using the book’s title (or part of it) or using the name of one of the authors (or part of the name) Depending on that search … | |
I have a very complex java program written with net beans 7.1. It consists of 1 .java file that has a main(), and over 25 supporting .java files (most used for routines inside of tabs). In addition there are 15 different databases (embedded) associated with it. The program is virtually … | |
I am writing a program that makes hands of five cards, and tests them against poker combinations. Wikipedia says you have a 1/254 chance in getting a straight, but I get an abysmally small mount of straights in each run. (around 50 in one million hands). Can anyone tell me … | |
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 … | |
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 … | |
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 … | |
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) | |
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 … | |
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 … | |
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 … | |
[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. … | |
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? | |
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 … | |
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 … | |
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 … | |
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) | |
In Microsoft Visual Studio Professional 2017, when I edit a JavaScript or CSS file, the Intellisense Quick Info for Members, Objects and other keywords don't appear. However, when I open the same files in Visual Studio Code 1.66.0, Intellisense Quick Info is shown properly. This results in me failing to … | |
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 … | |
i am gashaw gebrie, computer engineering student at debre-markos university from ethiopia. i am frontend web devloper,know i study backend devloper course . | |
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 … | |
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 … | |
Do you think that the structured programming is still useful now on day (for developing)? |
The End.