I will post all th changes that I've made in my codes but Plz test it and check my problem .. Cuz I worked with a grad student and we tried but he said everything seems good that must work .. So if u...
Type: Posts; User: smasm
I will post all th changes that I've made in my codes but Plz test it and check my problem .. Cuz I worked with a grad student and we tried but he said everything seems good that must work .. So if u...
I am sorry from asking this but did you test my code and fix the code ?
because I tried everything in the layout maneger also i changed everything in setBounds ... I also finish that wile ago...
the height and width of the size of the picture.
the logo and picture are same sizes width and height ... 140, 166
honestly I couldn't think anymore .. I fix it every single problem im my program except this point .. please hint or so ..
I am sorry I could not get it .. even my teacher said i have never used it ... so please if you could give hint or explanation I really appreciate that ..
hmmm ... You mean removing the layout and working with X and Y on setBounds ??
I tried it but it seems I'm making something wrong too... .??
Really good point !! Never though about it ?? Please why?
The tshirt will not show on the window
I just looked at it ... and tried to delete my layout manager to match it with the example .. but my luck today is too bad ..
I am sorry my english is lill bad so i have to read once and twice .......
Some examples uses others no..
I tried all of them nothing change except the place of them .. Up or down left or right ..
That's all
I sat both of their X, Y same numbers ... is not that right ?
I don't know any other code that will do the same as i found in google..
your last question i did not quit understand it .. you mean...
you mean the 15, 100 ?
I tried using the other way which is
// Manually set layout the components, and add it.
jlayerPane.add(picture, new Integer (1));
jlayerPane.add(logo, new...
yes I tried to get from that page what I need ... that page has been opened in my browser since last Thu ..
I honestly could not fine the mistake .. maybe because I have been working too much and i...
( X 15, Y 100 )
And the pictures and logos JLabel has been created ..
These two Labels has been added to the JLayerPane ..
The LayerPane has been created and we sat the the layout of it...
If i am not mistaken
this line of code ...
picture.setBounds(15, 100, picture.getWidth(), picture.getHeight());
logo.setBounds(15, 100, logo.getWidth(), logo.getHeight());
in this line...
I followed up again my code line by line and I changed the numbers many times ...
I don't think that the problem is the numbers maybe i miss some codes or so ..??
I changed x to 100 and less and...
Yes I did .. and I just did it again ..
I used JLayerPane as it suppose to be used, however, it keeps giving me the two pictures beside each other...
Honestly this error drove me crazy ....
I...
Sure .. you can delete whatever you want if you want to test the program ...
these names are in the drop list box ..
I tried to test it in different ways ..
you mean that I have used...
import java.awt.*;
import java.awt.event.*;
import java.util.HashMap;
import javax.swing.*;
public class SmallProgram extends JFrame
{
// These variables for the main window.
Hi ..
I am trying to place a picture on top of another one in java ..
I have a Tshirt picture which I am going to place it in the center of my GUI
Also I have a logo I want to put it on top...
Thanks man .. i have been thinking too much and I missed this code of line
add(pnlRadioButtons, BorderLayout.NORTH);
Any recommendation for my program ..
I am designing a small program...
package FunGUI;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import...
>
I was trying to show the button to start handling them .. but nothing show on GUI when its run ??
I added the panel but is there anything that I could do to fix the problem .. Also, I use to...
try this
first you have to create an int
int x = -1;
if(!isCharacterPresent(input.charAt(i), noRepeatCharacters, x))
last++;
noRepeatCharacters[x] = input.charAt(i);
Thanks for replying ..
Ok now if I want to get the deposit from the user and update the balance method ..
this is what i am stack in ..
how can I connect two methods together ??