Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~1K People Reached
Favorite Forums
Favorite Tags
java x 25
Member Avatar for beshoyatef

I hide text inside image then i want to save the image wich contain message . The problem is when i save image with JPEG it saved but give me exception : [B]java.lang.IllegalStateException: Output has not been set! at com.sun.imageio.plugins.jpeg.JPEGImageWriter.write(JPEGImageWriter.java:312) [/B] and when i save image with any other formate …

0
62
Member Avatar for beshoyatef

Here i mad panel and i put two Boxes in it , then i tried to make a background color for box by useing ([B]background(color.blue)[/B] method) but it never has the color . Then i try to resize its height by useing [B]Box.createRigidArea(new Dimension(10, 50))[/B] but the titleBoard take all …

0
72
Member Avatar for beshoyatef

Hi to all, ------------- Here there is array of ten position and array contain ten integers . I want to put the array of ten integers randomly on the array of ten position ... Here is my code : ---------------------- [CODE]import java.util.Random; public class TestArray { public static void main(String[] …

Member Avatar for beshoyatef
0
100
Member Avatar for beshoyatef

Here i draw chessBoard and adjust affect of appearin blue rect when player press by mouse on the above two rows but the pawn image not appear . I made [B]intializingIcoss()[/B] on class[B] BoardGame[/B] then the method appear but when the image not appear when i put the method on …

Member Avatar for beshoyatef
0
125
Member Avatar for beshoyatef

Hi, Here i draw chess boardgame ,but i want when i pressed by mouse on any square , blue rectangle appear .. I did this but when i pressed on any square the black and white coloe disappear and not only the square which i pressed has blue rect but …

Member Avatar for beshoyatef
0
131
Member Avatar for beshoyatef

I designed chess board game before , i did for loop for rows and i did for loop for column ... and the result appear good . But here i want to make the board by two inner loop inside them . I do that but the rows not appear …

Member Avatar for beshoyatef
0
123
Member Avatar for beshoyatef

Here i draw the board for chess and put all pieces in there places on the board ... then i want when i pressed by mouse on the board give me the value of x , y . I tried with all things but i cann't solve this problem please …

Member Avatar for VernonDozier
0
77
Member Avatar for beshoyatef

Here i try to draw line by mouse pn panel but it is not appear here is my code: [ICODE] import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JComponent; import javax.swing.JFrame; import javax.swing.JPanel; public class …

Member Avatar for JamesCherrill
0
115
Member Avatar for beshoyatef

When i write like This: [CODE]JTextArea area=new JTextArea(); [/CODE] then i can do this :[CODE] area.append("");[/CODE] But when i write this : [CODE]JTextPane area=new JTextPane(); [/CODE] Then i can not write [CODE] area.append("");[/CODE] so what is equal append() method when i use JTextPane???? thanks in advance

Member Avatar for kvprajapati
0
63
Member Avatar for beshoyatef

Itry to move text in tTextarea to left or to center or to right by pressing to buttons i did like this but unfortuantly it is not work . [CODE] public void actionPerformed(ActionEvent e) { if(e.getSource()==buttons[0]){ area.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT); } if(e.getSource()==buttons[2]){ area.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT); } } [/CODE] area if an object from JTextArea can …

Member Avatar for quuba
0
98
Member Avatar for beshoyatef

I try to draw line with this code but it never appear say to me the correct way for doing this . This is my code: [ICODE]public class MyMouse extends JFrame { private JPanel mainPenl; private JPanel paintPanel, componentsPaintPanel, areaPanel, areaPaintPanel; String[] buttonsName = {"Line", "Oval", "Rectangle"}; JButton[] paintButtons; MyMouseAdapter …

Member Avatar for JamesCherrill
0
124