159 Topics

Member Avatar for
Member Avatar for firepower

how do i change the background to a custom one. code JButton button = new JButton(); JButton quit = new JButton(); public Mainmenu() { Icon b = new ImageIcon(getClass().getResource("play.jpg")); play = new JButton(playb); add(button,BorderLayout.CENTER); Icon quitb = new ImageIcon(getClass().getResource("quit.jpg")); quit = new JButton(quitb); add(quit,BorderLayout.SOUTH); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent …

Member Avatar for JamesCherrill
0
204
Member Avatar for firepower

please help me how to close the window. code: JButton quit = new JButton(); public Mainmenu() { setLayout(new FlowLayout()); Icon quitb = new ImageIcon(getClass().getResource("quit.jpg")); quit = new JButton(quitb); add(quit); quit.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { } });

Member Avatar for mKorbel
0
164
Member Avatar for LyingInAHammock

Basically I've created an **app drawer** and placed a **seekbar** within it. This app drawer is made up from **app_drawer.xml** whilst my fragment below is made up from **main_activity.xml**. The issue I'm having is, although the seekbar shows up perfectly and the app drawer pulls in and out as it …

0
161
Member Avatar for firepower

i need good java eclipse tutorial iv'e watched theCherno,Thenewboston etc.i learned GUI,anonymousclass etc.i just need a good beginner tutorial on java eclipse.

Member Avatar for C-Money
0
205
Member Avatar for firepower

please someone tell me how to change the size of the button.the code: JButton button1 = new JButton(); JButton button1 = new JButton(); public Mainmenu() { setLayout(new FlowLayout(100,278,158)); Icon button2= new ImageIcon(getClass().getResource("button1.jpg")); button2=new JButton(button2); add(button); Icon button2= new ImageIcon(getClass().getResource("button2.jpg")); button2=new JButton(button2); add(button2); HandlerC hand = new HandlerC(); button1.addActionListener(hand); button2.addActionListener(hand); } …

Member Avatar for JamesCherrill
0
257
Member Avatar for firepower
Member Avatar for stultuske
0
265
Member Avatar for anisha.silva

Hi, I want to know how do i write the grammer for the program below in JavaCC. app(name : 'First App') { View(id: top) { Label(id: l1, text: 'Hello') Button(id: b1, text: 'Press') Button(id: b2, text: 'Exit') } } appreciate a reply thanks

Member Avatar for anisha.silva
0
285
Member Avatar for LyingInAHammock

Out of my depth a little :-) How do I create a pair of longitude and latitudes to create a polygon showing a 2 mile radius of a particular longitude and latitude? in Java Android. I know how to find your current longitude and latitude but I just can't figure …

Member Avatar for jwenting
0
554
Member Avatar for Doogledude123

Could someone give me a few reasons why an Application isn't terminating on close? `*THIS IS FOR A JavaFX APPLICATION*`

Member Avatar for JamesCherrill
0
1K
Member Avatar for anisha.silva

Hi, I have a parser in .madl language in a txt format and I want to implement the code completion in java in eclipse plugin project. Fro ex: code completion is in a java editor if you press Ctrl+space a popuo window appears with relating option that are available, I …

Member Avatar for anisha.silva
0
416
Member Avatar for anisha.silva

Hi, I am implement a plugin project in eclipse in java language. I have a parse which is in s simple txt file. Below is the txt for the parser. id=app1 [String] #type=app [String] mainView=top name=First App [String] children: size=1 === child[0] === class=View id=top [String] #type=View [String] #line=8 [Integer] …

0
151
Member Avatar for LyingInAHammock

How do I replace my android app Google maps radius circle with a blue translucent one as in image also blue marker with blue circle? I can make the circle have a particular outline and fill but it doesn't look anywhere near as nice as the one depicted in the …

Member Avatar for LyingInAHammock
0
814
Member Avatar for fuchsia555

Hello everyone, I'm about to develope a simple app for mobile and i want your help about how to make a code for sending the order of the selected items by SMS or E-mail to a sepcific cell number or E-mail after selecting the desired items clicking on the button …

Member Avatar for peter_budo
0
134
Member Avatar for BeganMemory

At this point I know how to utilize Google Maps within Android but it always seems to take up the full window, there is an image below which shows what I'm attempting to accomplish (having a box below the Google maps where I can store text i.e. "Hello World" **How …

Member Avatar for peter_budo
0
454
Member Avatar for GUIPaPa

