35,618 Topics
![]() | |
Hi, I want to know how can I find the frequency of applications executed on desktop? My main motive here is to find least used application on desktop! I know there is a way of doing it through windows OS tools. But, I want to know how the same can … | |
Hi, I can't get my carrentalprogram to work. When I try add vehicle/customer, I get this: "Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException" I think it means that what i type in my textLines = Null. I guess the methods from the class "Controller" can't be used. Here are the classes "Controller" … | |
How to detect key being pressed and how to send "impulse" to PHP file about which key has been pressed? Simply Googling "PHP key detection", doesn't deliver reliable resources. Offcourse I could use JavaScript, but I wouldn't be able to get this to PHP, since, they're on opposite sides. | |
Hello everyone! I have tried again and again to get this to work using multiple suggestions from the Internet. I am trying to convert an int[] to an Image object. I am getting the array using a PixelGrabber object: int img1_1d[] = new int[img1_w * img1_h]; PixelGrabber grab1 = new … | |
can annyone help me with this code? package me.nocare.who.cmds; import me.nocare.who.Whoplugin; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; public class WhoCommandHandler implements CommandExecutor { private Whoplugin plugin; public WhoCommandHandler(Whoplugin instance) { this.plugin = instance; } @Override public boolean onCommand(CommandSender sender, Command Command, String commandLabel, String[] args) { String msg … | |
I have a c++ file in xcode that I want to import to netbeans the problem is the c++ file is lacking some files which netbeans requires in order to open that up in netbeans(e.g makefile) How do I do that? | |
import java.text.DecimalFormat; import java.util.Scanner; public class Expenditure2 { static Scanner input = new Scanner(System.in).useDelimiter("\r\n"); static DecimalFormat fmt= new DecimalFormat("0.00"); public static void main(String[]args) throws Exception { String[] item= new String[10]; double[] amount= new double[10]; String[] month = {"null", "Jan", "Feb","March", "April", "May" ,"June" ,"July" ,"Aug" ,"Sept" ,"Oct" ,"Nov","Dec" } ; … | |
hi, My project contains a folder images.One Frame contain Jlabel.I want to display the images (at a time one image) from the folder images to the jlabel.could you please answer how to solve this? I have loaded a single image using the following query Image im=new ImageIcon(this.getClass().getResource("/images/a1.jpg")).getImage(); But I need … | |
so we where tasked to make a tic tac toe w/ out gui or even using array so here's what ive done so far its still far from complete but i cant seem to get the result i want but since this is just a test class that would be … | |
I have been trying to create a script that will fetch an image file, store it in a 2d grayscale non-alpha byte array based on the x and y axis so I can perform math operations then save that array back to a new image file. I have come close … | |
I have a java exercise follow: there are n machines of 3 type A,B,C, each machine has coordinates (x,y) and operate radius, with data get from a XML file, for instance: <machine> <number ="1"> <type>C</type> <cox>40</cox> <coy>80</coy> <rad>30</rad> </number> <number ="2"> <type>A</type> <cox>25</cox> <coy>35</coy> <rad>40</rad> </number> <number ="3"> <type>C</type> <cox>50</cox> … | |
Hi, i recently begun learning java and encryption. I found some code from a website that is supposed to decrypt lastlogin files found in minecraft. When i try to compile it gives me these errors: C:\Users\CROCCY\Documents\NetBeansProjects\Lastlogin decryptor\src\lastlogin\decryptor\LastloginDecryptor.java:54: error: invalid method declaration; return type required public MineCraftLoginReader() { C:\Users\CROCCY\Documents\NetBeansProjects\Lastlogin decryptor\src\lastlogin\decryptor\LastloginDecryptor.java:87: error: … | |
hello <input type="date" name="dob" required> this is the html5 date picker String date=request.getParameter("dob").toString() how to get value from tat date picker | |
Hi guys, I tought I'd experiment a bit with layout managers, trying to get to grips with them. I will start with a flowLayout, then hopefully move on to more complex ones. OK, so here is the code for the first example, very simple one: /*FlowLayoutManager.java layout manager tests*/ import … | |
Hi I am doing a project where i need to edit values in textboxes from database using jsp, here is my code, Please can anyone help me to solve this: retrieve.jsp [code] <%@ page import="java.sql.*" %> <% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");%> <HTML> <HEAD> <TITLE>Fetching Data From a Database</TITLE> </HEAD> <BODY> <H1>Fetching Data From … | |
Hi, i am using netbeans 7.0.1, When i copy a table from ms-word document and paste it in editorpane or text area palette, i am unable to retain same table strucure i.e with no borders.How to do it and which control i have to use. Thanks. | |
THIS IS A NO GUI TEST. GUI COMES AFTER THIS IS DONE. " i hope to learn from this so i can use it on the gui " :D i have my database : friends , table : info , values : (name ) : dragon , (address) : china … | |
I'm very much interested to develop Network IDS for my final year project , but I'm beginner to this Network security domain.Need some suggestion and some resources to develop this project.please help me . | |
Hi im building a JavaFX project and am using JavaFX Scene Builder 2. I wanted to link my controller to my fxml file but i can't see the possibility to add a controller to my fxml file in Scene Builder 2. I was wondering if someone could help me out. … | |
Hi! I'm making an app and I need to know how to set position of strings in java. Here is a code: import java.awt.*; import javax.swing.*; public class Draw extends JFrame{ JPanel panel; JLabel string; public Draw(){ super("CO-LERNER"); setSize(300,150); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); setLocationRelativeTo(null); string = new JLabel("Example"); panel.add(string); add(panel); } } | |
Hi. I am learning Java and now stuck in the exceptions chapter. I wrote a code to understand exception. But i am not getting why there is an error saying "Unreachable catch block".Please help me out here. Code is as shown. public class GetException { static int i; public static … | |
I'm basically wanting to design a java questionaire gui (not on java) basically just a program that holds a bunch of questions and the corresponding correct answers. So the question i would imagine i would make appear on the label and then having four possible answers a b c and … | |
Hi! I need a bit of help here. I started a new project and i need to know how to set position of JLabels(strings). Can I just set pixels or use Int x = 300, Int Y = 400?? I realy need help. I will be thankful for all the … | |
Hi..... I have a small doubt............ I have a page which is used to send mail. In the mail I want a link to be specified. I have written this link in the message part of the mail. this is a a text area. I have used anchor tag.but it … | |
I am beginner to Java , I would like to know is there any Difference between JDK 32 bits and 64 bits? For example in terms of performance or something ? | |
/* * In a hypothetical real-estate themed board game, a player rolls two dice to *move their token around the perimeter of the board by the number of squares *shown on the face of the dice. At each spot the player lands, he or she must *take an action, either … | |
I am relatively new to java and am having trouble using a cardlayout. When I press the button to switch cards I get a nullpointerexception but I do not understand where I could possibly have anything set to null. Any help would be greatly appreciated. This is my error... Exception … | |
am developing an desktop application ,for that am providing trial licence for 30 days.But if 30 days over ,if we change system date and time ,it will again back to the 30 days trial period ... how to overcome this... | |
I am trying to retrieve a blob(2) from my newly created embedded database and assign it to the image icon of a jlable (and of course save it back to the database if the image has been changed or altered). I found the following code snippit from another site but … | |
Write a program that calculates the mileage and/or cost of fuel by asking the user to input two cities. I NEED HELP. MY TEACHER DOESN'T TEACH ME ANYTHING. San Diego, CA and Houston, TX 1473.4 miles Nevada, KY and Alaska, PA 501.1 miles |
The End.