User Profile

Collapse

Profile Sidebar

Collapse
EntryTeam
EntryTeam
Last Activity: Mar 2 '11, 10:23 AM
Joined: Aug 23 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • JEditorPane (html page) doesn't appear on main frame

    class Browser has method getBrowserWindo w() which returns JEditorPane(new URL("some URL")).

    class MainForm calls new Browser().getBr owserWindow() and assigns it to another JEditorPane object.
    Code:
    editor = new Browser().getBrowserWindow(); 
    scrollpane = new JScrollPane(editor);
    Object editor.hashCode () is correct, so there's no doubt that i've got the right object.

    Still, i can't...
    See more | Go to post

  • import - cannot resolve symbol io.PrintWriter & BufferedReader

    At the screenshots you can see what libraries I've added to project, and still - those two essential classes are missing! What's wrong? Need your help....
    See more | Go to post

  • Well, i've discovered that there's no possibility to read SMS by using J2ME midlet.

    Any workaround? Thirdparty libraries?
    See more | Go to post

    Leave a comment:


  • Nokia 5800XM - read SMS by using Java midlet

    Will i be able to read SMS programmaticall y by using Java midlet at Nokia 5800XM (which is Symbian-based handset including Java virtual machine) ?
    See more | Go to post

  • EntryTeam
    started a topic DataSet - incorrect rows count
    in .NET

    DataSet - incorrect rows count

    Count is about 67k, while phisycally there are only 2 records returned by query. What's going on? The cycle keeps returning those two records until exception or change in cycle condition.

    Code:
    for (int i = 0, c = ds.Tables[0].Rows.Count; i < c; i++) 
    {
    	values1[i] = ds.Tables[0].Rows[i]["column1"].ToString();
    	values2[i] = ds.Tables[0].Rows[i].Field<string>("column2");   
    }
    See more | Go to post

  • EntryTeam
    started a topic Need a method prototype

    Need a method prototype

    class source code

    I'm having trouble understanding line 50 - System.Convert. ToString(s, 16).
    According to source code, 1st argument is char and second is radix.

    I couldn't find method description and I'm wondering what exactly method does to character and what method returns?

    P.S. I can only guess that method returns string, although I'm not sure.
    See more | Go to post

  • EntryTeam
    started a topic Text Encoding and Decoding
    in Java

    Text Encoding and Decoding

    I'm trying to write ISO8859_8->UNICODE->ISO8859_8 translator (the simplest as possible), but application doesn't seem to work properly. Can you people, please, help me out?

    Code:
    import java.io.*; 
    
    public class Main {
    
        public static void main(String[] args) throws IOException {
    
            BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
            String text
    ...
    See more | Go to post

  • EntryTeam
    replied to smart argument passing
    Ah! Sorry. I should have removed this:
    Code:
    public class Child [U]: Form1[/U]
    See more | Go to post

    Leave a comment:


  • EntryTeam
    replied to smart argument passing
    line 34: same runtime err

    Code:
    public class Child : Form1
    {
      public Child()
      {
      }
            
      // change array values 
      public void method1()
      {
        for (int i = 0; i < Program.array1.Length; i++)
          Program.array1[i] = Program.array1.Length - 1 - Program.array1[i]; 
      }
            
      // print array 
      public void printarr()
    ...
    See more | Go to post

    Leave a comment:


  • EntryTeam
    replied to smart argument passing
    This causes compile problems:
    Code:
    static class Program
    {
      /// <summary>
      /// The main entry point for the application.
      /// </summary>
      [STAThread]
      static void Main()
      {
        Application.EnableVisualStyles();
        Application.SetCompatibleTextRenderingDefault(false);
        Application.Run(new Form1());
      }
    
      #region Fields
      public
    ...
    See more | Go to post

    Leave a comment:


  • EntryTeam
    started a topic smart argument passing

    smart argument passing

    Hello.
    I'm trying to figure out the best way of communication between two classes:
    • MainForm.cs
    • ServiceChild.cs


    (1) Now I have ServiceChild.My Method() which gets around 10 arguments using REF keyword in order to use arrays and variables and returns via those arguments the result values.
    And I have more than one method of this type.

    I don't like this kind of programming and I'm trying to make the...
    See more | Go to post

  • EntryTeam
    replied to picturebox transparency malfunction
    No, panel doesn't work... The same problem.
    See more | Go to post

    Leave a comment:


  • EntryTeam
    replied to picturebox transparency malfunction
    2 Plater
    2 tlhintoq
    I'll rewrite now picturebox code. It's good thing that I have all the controls dynamic.
    See more | Go to post

    Leave a comment:


  • EntryTeam
    replied to picturebox transparency malfunction
    You mean real forms instead of pictureboxes? How's that?...
    See more | Go to post

    Leave a comment:


  • EntryTeam
    started a topic picturebox transparency malfunction

    picturebox transparency malfunction

    I'm writing turn based logic game, and transparency doesn't seen to work right:
    screenshot

    Person model is .GIF in picturebox, buildings are .GIF in pictureboxes, mainform background is .bmp file.

    Model picbox and building picboxes both have
    Code:
    .BackColor = System.Drawing.Color.Transparent;
    ...set.

    How do I get this working as it should be?
    See more | Go to post

  • EntryTeam
    replied to howto emulate events?
    Nice advice.



    Still not working :(...
    See more | Go to post

    Leave a comment:


  • EntryTeam
    replied to howto emulate events?
    Can I please have working code example? Here's mine, still not working properly:
    (MyMessageBox class)
    Code:
    private static System.Timers.Timer aTimer;
    private string arg_name; 
    		
    public MyMessageBox(string msg, string name)
    {
    	InitializeComponent();
    	richTextBox1.Text = msg; 
    	arg_name = name; 
    	
    	aTimer = new System.Timers.Timer(2000);
    	aTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent);
    ...
    See more | Go to post

    Leave a comment:


  • EntryTeam
    replied to howto emulate events?
    Correct me if I'm wrong:
    Code:
    public MyMessageBox(string msg, string name)
    {
    	InitializeComponent();
    	richTextBox1.Text = msg; 
    
    	this.ShowDialog(); 
    
    	if(name=="CPU") {
    		GUI.Wait(2000); // ms
    		this.Close(); 
    	}	
    }
    Code:
    public void ShowMessage(string msg, ref PlayerStatus ps, ref GUI gui)
    {
    	MyMessageBox CustomMsgBox = new MyMessageBox(msg,
    ...
    See more | Go to post

    Leave a comment:


  • EntryTeam
    replied to howto emulate events?
    The problem is, that a criteria (string argument) should be passed after ShowDialog called. Otherwise, CustomForm will close before ShowDialog called -> runtime error.

    Show is not a good desicion, cause it allows performing manual actions on the main form while secondary is up, carrying message......
    See more | Go to post

    Leave a comment:


  • EntryTeam
    replied to howto emulate events?
    Nope, does not work:
    Code:
    public void ShowMessage(string msg, ref PlayerStatus ps, ref GUI gui)
    {
    
    	MyMessageBox CustomMsgBox = new MyMessageBox(msg); 
    
    	CustomMsgBox.ShowDialog(); 
    	if(ps.PlayerName=="CPU") {
    	
    		gui.Wait(2000); 
    		
    		CustomMsgBox.MyClose(); 
    		CustomMsgBox.Dispose(); 
    	}
    }
    Code:
    public void MyClose()
    {
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...