Guys why is my image not loading on my JFrame?? BTW I am using eclipse on my mac. Code for Board : package ourgame; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Board extends JPanel implements ActionListener { Dude p; public Image img; Timer time; public Board() { p = …

Member Avatar for GUIPaPa
1
488
Member Avatar for pwolf

I have just started trying to learn Java, and i am currently following a tutorial series on youtube([Java tutorial by Derek Banas](http://www.youtube.com/watch?v=rGlJiUO-dZA)) it seems like a good series so far! but i have been going along with him and typing it out, then afterwards replacing my copied code with his …

Member Avatar for Ewald Horn
0
280
Member Avatar for xxwikkixx

Hey I am working on an android app for a project and I have a problem with the GUI interface. When ever I try to move like a button or something on it, it moves like 2 other things with it and I dont want everything moving and messing up …

Member Avatar for Ewald Horn
0
175
Member Avatar for zettabit

Hello all, I'm wondering if it's possble to set up a coloring scheme in Eclipse or Netbeans (or I'm open to suggestions for other IDEs. I'm aware of some options in Eclipse to change the color of the text for methods, classes, etc. but this isn't quite what I'm looking …

Member Avatar for JamesCherrill
0
238
Member Avatar for castajiz_2

Is there any option which i can activate when using ECLIPSE so that when i m typing S... for String or i.. for int etc... to automaticly give me suggestions that i want a int if the first letter is i or i want a String if the first letter …

Member Avatar for JamesCherrill
0
180
Member Avatar for KhubaibQaiser

I want to know how can i use a servlet to generate a table (time table for example) dynamically in a jsp page? The result should come between header and footer inside a div (see the picture) http://img191.imageshack.us/img191/8942/nbo6.png <html> <head> <title>Time Tables</title> <link href="default.css" rel="stylesheet" type="text/css"/> </head> <body> <div id="header"> …

0
124
Member Avatar for saja.omarii.7

Heyy all.. I tried like thousands time to download eclipse .. but it didn't work So please if any one know how to download eclipse for c++ .. I'll be thankful.. I tried to download it from the University and it failed .. and from many website also failed .. …

Member Avatar for saja.omarii.7
0
174
Member Avatar for KhubaibQaiser

I am making a programe based on socket programing in which client can download one of the listed books from server. I have come up with this code but the problems with it are: 1) It doesnt downloads pdf file greater than 1MB. 2) It allows client to download 1 …

Member Avatar for JamesCherrill
0
305
Member Avatar for Lee_2

This may be a simple error but however. I was running my simple programs as normal and then when i went back to the program later to copy some code there was an error message highlighted underneath the first brace of my main() function. The error states - error: first …

Member Avatar for tinstaafl
0
2K
Member Avatar for anisha.silva

Hi, How do i debug an eclipse plugin project? When I go to the MANIFEST.MF file- > Testing section - > Launch an Eclipse application in Debug mode,it starts debuggin the worspace code. I havent any breakpoints in the workbench code. how to i avoid this. appreciate a response thanks

Member Avatar for anisha.silva
0
229
Member Avatar for anisha.silva

Hi, not sure if this the correct thread to post this question. I am working with the eclipse plugin project to creat and editor. And I want to highlish certain words for the editor. I was researching and found have to use syntax coloring. I didnt get a good tutorial …

0
111
Member Avatar for anisha.silva

Hi, I am new to the eclipse plugin developement. I want to create an launch button (eg: Run, Debug button). the only link that I found was http://www.eclipse.org/articles/Article-Launch-Framework/launch.html and it is difficult to understand. could some one point to a tutorial that is explained more appreciate a response Thanks

0
140
Member Avatar for RinzLove

Hi all, I would like to create .fxml file for my java project. How do we get javafx .fxml into java Eclipse? e.g. From Eclipse, when I click File -> New -> Other, then the Wizard window pop out. There should have Javafx folder, which will expand and I can …

Member Avatar for IIM
0
349
Member Avatar for sash_007

hello friends, i was recently trying to set up MInGW with eclipse kepler as discussed in this thread here http://www.daniweb.com/software-development/c/threads/459815/cant-setup-eclipse-kepler-with-mingw but offlate i am facing new issues when i try to start eclipse everytime i try to start eclipse i get this error http://gyazo.com/3551af2d1d4ea8e13733f95166b3d2fa i installed eclipse and java 3times …

Member Avatar for sash_007
0
241
Member Avatar for G_S

Hello everybody. Lately, I'm having a problem with PyDev which is driving me crazy: It is failing to connect to the Python console, therefore, many built-ins appear as errors (None, __name__, the os modules, etc.). I have tried downgrading PyDev, I have tried disabling IPv6, I have tried disabling my …

Member Avatar for G_S
0
303
Member Avatar for FaisalSarfraz

Hi all I am new to java programming. I need a litte helop. I want to take some results from database so i am trying to connect to database. I have dowloaded jdbcmysql connector but having no idea how to add it in eclipse or jre. Plus i am having …

Member Avatar for jwenting
0
340

The End.