32,204 Topics

Member Avatar for
Member Avatar for OnlyThierry

Hello, I would like to develop a sprite editor. Therefore I have programmed a software like paint. As you can see on the picture, on the right, there is a canvas with a grid on it. I use a GridBagLayout to manage every widgets inside my window. The canvas is …

Member Avatar for JamesCherrill
0
577
Member Avatar for esedee

Hi.. Am actually trying to write my final year project on how to use Android phone as remote control for pc.. Pls can anybody put me through on what to do and how to start it because am a newbie trying to build an android app.. Thanks

Member Avatar for Mridula_1
0
415
Member Avatar for John_165

I feel hard to understand how the LayoutManager work even the GUI is quite simple. I trying to make the button place below the Tel No JTextField, but it placed beside Address JTextField , not below TelNo JTextField. package gui; import java.awt.BorderLayout; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import javax.swing.Box; …

Member Avatar for JamesCherrill
0
533
Member Avatar for Cory_3

Hello. I am new to Android Programming, and am using Android Studio to practice with. Right now, I am trying to learn how to create a new Activity and transition from it to my main Activity. So far, I have my MainActivity up and running. The code is: package com.example.cory2.thezoo3; …

Member Avatar for hnrindani
0
400
Member Avatar for cookie19ks

Hi, I am a newbie to Java and I want some help with designing a simple search engine in java. The program would read from a text file and would display the results. If I searched for some keyword say "star" it should show me something like the following: Star …

Member Avatar for stultuske
0
9K
Member Avatar for NA

i want to show my graph values but its show null output. i show you in image output also // JavaScript Document $(document).ready(function(){ $.ajax({ url: "data.php", method: "GET", success: function(data) { console.log(data); var playerid = []; var score = []; for(var i in data) { playerid.push("Player " + data[i].playerid); score.push(data[i].score); …

Member Avatar for stultuske
0
355
Member Avatar for Aakanksha_1

