35,618 Topics

Member Avatar for
Member Avatar for jessada.dissopa

following the article title, I'm dealing with octave, it goes right on command line. but I need to build GUI for my program to easier interface with people. then I chose Java to build GUI. my problem is to connect my GUI java to Octave. Anybody has ideas to do …

Member Avatar for stultuske
1
247
Member Avatar for 2beprogrammer

I am interested in some idea how to search term from a URL file such as google. Example if I look for a term call "LOVE". How can I find all the URL associated with that term? I do know how to connect to the URL, but I am not …

Member Avatar for 2beprogrammer
0
96
Member Avatar for YaLeon

the task is : A. Write a method public boolean single (int [] values) receiving a full array values ​​with numbers, and returns true if the array is an organ that appears only once in the array, and false otherwise. For example, for the array {3, 1, 4, 1, 4, …

Member Avatar for tux4life
0
178
Member Avatar for beep

Had a bad uninstall of Java and now when trying to reinstall 7u10 I end up with the following dialogue: "This software has already been installed on your computer. Would you like to reinstall it?" "Yes." "This action is only valid for products that are currently installed." /end Repeat, ad …

Member Avatar for gerbil
0
248
Member Avatar for Roshan92

I am creating a simulation of a virtual video player (something like a very basic version of RealPlayer or Window Media Player). All the codes given below are error free. This is the main class: VideoPlayer.java This is the video player GUI (this frame is not resizable and the X …

Member Avatar for Starstreak
0
218
Member Avatar for annieshvijay
Member Avatar for trishtren

hey, Im having a problem adding a javafx Canvas node to the scrollpane node. Im using the **.setcontent(canvas)** method of the scrollpane and there are no syntax errors. The Scrollpane does expand in width (hbar appears longer) but it still looks empty. I know the canvas is working correctly as …

Member Avatar for trishtren
0
1K
Member Avatar for amaicahglyne.decastro

I need a programme for my mom's business inventory. I tried to download Dev-C and Visual Basic so I could make one, but after downloading it, the software would not open completely in the computer.

Member Avatar for JamesCherrill
0
96
Member Avatar for cor.vandijk.779

//Why do I have to use following code to get a column number: ListSelectionModel ks = tabel.getColumnModel().getSelectionModel(); //Rowselection does not require a special row selection, I can get a proper row number with: ListSelectionModel ss = tabel.getSelectionModel();

Member Avatar for mKorbel
0
610
Member Avatar for amnaKausar

How to print reports in a Netbeans 6.9.1 for making a website.Please answe me in detail

Member Avatar for amnaKausar
0
34
Member Avatar for kingsonprisonic

Hi all, **First of all please read the full article and then try to suggest me...** I want to make a java project on streaming video encryption. Where i will use two PCs 1 act like a media server and other act like a client. So a video file (example.avi) …

Member Avatar for kingsonprisonic
0
379
Member Avatar for mumaga

I have a new game item in the menu bar, was wondering if anyone got suggestions on how to accomplish that! Thanks :)

Member Avatar for tux4life
0
177
Member Avatar for Aniketayachit
Member Avatar for mumaga

Hi, sometimes when I run my application the cmd pops up with the following list of errors! I am sorry to just drop them like this but I dont know how to deal with them, as the application is working just fine! Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException at javax.swing.LayoutComparator.compare(LayoutComparator.java:75) at …

Member Avatar for mumaga
0
198
Member Avatar for Janet_1

Hello, does anyone know how to draw a road within a Jpanel, and check if the road is rightly placed within the edges?

Member Avatar for Taywin
-1
30
Member Avatar for mumaga

public void paintItems() { ArrayList inRoomItems = ((Room) scenery.getCurrentRoom()).getItemsArray(); Point origin = new Point(380, 10); int layerNumber = 50; int numberHorizontally = 0; int n=inRoomItems.size(); for(int i=0; i<n; i++){ image = new JLabel(((Item) inRoomItems.get(i)).getImageIcon()); imagePane.add(image, new Integer(layerNumber)); image.setOpaque(false); image.setBounds(origin.x, origin.y, 100, 100); origin.y += 90; numberHorizontally++; if (numberHorizontally % 3 …

Member Avatar for mumaga
0
165
Member Avatar for Aniketayachit

how to retreive pixels of a gray image into an array? please provide some java code. . . . . . . . . . .

Member Avatar for cmps
-1
64
Member Avatar for mumaga

I need to work on error handling and recovery for the World of Zuul. I was wondering where usually try catch exception should be used, which processes that need them? I know that I have to use them for opening and writing to a file,,,

Member Avatar for mumaga
0
170
Member Avatar for sunnyy221

hi friends java does not support multilevel inheritance. what is the reason behind this?? is this for security reason??

Member Avatar for peter_budo
0
206
Member Avatar for ynmly

how to change image when button is clicked? my gui is consisting of three Button(NEXT,PREVIOUS,AUTO-CHANGE) and 1 Jcombobox. when you drop-down combobox list of image is shown.so i want when i clicked on "next" button image of jcombobox should be change.

Member Avatar for stultuske
0
186
Member Avatar for JamesCherrill

Hello all. I'm currrently working on a GUI that needs to support dragging some application-specific objects from a selection area onto a work area (JPanel). It's currently working in a "click where to place the object, then click the Add button" mode, but that's not good enough. The obvious approach …

Member Avatar for JamesCherrill
2
1K
Member Avatar for amrita111

I have created a simple java file on desktop..When I am trying to execute it using cmd(with all variables set) then it is getting compiled but during the time of "java Filename" shows "main not found".This file is getting executed in eclipse and netbeans..What could be the reason for this???

Member Avatar for peter_budo
0
75
Member Avatar for Fedhell

**edit** I just realized that Im on a single core machine atm (stupid work machine), so theortically the server isint actually executing on the CPU 50% of the time (while the client is running), so packets would be lost right? Or is there something else im missing alltogether? Ill post …

Member Avatar for Fedhell
0
1K
Member Avatar for godzab

I am trying to write a selection sort, but I am getting a outofbounds error. How do I fix this? public class SelectionSort{ public static void selectSort(int[] arr){ int least = 0; for(int i = 1; i < arr.length - 1; i++){ for(int j = i + 1 ; i …

Member Avatar for jalpesh_007
0
90
Member Avatar for mumaga

Hello, I have built a GUI for the world of Zuul, the input can be taken by pressing buttons and enetering text commands. the output is both a change of images and text output using System.out.println(). When I press the directions buttons, the central image changes correctly. but the script …

Member Avatar for mumaga
0
192
Member Avatar for mutago

I tried querying database records using pass variable from ibatis servlets it works fine and fetch the records if correct pass value is entered but return error message if wrong pass value is entered eg <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd"> <sqlMap namespace="Display1"> <!--- quer …

Member Avatar for peter_budo
0
121
Member Avatar for bilal_afzal

hi..! i'm using xampp and i want to take backup of my database using java code.How can i do that?

Member Avatar for peter_budo
0
85
Member Avatar for vegaseat

Jython is a version of Python that can use the extensive Java library. Jython uses Python syntax and avoids the rather ugly syntax (at least for Pythonions) of Java. Here we apply it to bring up an image from a file.

4
718
Member Avatar for mumaga

Hello,,, How to make the GUI frame visible? I have looked and this is what I came up with: Interface gameInterface = new Interface(object1Instance, object2Instance, this) gameInterface.getFrame().setVisible(true); is this the way it should be? I have refrained from using a singleton class because I wanted to pass instances of other …

Member Avatar for mumaga
0
124
Member Avatar for borix134

Im using a Mac, lwjgl, and Java 7 (Execution enviroment: 6). Hey Im trying to build my project and It gives me a message that says: A fatal error has been detected by the Java Runtime Environment, It works fine when I run it in eclipse, and the execution enviroment …

Member Avatar for Taywin
0
133

The End.