import java.util.ArrayList; import java.io.*; import java.util.*; import java.util.Graph; public class Graph { public int[][] adjMatrix;//Edges will be represented as adjacency Matrix int size; } public Graph(int size) { adjMat = new boolean[size][size]; for (int i=0; i < adjMat.length; i++) { for (int j=0; j < adjMat.length; j++) { adjMat[i][j] = …

Member Avatar for AssertNull
0
449
Member Avatar for Stefano Mtangoo
Member Avatar for Aakanksha_1

public class Graph { boolean[][] adjMat; // In the adjacency matrix representation of a Graph, // if adjMat[i][j] == true, then you can move from // node i to node j. // i.e. j is a neighbour of i. // The constructor builds the adjacency matrix, // with initially all …

Member Avatar for JamesCherrill
0
420
Member Avatar for Jeanyl_1

Gud day geeks! This is intended for my thesis! We are creating our own Computer laboratory management with network monitoring system from the computer laboratory users. I would like to know is there other references aside with the wireshark? I've been searching for a month now, the other sources does …

Member Avatar for rproffitt
0
195
Member Avatar for saurabh.mehta.33234

I am trying to learn Volatile keyword in Multi Threading and I came across this statement: *Volatile is preferred in cases when one thread reads and writes a shared variable and other threads just read the same. Whereas if there are more than 2 threads performing read and write both …

Member Avatar for JamesCherrill
0
207
Member Avatar for manalibhadula

Below program in completly executing but no data was inserted through sqlloader. Inline Code Example Here public class CSVDataLoad { public void runSqlldr () throws InterruptedException { String[] stringCommand = { "bash", "-c", "/usr/bin/sqlldr username/password@sid control=/path/to/sample.ctl"}; System.out.println("SQLLDR Started"); Runtime rt = Runtime.getRuntime(); Process proc = null; try { proc = …

Member Avatar for Didier_2
0
5K
Member Avatar for saurabh.mehta.33234

I am trying to understand the SynchronizedMap and I ran the below code. I get the below Output with an exception. According to my understanding the exception is caused when the get() methods are trying to access the syncmap when a thread is still executing a write on the map …

Member Avatar for JamesCherrill
0
746
Member Avatar for scheppy

I was wondering what would be the best way to implement an algorythm to figure out what side a circle has collided with a rectangle? After check to make sure a circle has collided with the rectangle im trying to figure out how to know what side of the rectangle …

Member Avatar for scheppy
0
4K
Member Avatar for divinity02

hi everyone I am currently practicing my java skills by doing this program called car rental management system. I am creating a login page where when the user login it should bring up a dashboard. but the problems when the user login and it say "credentials match, the dashboard doesnt …

Member Avatar for rproffitt
0
319
Member Avatar for Horse_1

Hai Sir, I am confused while creating Invoice system how to add the products item for Single invoice, and save it in MYSQL data base? Thanks and Regards, S. Hari ari

Member Avatar for stultuske
-1
153
Member Avatar for whitejag

I bought a web site a few months ago thinking that I could go to a community tech school. I have not found the classes that I need. So I don't know how to build it. Help?

Member Avatar for rproffitt
0
200
Member Avatar for saurabh.mehta.33234

In the below code about the synchronisation between threads, according to the output generated why is the control being transferred to the execution of the new thread despite the lock being acquired for the same object "dt" in the main method ? public class DemoThread extends Thread { public DemoThread() …

Member Avatar for JamesCherrill
0
235
Member Avatar for saurabh.mehta.33234

I am trying to run the below concurrency code: import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; public class TestThread { public static void main(final String[] arguments) throws InterruptedException { ExecutorService executor = Executors.newSingleThreadExecutor(); try { executor.submit(new Task()); System.out.println("Shutdown executor"); executor.shutdown(); executor.awaitTermination(5, TimeUnit.SECONDS); } catch (InterruptedException e) { System.err.println("tasks interrupted"); } finally …

Member Avatar for JamesCherrill
0
424
Member Avatar for scheppy

Hi Guys, Im currantly having a problem with simulating balls bouncing of each other in a 2d space, everything is working and all, but it just doesant seem natural for me... If we had any math wizzes here now is your time please:) my circles are painted inside of rectangles..... …

Member Avatar for scheppy
0
3K
Member Avatar for Luca_1

Hey guys, I am at the very beginning of learning Java and my task right now is to code a maze (2D Array) and let a bot automatically solve that maze using only the right hand rule. If I let the programm run it prints out an infinite number of …

Member Avatar for rproffitt
0
451
Member Avatar for Saboor880

Hi I have made a desktop application and i have to print some data to printer.For this purpose I have done my code and ran it successfuly and test on xps doucuments and on oneNote . I have no physical printer but i am satisfied by testing it on xps …

Member Avatar for rproffitt
0
314
Member Avatar for scheppy

Hi Guys Its me again, wasnt sure if i should start a new thread so i just did :) I completly redid the code Now im having a problem with the renderer again. It called called in the timer of the controller class... but it doesant get called? Also my …

Member Avatar for scheppy
0
464
Member Avatar for Joe_10

I am trying to follow the sample of the barcode reader from codelabs. However I am stuck, could someone help me out please. [Codelabs tutorial](https://codelabs.developers.google.com/codelabs/bar-codes/#0) I have updated the manifests to include the vision libaries. import android.app.Activity; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.drawable.BitmapDrawable; import android.os.Bundle; import android.util.SparseArray; import android.view.View; import …

Member Avatar for rproffitt
0
642
Member Avatar for scheppy

Currantly trying to make a simple game but i cant get the renderer to repaint. My problem is that i used to make everything in 1 class... much simpler. But now im just not sure anymore. This is what i have so far... it just wont repaint. (Note i have …

Member Avatar for scheppy
0
1K
Member Avatar for Saboor880

Hi! I have developed a desktop application in java. Now I want to do payment integration with this app. Actually I have to do payment integration for first time in my life. So i have some questions/confusions for payment integration. But before asking those questions I tell you that what …

Member Avatar for Saboor880
0
431
Member Avatar for Rafin Ishraq
Member Avatar for scheppy

Hi Guys Just starting to make my first java game, im getting a few errors. Im just trying to figure a few things about about the game loops before i get started and this is driving me crazy when i just call the renderer to repaint after i initialize the …

Member Avatar for scheppy
0
1K
Member Avatar for Addvantum
Member Avatar for John_165

Hi guys , is me again ! I get stucked on this question Write a program that read an integer and display its smallest prime factors in ascending order. For example, if the input is 60, the output should be 2,3,5... I came out with below code, but I get …

Member Avatar for rproffitt
0
407

The End.